<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>We've found the problem.</p>
<p>For anyone seeing this same problem in the future, the underlying
problem was a miss-placed entry in our pjsip.conf</p>
<p>callerid=0<br>
</p>
<p>If this is set, any changes to Remote-Party-ID are ignored, even
when CONNECTEDLINE(num) is called in the dialplan. I don't know
if this is desired behavior or not, but it's how pjsip seems to
work.<br>
</p>
<div class="moz-cite-prefix">On 4/6/23 2:54 PM, Steve Sether wrote:<br>
</div>
<blockquote type="cite"
cite="mid:a2e905c9-5681-78b6-a0cc-5ff27785cb5f@usinternet.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p>We've been using Asterisk 16 for a while now, and tried turning
on send_rpid = yes in my pjsip config for end points. This
solves a problem we're having where attended transfers aren't
updating the CallerID when the transfer is complete (it would
show the callerID of the party attempting the transfer, and
never update after the transfer happened).</p>
<p><br>
</p>
<p>The side effect of this change is that now on all outgoing
calls, the phone I placed the call on shows 0 as the dialed
number, which is wrong of course. This shows up in a pcap to
the phone that dialed as a re-invite sent back to it (before the
call even connects), and shows something like:</p>
<p>Remote-Party-ID:
<a class="moz-txt-link-rfc2396E"
href="mailto:sip:0@hostname-here.com;user=phone"
moz-do-not-send="true"><sip:0@hostname-here.com;user=phone></a>;party=called;privacy=off;screen=no</p>
<p><br>
</p>
<p>I'm not really certain why Asterisk is setting a
Remote-Party-ID to 0, which I believe is the default. Clearly
it knows who it's calling. I could fix this by explicitly
setting the header, but that seems wrong, and Asterisk should be
setting this correctly.</p>
<p>Any help is appreciated. I've gone through a bunch of
different attempts to fix this by changing pjsip settings (none
worked), but in the end I don't know why Asterisk sets this
header so wrong.<br>
</p>
<p>We're using Asterisk 16.30, and of course pjsip. <br>
</p>
<div class="moz-signature">-- <br>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</blockquote>
<div class="moz-signature">-- <br>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>