Re: [asterisk-dev] Allow GET_TRANSFERRER_DATA in chan_pjsip

2024-01-11 Thread Joshua C. Colp
On Thu, Jan 11, 2024 at 11:07 AM Tomec Martin  wrote:

> Hi,
> I would like to write patch to allow GET_TRANSFERRER_DATA also in pjsip
> (to access incoming REFER headers in dialplan). The original patch for
> chan_sip is in [1]
> Where is the right place to add the code?
> I suppose that in res_pjsip_refer.c [2] in function
> "refer_incoming_invite_request" I could add headers data to
> session->channel. Is it correct place?
>

That is where such functionality should exist, yes.

-- 
Joshua C. Colp
Director of Engineering | Asterisk Project Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.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

[asterisk-dev] Allow GET_TRANSFERRER_DATA in chan_pjsip

2024-01-11 Thread Tomec Martin
Hi,
I would like to write patch to allow GET_TRANSFERRER_DATA also in pjsip (to 
access incoming REFER headers in dialplan). The original patch for chan_sip is 
in [1]
Where is the right place to add the code?
I suppose that in res_pjsip_refer.c [2] in function 
"refer_incoming_invite_request" I could add headers data to session->channel. 
Is it correct place?

Thanks for any hint - I have no experience with chan_pjsip

Martin Tomec

[1] 
https://github.com/asterisk/asterisk/commit/04b300525a190c7bdd22b7fc3364874dae800921
[2] https://github.com/asterisk/asterisk/blob/20/res/res_pjsip_refer.c

[https://opengraph.githubassets.com/e86728c411324a28f2ec98381a1c39424b3128b3f2d48768e6af4bb9c0d021ce/asterisk/asterisk/commit/04b300525a190c7bdd22b7fc3364874dae800921]
Merge "chan_sip: Access incoming REFER headers in dialplan" · 
asterisk/asterisk@04b3005
The official Asterisk Project repository. Contribute to asterisk/asterisk 
development by creating an account on GitHub.
github.com

-- 
_
-- 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