Re: [Sofia-sip-devel] 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/vse012070mrt/direct/01/ ___ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
Re: [Sofia-sip-devel] SIPTAG_P_PREFERRED_IDENTITY()
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/vse012070mrt/direct/01/ ___ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
Re: [Sofia-sip-devel] SIPTAG_P_PREFERRED_IDENTITY()
You can access the whole header as: sip_header_as_string(profile-home, (void *) alert_info); ai_url should be a url_t, not ascii data... if you are printfing it as %d it might show as a negative number. ai_params is a msg_param_t * , so a double pointer, its essentially a list of const char *, so to access the first param, you would do **ai_params. Mike On Jan 23, 2008, at 11:54 AM, Jerry Richards wrote: 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/vse012070mrt/direct/01/ ___ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel