[asterisk-dev] ast_sip_session

Joshua Colp jcolp at digium.com
Tue Nov 15 06:17:34 CST 2016


On Mon, Nov 14, 2016, at 03:46 AM, Kelvin Chua wrote:
> playing around chan_pjsip/res_pjsip
> 
> i have some data i want to pass from upstream to downstream on reponse
> for
> example, P-Associated-URI
> 
> i figured that datastore on ast_sip_session only handles either the
> upstream channel or the downstream channel. I can already parse the
> header
> on upstream but stuck on how to write
> this to the reply downstream. any pointers?

There is no generic mechanism for doing this currently: specifically
passing data back on a response or answer. The closest thing would be to
add a new frame type (frame.h) to Asterisk, put data on it (in an
ast_frame), propagate it through, and have it read/handled on the other
side. If you end up with specific questions you can respond back with
them, but you are sort of venturing into uncharted territory unless
someone else has an idea on how to better do it.

Cheers,

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list