Add custom header (User-Agent) in all SUBSCRIBE refresh requests

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

 



Hi all,
I am using pjproject-2.0.1 version. I want to add custom header
(User-Agent) in all outgoing SUBSCRIBE requests.

I observed that pjsua_process_msg_data() called in pjsua_start_mwi() takes
care of adding User-Agent, but User-Agent header does not add in subsequent
SUBSCRIBE refresh requests.

To achieve the same, I used pjsip_evsub_add_header() API immediately after
calling pjsua_process_msg_data() in pjsua_start_mwi() which adds User-Agent
header in sub_hdr_list. I hoped with this User-Agent header will get added
in every SUBSCRIBE refresh request. But this is not working.

Any pointers?

--
Thanks,
CWM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140709/3ff354fd/attachment.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