Allow GET_TRANSFERRER_DATA in chan_pjsip
Tomec Martin <[email protected]> Thu, 11 Jan 2024 15:07:35 +0000
| Newsgroups | gmane.comp.telephony.pbx.asterisk.devel |
|---|---|
| Message-ID | <AM7PR09MB4184CF8732A77E63EA8B4427B9682@AM7PR09MB4184.eurprd09.prod.outlook.com> |
--===============4193131393918147125==
Content-Language: cs-CZ
Content-Type: multipart/alternative;
boundary="_000_AM7PR09MB4184CF8732A77E63EA8B4427B9682AM7PR09MB4184eurp_"
--_000_AM7PR09MB4184CF8732A77E63EA8B4427B9682AM7PR09MB4184eurp_
Content-Type: text/plain; charset="windows-1250"
Content-Transfer-Encoding: quoted-printable
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_si=
p 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/04b300525a190c7bdd22b7fc336=
4874dae800921
[2] https://github.com/asterisk/asterisk/blob/20/res/res_pjsip_refer.c
[https://opengraph.githubassets.com/e86728c411324a28f2ec98381a1c39424b3128b=
3f2d48768e6af4bb9c0d021ce/asterisk/asterisk/commit/04b300525a190c7bdd22b7fc=
3364874dae800921]<https://github.com/asterisk/asterisk/commit/04b300525a190=
c7bdd22b7fc3364874dae800921>
Merge "chan_sip: Access incoming REFER headers in dialplan" =B7 asterisk/as=
terisk@04b3005<https://github.com/asterisk/asterisk/commit/04b300525a190c7b=
dd22b7fc3364874dae800921>
The official Asterisk Project repository. Contribute to asterisk/asterisk d=
evelopment by creating an account on GitHub.
github.com
--_000_AM7PR09MB4184CF8732A77E63EA8B4427B9682AM7PR09MB4184eurp_
Content-Type: text/html; charset="windows-1250"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dwindows-1=
250">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
Hi,</div>
<div class=3D"elementToProof"><span style=3D"font-family: Aptos, Aptos_Embe=
ddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 1=
2pt; color: rgb(0, 0, 0);">I would like to write patch to allow GET_TRANSFE=
RRER_DATA also in pjsip (to access incoming
REFER headers in dialplan). The original patch for chan_sip is in [1]</spa=
n></div>
<div class=3D"elementToProof"><span style=3D"font-family: Aptos, Aptos_Embe=
ddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 1=
2pt; color: rgb(0, 0, 0);">Where is the right place to add the code? <=
/span></div>
<div class=3D"elementToProof"><span style=3D"font-family: Aptos, Aptos_Embe=
ddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 1=
2pt; color: rgb(0, 0, 0);">I suppose that in res_pjsip_refer.c [2] in funct=
ion "refer_incoming_invite_request"
I could add headers data to session->channel. Is it correct place?</spa=
n></div>
<div class=3D"elementToProof"><span style=3D"font-family: Aptos, Aptos_Embe=
ddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 1=
2pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div class=3D"elementToProof"><span style=3D"font-family: Aptos, Aptos_Embe=
ddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 1=
2pt; color: rgb(0, 0, 0);">Thanks for any hint - I have no experience with =
chan_pjsip</span></div>
<div class=3D"elementToProof"><span style=3D"font-family: Aptos, Aptos_Embe=
ddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 1=
2pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div class=3D"elementToProof"><span style=3D"font-family: Aptos, Aptos_Embe=
ddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 1=
2pt; color: rgb(0, 0, 0);">Martin Tomec</span></div>
<div class=3D"elementToProof"><span style=3D"font-family: Aptos, Aptos_Embe=
ddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 1=
2pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div class=3D"elementToProof"><span style=3D"letter-spacing: normal; font-f=
amily: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, =
sans-serif; font-size: 16px; color: rgb(0, 0, 0); background-color: rgb(255=
, 255, 255); font-weight: 400;">[1]
<a href=3D"https://github.com/asterisk/asterisk/commit/04b300525a190c7bdd22=
b7fc3364874dae800921" id=3D"OWA771621b4-6a1a-524f-32f5-98b9506705de" class=
=3D"OWAAutoLink" style=3D"margin: 0px; background-color: rgb(255, 255, 255)=
; text-align: left;">
https://github.com/asterisk/asterisk/commit/04b300525a190c7bdd22b7fc3364874=
dae800921</a></span></div>
<div class=3D"elementToProof"><span style=3D"font-family: Aptos, Aptos_Embe=
ddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 1=
2pt; color: rgb(0, 0, 0);">[2]
<a href=3D"https://github.com/asterisk/asterisk/blob/20/res/res_pjsip_refer=
.c" id=3D"LPlnk166196" class=3D"OWAAutoLink">
https://github.com/asterisk/asterisk/blob/20/res/res_pjsip_refer.c</a></spa=
n></div>
<div class=3D"elementToProof"><span style=3D"font-family: Aptos, Aptos_Embe=
ddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 1=
2pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div class=3D"_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_=
1">
<div id=3D"LPBorder_GTaHR0cHM6Ly9naXRodWIuY29tL2FzdGVyaXNrL2FzdGVyaXNrL2Nvb=
W1pdC8wNGIzMDA1MjVhMTkwYzdiZGQyMmI3ZmMzMzY0ODc0ZGFlODAwOTIx" class=3D"LPBor=
der102096" style=3D"width: 100%; margin-top: 16px; margin-bottom: 16px; pos=
ition: relative; max-width: 800px; min-width: 424px;">
<table id=3D"LPContainer102096" role=3D"presentation" style=3D"padding: 12p=
x 36px 12px 12px; width: 100%; border-width: 1px; border-style: solid; bord=
er-color: rgb(200, 200, 200); border-radius: 2px;">
<tbody>
<tr valign=3D"top" style=3D"border-spacing: 0px;">
<td>
<div id=3D"LPImageContainer102096" style=3D"position: relative; margin-righ=
t: 12px; height: 120px; overflow: hidden; width: 240px;">
<a target=3D"_blank" id=3D"LPImageAnchor102096" href=3D"https://github.com/=
asterisk/asterisk/commit/04b300525a190c7bdd22b7fc3364874dae800921"><img id=
=3D"LPThumbnailImageId102096" alt=3D"" height=3D"120" style=3D"display: blo=
ck;" width=3D"240" src=3D"https://opengraph.githubassets.com/e86728c411324a=
28f2ec98381a1c39424b3128b3f2d48768e6af4bb9c0d021ce/asterisk/asterisk/commit=
/04b300525a190c7bdd22b7fc3364874dae800921"></a></div>
</td>
<td style=3D"width: 100%;">
<div id=3D"LPTitle102096" style=3D"font-size: 21px; font-weight: 300; margi=
n-right: 8px; font-family: wf_segoe-ui_light, "Segoe UI Light", &=
quot;Segoe WP Light", "Segoe UI", "Segoe WP", Taho=
ma, Arial, sans-serif; margin-bottom: 12px;">
<a target=3D"_blank" id=3D"LPUrlAnchor102096" href=3D"https://github.com/as=
terisk/asterisk/commit/04b300525a190c7bdd22b7fc3364874dae800921" style=3D"t=
ext-decoration: none; color: var(--themePrimary);">Merge "chan_sip: Ac=
cess incoming REFER headers in dialplan" =B7 asterisk/asterisk@04b3005=
</a></div>
<div id=3D"LPDescription102096" style=3D"font-size: 14px; max-height: 100px=
; color: rgb(102, 102, 102); font-family: wf_segoe-ui_normal, "Segoe U=
I", "Segoe WP", Tahoma, Arial, sans-serif; margin-bottom: 12=
px; margin-right: 8px; overflow: hidden;">
The official Asterisk Project repository. Contribute to asterisk/asterisk d=
evelopment by creating an account on GitHub.</div>
<div id=3D"LPMetadata102096" style=3D"font-size: 14px; font-weight: 400; co=
lor: rgb(166, 166, 166); font-family: wf_segoe-ui_normal, "Segoe UI&qu=
ot;, "Segoe WP", Tahoma, Arial, sans-serif;">
github.com</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
</body>
</html>
--_000_AM7PR09MB4184CF8732A77E63EA8B4427B9682AM7PR09MB4184eurp_--
--===============4193131393918147125==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
LS0gCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fXwotLSBCYW5kd2lkdGggYW5kIENvbG9jYXRpb24gUHJvdmlkZWQgYnkg
aHR0cDovL3d3dy5hcGktZGlnaXRhbC5jb20gLS0KCmFzdGVyaXNrLWRldiBtYWlsaW5nIGxpc3QK
VG8gVU5TVUJTQ1JJQkUgb3IgdXBkYXRlIG9wdGlvbnMgdmlzaXQ6CiAgIGh0dHA6Ly9saXN0cy5k
aWdpdW0uY29tL21haWxtYW4vbGlzdGluZm8vYXN0ZXJpc2stZGV2
--===============4193131393918147125==--