Re: [Sofia-sip-devel] SIPTAG_P_PREFERRED_IDENTITY()

2008-01-23 Thread Pekka Pessi
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

Re: [Sofia-sip-devel] SIPTAG_P_PREFERRED_IDENTITY()

2008-01-23 Thread Jerry Richards
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

Re: [Sofia-sip-devel] SIPTAG_P_PREFERRED_IDENTITY()

2008-01-23 Thread Michael Jerris
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