Re: Allow GET_TRANSFERRER_DATA in chan_pjsip
"Joshua C. Colp" <[email protected]> Thu, 11 Jan 2024 11:10:04 -0400
| Newsgroups | gmane.comp.telephony.pbx.asterisk.devel |
|---|---|
| Message-ID | <CAM0A2Z3_xeL9qhmo9M=ERPkE2TQpV3pAB5gfffe_xAAu0z9aKQ@mail.gmail.com> |
--===============8946226596754720701== Content-Type: multipart/alternative; boundary="000000000000e9600e060eacf1b9" --000000000000e9600e060eacf1b9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jan 11, 2024 at 11:07=E2=80=AFAM Tomec Martin <[email protected]> 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. --=20 Joshua C. Colp Director of Engineering | Asterisk Project Lead Sangoma Technologies Check us out at www.sangoma.com and www.asterisk.org --000000000000e9600e060eacf1b9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr">On Thu, Jan 11, 2024 at 11:07=E2=80=AFAM = Tomec Martin <<a href=3D"mailto:[email protected]">[email protected]</a>> wro= te:<br></div><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" s= tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad= ding-left:1ex"><div class=3D"msg1558783593233771416"> <div dir=3D"ltr"> <div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali= bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"> Hi,</div> <div><span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontServic= e,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">I would lik= e to write patch to allow GET_TRANSFERRER_DATA also in pjsip (to access inc= oming REFER headers in dialplan). The original patch for chan_sip is in [1]</spa= n></div> <div><span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontServic= e,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">Where is th= e right place to add the code?=C2=A0</span></div> <div><span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontServic= e,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">I suppose t= hat in res_pjsip_refer.c [2] in function "refer_incoming_invite_reques= t" I could add headers data to session->channel. Is it correct place?<br><= /span></div></div></div></blockquote><div><br></div><div>That is where such= functionality should exist, yes.=C2=A0</div></div><div><br></div><span cla= ss=3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail= _signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><d= iv dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div style=3D"font-family:= tahoma,sans-serif"><font color=3D"#073763">Joshua C. Colp</font></div><div = style=3D"font-family:tahoma,sans-serif"><font color=3D"#073763">Director of= Engineering | Asterisk Project Lead</font></div><div style=3D"font-family:= tahoma,sans-serif"><font color=3D"#073763">Sangoma Technologies</font></div= ><div style=3D"font-family:tahoma,sans-serif"><font color=3D"#073763">Check= us out at <a href=3D"http://www.sangoma.com" target=3D"_blank">www.sangoma= .com</a> and <a href=3D"http://www.asterisk.org" target=3D"_blank">www.aste= risk.org</a></font><br></div></div></div></div></div></div></div></div></di= v></div></div> --000000000000e9600e060eacf1b9-- --===============8946226596754720701== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline LS0gCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fXwotLSBCYW5kd2lkdGggYW5kIENvbG9jYXRpb24gUHJvdmlkZWQgYnkg aHR0cDovL3d3dy5hcGktZGlnaXRhbC5jb20gLS0KCmFzdGVyaXNrLWRldiBtYWlsaW5nIGxpc3QK VG8gVU5TVUJTQ1JJQkUgb3IgdXBkYXRlIG9wdGlvbnMgdmlzaXQ6CiAgIGh0dHA6Ly9saXN0cy5k aWdpdW0uY29tL21haWxtYW4vbGlzdGluZm8vYXN0ZXJpc2stZGV2 --===============8946226596754720701==--