<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 15, 2017 at 4:57 PM, Steve Murphy <span dir="ltr"><<a href="mailto:murf@parsetree.com" target="_blank">murf@parsetree.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif">Hmmm, according to your refs, none really apply to this situation.<br></div></div></blockquote><div><br></div><div><snip><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif"><br> the callerid of the target phone is set in the pjsip channel driver config, not in my dialplan (the same as chan_sip):<br><br></div><div style="font-family:arial,helvetica,sans-serif">And, my dialplan doesn't care about the callerid info for the phone you are dialing... in chan_sip, I get it via the 180 Ringing, but in pjsip, I am given useless information instead. I don't need it to change the sip exchanges to a re-invite, either. The phone is able to pick it up from the 180 Ringing just fine.<br><br></div><div style="font-family:arial,helvetica,sans-serif">Here is the config for the endpoints, a little cut down:<br></div><div style="font-family:arial,helvetica,sans-serif"><br>[t12]   ; Yealink T49G mac=00:15:65:...<br>type=endpoint<br>auth=t12<br>transport=transport-udp<br>aors=t12<br></div><div style="font-family:arial,helvetica,sans-serif"><snip><br></div><div style="font-family:arial,helvetica,sans-serif">callerid="Steve" <101><br><br></div><div style="font-family:arial,helvetica,sans-serif">[t13]   ; Yealink T48G mac=00:15:65:...<br>type=endpoint<br>auth=t13<br>transport=transport-udp<br>aors=t13<br></div><div style="font-family:arial,helvetica,sans-serif"><snip><br>callerid="s2 test" <102><br><br></div><div style="font-family:arial,helvetica,sans-serif">Since the config holds the callerids for each endpoint, I don't have any code to do lookups to get the callerid of the target. chan_sip has been fine providing it to the phone via the 180 Ringing...<br><br></div><div style="font-family:arial,helvetica,sans-serif">Right now, I'm running the exact same dialplan for chan_sip and pjsip. Are you telling me that I have to change the dialplan for pjsip? Can you give me a solid example of what I'd need to do in the dialplan to get the same effect?  As a matter of fact, I run the two channel drivers on two different ports, and I have phones on pjsip, and phones on chan_sip at the same time...<br></div></div></blockquote><div><br></div><div>There is something in your setup setting the wrong information.  My test setup does<br></div><div>send the correct information for the 180 Ringing message.  I am not running the two<br></div><div>SIP channel drivers at the same time.<br></div><div><br></div></div>For a simple dialplan you should only need to do a dial when<br></div><div class="gmail_extra">PJSIP/t12 calls 102:<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">exten = 102,1,NoO()<br></div><div class="gmail_extra">same = n,Dial(PJSIP/t13)<br></div><div class="gmail_extra">same = n,Hangup()<br></div><div class="gmail_extra"><br></div>You don't need to specify the transport in the endpoint config as the transport can<br><div class="gmail_extra">be determined from the defined transports.<br><br></div><div class="gmail_extra">There should be a send_rpid=yes somewhere in the endpoint config.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">Are you dialing between chan_sip and chan_pjsip channels for your testing?<br><br></div><div class="gmail_extra">You could expand upon the basic dial by adding an interception routine [1] that<br></div><div class="gmail_extra">just shows you the values of CALERID(all) and CONNECTEDLINE(all) when the routine<br></div><div class="gmail_extra">runs.<br></div><div class="gmail_extra"><br></div></div><div class="gmail_extra">Richard<br><br>[1] <a href="https://wiki.asterisk.org/wiki/display/AST/Party+ID+Interception+Macros+and+Routines">https://wiki.asterisk.org/wiki/display/AST/Party+ID+Interception+Macros+and+Routines</a><br></div></div>