[asterisk-dev] Custome Header reader in Asterisk-12

Matthew Jordan mjordan at digium.com
Mon Nov 11 15:15:28 CST 2013

On Mon, Nov 11, 2013 at 3:11 PM, Jehanzaib Younis <
jehanzaib_kiani at hotmail.com> wrote:

> Thank you for the reply.
> I dont get any error.
> Actually there are 2 issues here, by default i cant see res_sip_session.h
> file anywhere
> can you please test the asterisk 12? i am sure its not working for any
> one. espacially the link
> https://wiki.asterisk.org/wiki/display/AST/Writing+a+SIP+Session+Supplement
> the script is not compiled because dependencies are not installed. can you
> please please have a look?
Well, you should get an error if you're compiling the sample code on that
wiki page. gcc should be complaining that it can't find "res_sip_session",
as it should be "res_pjsip_session.h", not "res_sip_session.h". The code on
the wiki page wasn't updated after the great sip -> pjsip migration of
2013; it probably needs a few other minor tweaks.

That being said, while someone will be along to make those updates, you
should be able to get the sample code there compiling with a few minor
adjustments. A few of the other public functions used in that sample code
will need similar name changes - as an exercise, you should compare the
public function calls in that sample code with the actual function calls in
res_pjsip_session.h. That should help you explore some of the API available
to you.


Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20131111/adab0090/attachment-0001.html>

More information about the asterisk-dev mailing list