[asterisk-dev] Allow GET_TRANSFERRER_DATA in chan_pjsip

Tomec Martin tomec at ipex.cz
Thu Jan 11 09:07:35 CST 2024


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]<https://github.com/asterisk/asterisk/commit/04b300525a190c7bdd22b7fc3364874dae800921>
Merge "chan_sip: Access incoming REFER headers in dialplan" ยท asterisk/asterisk at 04b3005<https://github.com/asterisk/asterisk/commit/04b300525a190c7bdd22b7fc3364874dae800921>
The official Asterisk Project repository. Contribute to asterisk/asterisk development by creating an account on GitHub.
github.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20240111/26f5d303/attachment.html>


More information about the asterisk-dev mailing list