Trunk registeration problem

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.

[[email protected] asterisk]# cat sip_nat.conf
externhost=ulxxxxxx.dyndns-remote.com
externrefresh=120
localnet=192.168.x.x/255.255.255.0

[[email protected] asterisk]# cat sip_registrations_custom.conf
register=00xxxxx:[email protected]/xxx <–thislast x’s are the username
[[email protected] asterisk]#

[[email protected] 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
[[email protected] asterisk]#

Still I can not see any register messages coming out of freepbx. What should i do for registration?

I solved this problem.

I had made changes in gui and I had made the changes in conf files. Further then that I recognized that I had entered the same settings in more then one conf file.

I cleared up all of the conf files and started from the beginning and it works now.

Maybe you have run into the same issue I have where Asterisk is not reading the conf file.

http://www.freepbx.org/forum/freepbx/installation/asterisk-not-reading-freepbx-conf-files

Try copying the config into the sip.conf and then doing a sip reload at the CLI. If that works then you and I have the same problem.

Do not listen to skippy, that is not your issue and following his suggestion will confuse the heck out of any newbie as well as completely screw up FreePBX.

might be useful

localhostCLI> sip show peers
Name/username Host Dyn Nat ACL Port Status
6000 (Unspecified) D N A 5060 UNKNOWN
6001/6001 192.168.0.22 D N A 60106 OK (127 ms)
8000/8000 192.168.0.15 D N A 4082 OK (31 ms)
mydivert/001102183 78.46.43.9 N 5060 UNREACHABLE
mydivert.com/001102183 78.46.43.9 N 5060 UNREACHABLE
5 sip peers [Monitored: 2 online, 3 offline Unmonitored: 0 online, 0 offline]
localhost
CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
0 SIP registrations.
localhost*CLI>