<div dir="ltr">Sorry, I wish I could help you further but I'm not that familiar with pjsip. Perhaps someone from Digium will respond.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 15, 2017 at 12:46 PM, Richard Frith-Macdonald <span dir="ltr"><<a href="mailto:richard.frith-macdonald@theengagehub.com" target="_blank">richard.frith-macdonald@theengagehub.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> On 15 Sep 2017, at 13:09, Richard Frith-Macdonald <<a href="mailto:richard.frith-macdonald@theengagehub.com">richard.frith-macdonald@<wbr>theengagehub.com</a>> wrote:<br>
><br>
><br>
>> On 15 Sep 2017, at 12:19, Phil Mickelson <<a href="mailto:phil@cbasoftware.com">phil@cbasoftware.com</a>> wrote:<br>
>><br>
>> If you look at the Channel option (<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+15+Channels+REST+API#Asterisk15ChannelsRESTAPI-create" rel="noreferrer" target="_blank">https://wiki.asterisk.org/<wbr>wiki/display/AST/Asterisk+15+<wbr>Channels+REST+API#<wbr>Asterisk15ChannelsRESTAPI-<wbr>create</a>) you see the originateWithId POST option. I believe that's what you want. And then you specify the caller id you want to use in the callerId query parameter. It works like a champ. I can change this easily for what ever customer I'm making the call for.<br>
>><br>
>> Hope this helps. If not, let me know and I'll try again.<br>
><br>
> Thanks. I'm using Asterisk 14.6 rather than 15 at the moment, but I don't think there should be a difference (I guess I need to carefully read the new features in 15 though),<br>
><br>
> I'm trying to use the /channels/create command rather than the /channels command, because I want to be able to bridge the call before the dial-out.<br>
><br>
> I'll try using /channels instead (if it works it would at least prove that the problem is not in the endpoint configuration), but in the long run I thing I need to be able to do the job using /channels/create<br>
<br>
If I use /channels/{newChannelId} rather than /channels/create asterisk *does* put the value from the 'callerId' parameter into the 'From' header of the INVITE (though not into the Contacts header).<br>
I don't know enough about SIP to know if that's sufficient for my callerid to show up at the remote phone, but it looks promising.<br>
Anyway, that success seems to rule out an error in the pjsip endpoint configuration.<br>
<br>
I guess setting the CALLERID(num) variable on a channel created using /channels/create is not sufficient to get it sent, but I don't see what else I might need to do.<br>
<br>
<br>
______________________________<wbr>_________________<br>
asterisk-app-dev mailing list<br>
<a href="mailto:asterisk-app-dev@lists.digium.com">asterisk-app-dev@lists.digium.<wbr>com</a><br>
<a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" rel="noreferrer" target="_blank">http://lists.digium.com/cgi-<wbr>bin/mailman/listinfo/asterisk-<wbr>app-dev</a><br>
</blockquote></div><br></div>