<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageReplySection">
<div dir="auto">On Mar 2, 2023 at 8:05 AM -0500, Karsten Wemheuer <kwem@mail.de>, wrote:</div>
<blockquote style="border-left: thin solid rgb(26, 188, 156); margin: 5px; padding-left: 10px;">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 />
<br /></blockquote>
<div dir="auto">For the record, this isn't a transfer it is a redirect. They are completely different things. The first thing we would need to know is how you are doing this. Are you immediately using the redirect features in Asterisk to send back a 302 or is more happening that results in a 302 being done?<br /></div>
<blockquote style="border-left: thin solid rgb(26, 188, 156); margin: 5px; padding-left: 10px;">Unlike chan_sip, the contact header is set different and maybe<br />
incorrectly with PJSIP:<br />
<br />
chan_sip:<br />
Contact: Transfer <sip:+49xxx@provider.de><br />
<br />
pjsip:<br />
Contact: <sip:+49170xxx@91.2.166.143:5060><br />
<br /></blockquote>
<div dir="auto">We will probably need to see actual SIP debugs and SIP messages so we can see how this is being sent to the carrier.<br /></div>
<blockquote style="border-left: thin solid rgb(26, 188, 156); margin: 5px; padding-left: 10px;">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 /></blockquote>
<div dir="auto">Well you should confirm with the carrier how they expect this. What is exactly needed for this to work. Guessing that it might be the contact header or a wrong port will just make extra work to figure out when the provider can give more direct answers.<br /></div>
<blockquote style="border-left: thin solid rgb(26, 188, 156); margin: 5px; padding-left: 10px;">Is this a bugf or how to use transfer application in combination with<br />
pjsip?<br />
<br />
Thanks<br />
<br />
Karsten<br />
<br />
<br />
--<br />
_____________________________________________________________________<br />
-- Bandwidth and Colocation Provided by http://www.api-digital.com --<br />
<br />
asterisk-dev mailing list<br />
To UNSUBSCRIBE or update options visit:<br />
http://lists.digium.com/mailman/listinfo/asterisk-dev</blockquote>
</div>
</body>
</html>