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

Jehanzaib Younis jehanzaib_kiani at hotmail.com
Mon Nov 11 15:59:29 CST 2013


Hi,
Yes i already have fixed the code but is there anyone who can update the documentation? actually i have written what i have required so the documentation on the wiki need to be updated accordingly. i can see 

                                    Added by Mark Michelson, last edited by Mark Michelson on Apr 10, 2013
I will keep on testing other parts too 
cheers!

Thanks.

Date: Mon, 11 Nov 2013 15:15:28 -0600
From: mjordan at digium.com
To: asterisk-dev at lists.digium.com
Subject: Re: [asterisk-dev] Custome Header reader in Asterisk-12


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.

Matt
-- 
Matthew Jordan
Digium, Inc. | Engineering Manager445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20131112/165dd835/attachment.html>


More information about the asterisk-dev mailing list