Sip Trunking Help

nesbitry
Joined: Sun 15 of Nov, 2009

Sip Trunking Help

Posted:Sun 15 of Nov, 2009 (23:46 UTC)
I'm trying to set up a sip trunk from my asterisk box to a router running Cisco CME. The phones that are connected to the asterisk box can call the phones connected to the CME box. However it doesn't work in reverse, so I believe asterisk is not configured correctly.

Asterisk IP: 192.168.1.13
Cicso CME IP: 192.168.1.51

Here is my sip.conf

[phone1]
type=friend
username=XXXXX
secret=XXXXX
host=dynamic
context=tutorial

[phone2]
type=friend
username=XXXXX
secret=XXXXX
host=dynamic
context=tutorial

[phone3]
type=friend
username=XXXXX
secret=XXXXX
host=dynamic
context=tutorial

[cme]
type=friend
context=tutorial
host=192.168.1.51
disallow=all
allow=ulaw
allow=alaw
nat=no
canreinvite=yes
qualify=yes


Here is extensions.conf

[tutorial]
exten => 2001,1,Dial(SIP/phone1)
exten => 2002,1,Dial(SIP/phone2)
exten => 2003,1,Dial(SIP/phone3)
exten => 1001,1,Dial(SIP/${EXTEN}@192.168.1.51)
exten => 1002,1,Dial(SIP/${EXTEN}@192.168.1.51)
exten => 1003,1,Dial(SIP/${EXTEN}@192.168.1.51)
exten => 1004,1,Dial(SIP/${EXTEN}@192.168.1.51)


Here are the errors in asterisk

[Nov 10 18:03:13] NOTICE[23475]: chan_sip.c:18227 handle_request_register: Registration from '<sip:1002@192.168.1.13>' failed for '192.168.1.51' - No matching peer found
[Nov 10 18:03:13] NOTICE[23475]: chan_sip.c:18227 handle_request_register: Registration from '<sip:1003@192.168.1.13>' failed for '192.168.1.51' - No matching peer found
[Nov 10 18:03:13] NOTICE[23475]: chan_sip.c:18227 handle_request_register: Registration from '<sip:1004@192.168.1.13>' failed for '192.168.1.51' - No matching peer found
[Nov 10 18:03:13] NOTICE[23475]: chan_sip.c:18227 handle_request_register: Registration from '<sip:1001@192.168.1.13>' failed for '192.168.1.51' - No matching peer found


Any help would greatly be appreciated.