> -----Ursprüngliche Nachricht----- > Von: "Bernhard Suttner" <bernhard.sutt...@comdasys.com> > Gesendet: 17.04.09 11:16:10 > An: Aleksander Morgado <sofia-sip-de...@aleksander.es> > CC: sofia-sip-devel@lists.sourceforge.net > Betreff: Re: [Sofia-sip-devel] P-Asserted Header in RINGING
> Hi, > > yes, it is a extended sip headers and I also have that parser code > (mclas....) > but the main problem is that I dont get the sip_t const * sip pointer in a > RINGING nua_i_state. So it would also not be possible to get the Contact of a > RINGING or the SIP FROM or whatever. > > Best regards, > Bernhard > > Am Freitag 17 April 2009 10:40:18 schrieb Aleksander Morgado: > > Hi Bernhard, > > > > > > my nua application has to do something if it receives a P-Asserted > > > > Header in the 180 Ringing and/or in the 181 Call Is Being Forwarded. > > > > The problem is, that it is not possible to get the header value of the > > > > SIP struct (using sip_p_asserted_identity), because the SIP pointer is > > > > NULL.: > > > > Isn't that part of the extended SIP headers? > > > > Did you try the following when your app starts? > > > > /* Use the extended SIP parser as default one. */ > > su_init(); > > if (sip_update_default_mclass(sip_extend_mclass(NULL)) < 0) > > { > > su_deinit(); > > g_critical("Can't use the extended SIP parser!"); > > return -1; > > } > > > > I think I faced the same issue, and enabling extended headers was the > > solution. > > > > Cheers, > > -Aleksander > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Sofia-sip-devel mailing list > Sofia-sip-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel > Hi Bernhard, there should be a nua_r_invite event with a sip_t structure when RINGING is received. Did you try to find the header in there? Timo __________________________________________________________________________ Verschicken Sie SMS direkt vom Postfach aus - in alle deutschen und viele ausländische Netze zum gleichen Preis! https://produkte.web.de/webde_sms/sms ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel