[Asterisk-Dev] Embedded Asterisk

Nathan Littlepage nathan at iwantka.com
Fri Oct 24 06:54:40 MST 2003


How much is the Asterisk using uClibc weighing in at?

> -----Original Message-----
> From: asterisk-dev-admin at lists.digium.com 
> [mailto:asterisk-dev-admin at lists.digium.com] On Behalf Of 
> Lars Boegild Thomsen
> Sent: Friday, October 24, 2003 3:20 AM
> To: asterisk-dev at lists.digium.com
> Subject: RE: [Asterisk-Dev] Embedded Asterisk
> 
> 
> I've done further testing and this is getting interesting.
> 
> If using more or less the standard configuration - incoming 
> IAX2 works but
> incoming SIP packages are left untouched by asterisk.  So - 
> the big question
> is really - in what way is Asterisk handling IAX2 and SIP 
> differently when
> pulling packages of the udp stack?
> 
> Regards,
> 
> 	Lars...
> 
> > -----Original Message-----
> > From: asterisk-dev-admin at lists.digium.com
> > [mailto:asterisk-dev-admin at lists.digium.com]On Behalf Of 
> Lars Boegild
> > Thomsen
> > Sent: 24 October 2003 16:13
> > To: asterisk-dev at lists.digium.com
> > Subject: [Asterisk-Dev] Embedded Asterisk
> >
> >
> > Hi Mark,
> >
> > Thanx for the assistance on IRC today (nick: lth).  I tried your
> > suggestion
> > (printf in sipsock_read function) and can confirm your 
> suspicion - the
> > function is never called when Asterisk is linked with uClibc.
> >
> > A few more pointers:
> >
> > 1. I updated the uClibc library to latest snapshot - since 
> it now has
> > dn_expand function built in.  This results in Asterisk 
> being able to clean
> > compile with only the following changes:
> >
> > 	1. uClibc does not have the res_nxxxxx functions - so BSD
> > like calls are
> > used in dns.c (basically I changed the #ifdef __Linux__ to #ifdef
> > __xxLinux__)
> >
> > 	2. uClibc does not have res_search - changed that to
> > res_query call for
> > testing
> >
> > 2. Asterisk compiles and start up without any error 
> messages at all.  When
> > loading the chan_sip:
> >
> > 	Parsing: '/etc/asterisk/sip.conf': Found
> > 	SIP Listening on 0.0.0.0:5060
> > 	Using TOS bits 0
> > 	Registered channel type 'sip' (Session Initiation 
> Protocol (SIP))
> > 	Registered application 'SIPDtmfMode'
> > 	WARNING[1024]: File chan_sip.c, Line 5433
> > (restart_monitor): Cannot kill
> > myself
> >
> > 3. Asterisk definitely "binds" the port.  Netstat -a:
> >
> > 	...
> > 	udp	0	0	*:6060	*:*
> > 	...
> >
> > 4. sipsock_read is never called.  The input buffer on the 
> above netstat
> > output grows and grows if I try to connect a sip ua.
> >
> > 5. Absolutely NO hint output is generate from Asterisk.
> >
> > That's all I can think of right now.  It's obvious that Asterisk
> > never poll
> > the incomping packages from the udp stack - but why?  Any other
> > things I can
> > try?
> >
> > Regarding uClibc in general - most applications does run 
> flawlessly - so I
> > don't think the networking code is generally flawed.
> >
> > Regards,
> >
> >     Lars...
> >
> > --
> > Lars Boegild Thomsen
> > Technical Director
> > JustIT Sdn. Bhd.
> > Cell Phone (MY): +60 (16) 323 1999
> > ICQ: 6478559
> > Yahoo Chat: lars_boegild_thomsen at yahoo.com
> > MSN Chat: lars_boegild_thomsen at hotmail.com
> > http://www.justit.ws
> >
> > _______________________________________________
> > Asterisk-Dev mailing list
> > Asterisk-Dev at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-dev
> >
> 
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> 




More information about the asterisk-dev mailing list