Hi All,
I am trying to configure a SIP trunk to my Freepbx. I bought an user accout from mydivert.com and configured the trunk with the peer settings below:
Peer details
externhost=ulxxxx.dyndns-remote.com
localnet=192.168.x.x
username=00xxxxxx
type=friend
srvlookup=yes
secret=xxxxxx
qualify=3600&yes
nat=yes
insecure=very
host=sip.mydivert.com
fromuser=00xxxxxx
fromdomain=sip.mydivert.com
dtmfmode=rfc2833
disallow=all
context=from-trunk
canreinvite=no
authuser=00xxxxxx
allow=alaw&ulaw&gsm&slinear&ilbc
sendrpid=yes
register string
00xxxxxx:[email protected]/xxxxxx
(ofcourse secret and the username are not xx :))
I could not register my trunk to mydivert. I tried modifiying sip_general_custom.conf and sip_nat.conf and sip_registrations_custom.conf.
[root@localhost asterisk]# cat sip_nat.conf
externhost=ulxxxxxx.dyndns-remote.com
externrefresh=120
localnet=192.168.x.x/255.255.255.0
[root@localhost asterisk]# cat sip_registrations_custom.conf
register=00xxxxx:[email protected]/xxx <–thislast x’s are the username
[root@localhost asterisk]#
[root@localhost asterisk]# cat sip_general_custom.conf
[general]
externhost=ulxxx.dyndns-remote.com
externrefresh=120
localnet=192.168.x.x/255.255.255.0
register=00xxxxx:[email protected]/xxx <–thislast x’s are the username
[mydivert]
username=00xxxx
type=friend
srvlookup=yes
secret=xxxxxx
qualify=3600
nat=yes
qualify = yes
insecure=very
host=sip.mydivert.com
fromuser=00xxxxxx
fromdomain=sip.mydivert.com
dtmfmode=rfc2833
disallow=all
context=from-trunk
canreinvite=no
authuser=00xxxxx
allow=alaw&ulaw&gsm&slinear&ilbc
sendrpid=yes
[root@localhost asterisk]#
Still I can not see any register messages coming out of freepbx. What should i do for registration?