Hi,

Okay, I added a call to sip_alert_info(sip) in the callback function when I
receive the nua_i_invite 100 event.  However, the ai_params and ai_url
fields of the sip_alert_info_t structured returned from sip_alert_info() is
not valid ASCII data (i.e. negative numbers).

Is there any other way to get at that data?  Or anything else I can try?

Best Regards,
Jerry


-----Original Message-----
From: Pekka Pessi [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 23, 2008 3:43 AM
To: Jerry Richards
Cc: sofia-sip-devel@lists.sourceforge.net
Subject: Re: SIPTAG_P_PREFERRED_IDENTITY()

2008/1/22, Jerry Richards <[EMAIL PROTECTED]>:
> If I call "sip_update_default_mclass(sip_extend_mclass(NULL))" during 
> initialization as you mention below, then which field of the (INVITE) 
> sip message (in the NUA callback function) would I find the "Alert-Info"
header?
>
> Up until now, I have been pulling it out of the 
> "sip->sip_unknown->un_name field", but it looks like that will no longer
work?

There is no field, you have to use accessor function
sip_alert_info(sip) (which will return pointer to sip_alert_info_t struct).

--
Pekka.Pessi mail at nokia.com


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to