[asterisk-users] Asterisk on NSLU2 : Grandstream not registering

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sat Oct 3 09:54:15 CDT 2009


On Sat, Oct 03, 2009 at 03:19:36PM +0200, jonas kellens wrote:
> Hello there !
> 
> I have successfully installed Asterisk on a normal server and on a
> Linksys WRT610N with DD-WRT running from connected USB-stick. This is
> not my first Asterisk-installation. I'm always finding a smaller and
> smaller platform to install Asterisk on.
> 
> But now I encounter a problem.
> 
> I'm using the same Grandstream GXP2010 with a of my installations. Every
> time registration goes well. Until now...
> My Grandstream IP-phone just doens't register.
> 
> This is my sip.conf for the account :
> 
> [NSLU]                                                                          
> type=friend                                                                     
> host=dynamic                                                                    
> username=nslu                                                                   
> secret=nslu                                                                     
> context=intern                                                                  
> canreinvite=no                                                                  
> qualify=yes                                                                                                                                   
> callerid=GS NSLU2
> <10>                                                          
> accountcode=NSLU2                                                               
> disallow=all                                                                    
> allow=alaw                                                                      
> allow=gsm 
> 
> In my Grandstream I have set everything to point a the IP-address of the
> NSLU (192.168.1.77) for registration.
> 
> When rebooting the Grandstream (and after reboot registration occurs),
> this is the output of tcpdump on the NSLU :
> 
> # tcpdump port 5060
> tcpdump: WARNING: can't create rx ring on packet socket 3: 92-Protocol
> not available
> tcpdump: verbose output suppressed, use -v or -vv for full protocol
> decode
> listening on ixp0, link-type EN10MB (Ethernet), capture size 68 bytes
> 15:05:25.076484 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:05:26.060417 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:05:28.041041 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:05:32.001768 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:05:35.962492 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:05:59.728410 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:06:00.718256 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:06:02.698466 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:06:06.659535 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:06:10.620270 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:06:34.379528 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:06:35.368838 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:06:37.349612 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:06:41.310435 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:06:45.271174 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:07:40.717698 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:07:41.701566 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:07:43.682198 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:07:47.643208 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:07:51.603727 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:08:15.369527 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:08:16.359329 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:08:18.339485 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:08:22.300226 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:08:26.261470 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:08:50.020219 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:08:51.010097 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:08:52.990201 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:08:56.951409 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:09:00.912189 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:09:24.684056 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:09:25.673876 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:09:27.654508 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:09:31.615206 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:09:35.575930 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:09:59.341759 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:10:00.331607 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:10:02.311706 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:10:06.272903 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:10:10.233638 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:10:33.992951 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:10:34.982323 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:10:36.963003 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:10:40.923732 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:10:44.884451 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:11:08.656670 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:11:09.646491 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:11:11.626627 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:11:15.587501 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:11:19.548213 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:11:43.314384 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:11:44.303718 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:11:46.284370 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:11:50.245155 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 15:11:54.205877 IP 192.168.1.10.5064 > NSLU2.5060: SIP, length: 570
> 
> During that output, this is the output on the Asterisk CLI :
> 
> NSLU2*CLI> sip set debug
> SIP Debugging re-enabled
> NSLU2*CLI> sip reload
> [Oct  3 15:06:34]  Reloading SIP
> [Oct  3 15:06:34]   == Parsing '/opt/etc/asterisk/sip.conf': [Oct  3
> 15:06:34] Found
> [Oct  3 15:06:34]   == Parsing '/opt/etc/asterisk/sip_notify.conf': [Oct
> 3 15:06:34] Found
> 
> NSLU2*CLI> sip show peers
> Name/username              Host            Dyn Nat ACL Port
> Status               
> NSLU/nslu                  (Unspecified)    D          0
> UNKNOWN              
> 1 sip peers [Monitored: 0 online, 1 offline Unmonitored: 0 online, 0
> offline]
> 
> Some extra output of the asterisk-proces and network :
> 
> # netstat -anup | grep asterisk
> udp        0      0 0.0.0.0:4569            0.0.0.0:*
> 770/asterisk 

Asterisk does not seem to listen on UDP port 5060 , but chan_sip has
loaded. Anything else listens on UDP port 5060?

  netstat -lnup | grep 5060

(Note: using -l instead of -a: shows only listening ports)

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list