From: Alexander C. <ale...@gm...> - 2011-12-23 19:48:23
|
Hi Doug, Do I understand you correctly that you did that by hands in OpenBTS code instead of changing oSIP? Are this patches published or we should re-create them? On Fri, Dec 23, 2011 at 23:21, Doug Brown <dou...@ra...>wrote: > Right. The parser silently ignores those headers. I ended up running the > message through the parser, then > parsing the authentication header "by hand" to get that info and add to > osip_message_t. The library seems to have support for the authentication > header everywhere but in the parser. > > Doug > > > On Dec 23, 2011, at 11:05 AM, David Burgess wrote: > > Max - > > I think this is due to the fact that the public release of libosip does > not support these headers directly. > > -- David > > > On Dec 23, 2011, at 10:52 AM, su...@st... wrote: > > Hello all. > > > I'm experiencing weird problem with SIP parsing. As part of feature/a3a8 > we have to > > parse 401 sip response with 'nonce' parameter in WWW-Authenticate header. > > > The problem happens in SIPInterface.cpp in 'void SIPInterface::drive()' > function: > > - if I print buffer with received packet I clearly see WWW-Authenticate as > part of > > the response but if I use osip_message_to_str(..) after > osip_message_parse(..) then > > it simply disappears! Moreover osip_message_parse(..) call is successful > (returns 0). > > > Note: wireshark parses .pcap with sip packet in question without any > problems. > > > Is there some quirk in SIP parsing which could silently eat > WWW-Authenticate? > > Have someone experienced anything similar? > > Any words of advice on how to debug this? > > > best regards, > > Max. > > > > ------------------------------------------------------------------------------ > > Write once. Port to many. > > Get the SDK and tools to simplify cross-platform app development. Create > > new or port existing apps to sell to consumers worldwide. Explore the > > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > > http://p.sf.net/sfu/intel-appdev > > _______________________________________________ > > Openbts-discuss mailing list > > Ope...@li... > > https://lists.sourceforge.net/lists/listinfo/openbts-discuss > > > > David A. Burgess > Range Networks, Inc. > 560 Brannan St. > San Francisco, CA 94107 > USA > cell +1 707 208 2622 > > > > > Doug Brown > Range Networks, Inc. > dou...@ra... > > > > > > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > _______________________________________________ > Openbts-discuss mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openbts-discuss > > -- Regards, Alexander Chemeris. |