Hi...I've got two Grandstream phones attached to my Asterisk on the same subnet. The phones have fixed IP addresses. Asterisk is generated an error for one of them only, even though both appear to be registered correctly. The current state of the sip.conf is included below. Anyone know what is going on here? Both appear to be working fine between each other and between themselves in and outbound to an X100p card. Any ideas regarding the config file would be appreciated. -- Larry NOTICE[1125350192]: File chan_sip.c, Line 5297 (handle_request): Registration from '<sip:1001@192.168.0.8>' failed for '192.168.0.162' NOTICE[1125350192]: File chan_sip.c, Line 3557 (register_verify): Peer '1001' isn't dynamic NOTICE[1125350192]: File chan_sip.c, Line 5297 (handle_request): Registration from '<sip:1001@192.168.0.8>' failed for '192.168.0.162' NOTICE[1125350192]: File chan_sip.c, Line 3557 (register_verify): Peer '1001' isn't dynamic NOTICE[1125350192]: File chan_sip.c, Line 5297 (handle_request): Registration from '<sip:1001@192.168.0.8>' failed for '192.168.0.162'>sip show peersName/username Host Mask Port Status 1001/1001 192.168.0.162 255.255.255.255 5060 OK (3 ms) 1000/1000 192.168.0.160 255.255.255.255 5060 OK (3 ms) *CLI> ; SIP Configuration for Asterisk ; LK 12/22/03 Modified ; LK 4/4/04 01 Comment out modifications additions for FWD ; LK 4/4/04 02 Remove the commented lines out for FWD ; LK 4/4/05 03 Remove Cisco, Snom, etc commented lines ; LK 4/4/05 04 Change dynamic to fixed IP addresses [general] port = 5060 ; Port to bind to bindaddr = 192.168.0.8 ; Address to bind to ;externip = 99.99.99.99 ; Public Address (required when behind a NAT) context = default ; changed 1/18/04 LK to 'default' per manual ;context = from-sip ; Default for incoming calls ;srvlookup = yes ; Enable SRV lookups on outbound calls ;pedantic = yes ; Enable slow, pedantic checking for Pingtel tos=reliability tos=184 maxexpirey=180 ; Max length of incoming registration we allow defaultexpirey=160 ; Default length ofincoming/outoing registration ;notifymimetype=text/plain ; Allow overriding of mime type in NOTIFY ;videosupport=yes ; Turn on support for SIP video disallow=all ; Disallow all codecs allow=ulaw allow=alaw ; Allow codecs in order of preference ;allow=ilbc ;allow=gsm ;grandstream at desk [1000] type=friend username=1000 ;host=dynamic host=192.168.0.160 reinvite=no canreinvite=no qualify=300 callerid="Larry's Desk" <1000> mailbox=1000 nat=no dtmfmode=info disallow=all allow=ulaw allow=alaw ;grandstream in upstairs study [1001] type=friend username=1001 ;host=dynamic host=192.168.0.162 reinvite=no canreinvite=no qualify=300 callerid="Martha's Desk" <1001> mailbox=1001 nat=no dtmfmode=info disallow=all allow=ulaw allow=alaw
Larry Keyes wrote:>Hi...I've got two Grandstream phones attached to my Asterisk on the same >subnet. The phones have fixed IP addresses. Asterisk is generated an error >for one of them only, even though both appear to be registered correctly. >The current state of the sip.conf is included below. Anyone know what is >going on here? Both appear to be working fine between each other and between >themselves in and outbound to an X100p card. >I saw the same problem with both CVS version with SJPhone and X-lite. I do not own a Grandstream those your settings may be slightly different. To fix the problem I : - changed my SIP definition - stop and started asterisk (IMPORTANT: reload did not work) The [] part is really used as the username on the phone . I am not even sure the username= is used for anything !! Make sure as well you do not mix phone name and extension number. My phone is SIP/thomas, my extension is 1505 [thomas] type=friend host=dynamic dtmfmode=inband ; your dtmf mode may be right for your phone ... No idea. username=thomas secret=supersecret callerid="Thomas Mangin" <1505> context=default mailbox=1505 ;auth=md5 ;reinvite=no ;canreinvite=no ;qualify=1000 ;defaultip=10.0.0.10 ;restrictcid=no *CLI> sip show users Username Secret Authen Def.Context A/C thomas supersecret md5,plaintext default No Try this and if it work change one thing at the time and RESTART * as reload can cause some surprise. I can not recall if host=dynamic and defaultip are compatible but I think there are. Hope it helps, I only have few hours experience with * myself. Thomas
Larry Keyes wrote:> Hi...I've got two Grandstream phones attached to my Asterisk on the same > subnet. The phones have fixed IP addresses. Asterisk is generated an error > for one of them only, even though both appear to be registered correctly. > The current state of the sip.conf is included below. Anyone know what is > going on here? Both appear to be working fine between each other and between > themselves in and outbound to an X100p card. > > Any ideas regarding the config file would be appreciated. -- Larry > > > NOTICE[1125350192]: File chan_sip.c, Line 5297 (handle_request): > Registration from '<sip:1001@192.168.0.8>' failed for '192.168.0.162' > NOTICE[1125350192]: File chan_sip.c, Line 3557 (register_verify): Peer > '1001' isn't dynamicRead what it says. Peer '1001' is defined as a fixed IP address, not dynamic. So it is not allowed to register. The host= setting defines how we're going to contact the peer when we want to deliver a call to the phone. host=dynamic -> Make the device register with asterisk so we know the current IP address host=<ip address> -> No registration, we already know the IP address and the address doesn't change. For mobile devices, like soft phones on a laptop, use registration. /Olle
Hi! Registration only works if you have set "host=dynamic" for the client! In case of a static host registration makes no sense, anyway! The only purpose of registration is to tell the server at which IP address the phone can be found. Cheers, Philipp