help put a custom SIP header as pjsua_msg_data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



this code i,  is supposed to  be your application layer
In this  case  the  app uses pjsua layer.

thanks

On May 27, 2010, at 11:03 AM, mamy mamy wrote:

> i must add this code in the class "pjsua_app.c"??
> 
> From: Alejandro.Orellana@xxxxxxxxxxxx
> Date: Thu, 27 May 2010 10:16:07 -0400
> To: pjsip at lists.pjsip.org
> Subject: Re: help put a custom SIP header as pjsua_msg_data
> 
>   pjsua_msg_data msg_data;
>   pjsip_generic_string_hdr my_hdr;
>   pj_str_t hname = pj_str("X-new");
>   pj_str_t hvalue = pj_str("BLABLABLA");
>   
>   pjsua_msg_data_init(&msg_data);
>   pjsip_generic_string_hdr_init2(&my_hdr, &hname, &hvalue);
>   pj_list_push_back(&msg_data.hdr_list, &my_hdr);
>   
>   pj_status_t status = pjsua_call_make_call(identifier, &uri, 0, NULL,
>                                             &msg_data, &callIdentifier);
> 
> 
> this will add the header X-new: BLABLABLA to the NVITE
> hope this helps
> 
> On May 27, 2010, at 10:06 AM, mamy mamy wrote:
> 
> how can i put a custom SIP header as pjsua_msg_data 
> Votre messagerie et bien plus o? que vous soyez. Passez ? Windows Live Hotmail, c'est gratuit ! Inscrivez-vous _______________________________________________
> Visit our blog: http://blog.pjsip.org
> 
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> 
> ------
> Alejandro Orellana
> Savant Systems, LLC
> 770 Main Street
> Osterville, Ma. 02655
> (508) 683-2547 (W)
> (508) 683-2647 (F)
> Alejandro.Orellana at savantav.com
> 
> Statement of Confidentiality
> The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683-2500 and delete this message and its attachments, if any.
> 
> 
> 
> 
> 
> Votre messagerie et bien plus o? que vous soyez. Passez ? Windows Live Hotmail, c'est gratuit ! Inscrivez-vous _______________________________________________
> Visit our blog: http://blog.pjsip.org
> 
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

------
Alejandro Orellana
Savant Systems, LLC
770 Main Street
Osterville, Ma. 02655
(508) 683-2547 (W)
(508) 683-2647 (F)
Alejandro.Orellana at savantav.com

Statement of Confidentiality
The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683-2500 and delete this message and its attachments, if any.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100527/5d87affa/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux