<div dir="ltr"><div dir="ltr">On Thu, Mar 2, 2023 at 9:04 AM Karsten Wemheuer <<a href="mailto:kwem@mail.de">kwem@mail.de</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi *,<br>
<br>
Maybe I found a small bug or I am doing something wrong.<br>
<br>
When I do a "Transfer" on a call that arrives via PJSIP, Asterisk sends<br>
a "302 Moved Temporarily" to perform the transfer.<br></blockquote><div><br></div><div>What version of Asterisk? What is the precise transport configuration?</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Unlike chan_sip, the contact header is set different and maybe<br>
incorrectly with PJSIP:<br>
<br>
chan_sip:<br>
Contact: Transfer <<a href="mailto:sip%3A%2B49xxx@provider.de" target="_blank">sip:+49xxx@provider.de</a>><br>
<br>
pjsip:<br>
Contact: <<a href="http://sip:+49170xxx@91.2.166.143:5060" rel="noreferrer" target="_blank">sip:+49170xxx@91.2.166.143:5060</a>><br>
<br>
The difference are domain (chan_sip) vs. local IP address (pjsip) and<br>
the additional (wrong?) port number. The IP address is the one of my<br>
router, but the port number should be 25060, because asterisk is<br>
configured to use this port.<br>
<br>
The transfer works with asterisk 11 and chan_sip. It does not work with<br>
pjsip and asterisk 18. My provider does not accept the transfer done<br>
with pjsip. Either the provider expects the domain in the contact<br>
header or the error is in the wrong port number.<br>
<br>
Is this a bugf or how to use transfer application in combination with<br>
pjsip?<br></blockquote><div><br></div><div>For questions like this in the future please use either the asterisk-users mailing list or the community forum[1].</div><div><br></div><div>[1] <a href="https://community.asterisk.org/">https://community.asterisk.org/</a> </div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Project Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div>