Yaron Nachum
2014-Apr-09 14:43 UTC
[asterisk-users] PJSIP usereqphone setting in config file
Hi everyone, I am starting to work with PJSIP on release 12.1.0.rc3. I used to have Asterisk 1.8 with the regular sip channel. I was using the usereqphone settings in order to set user=phone on from and to URIs. Is there a similar config in PJSIP? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140409/65727670/attachment.html>
Joshua Colp
2014-Apr-10 14:50 UTC
[asterisk-users] PJSIP usereqphone setting in config file
Yaron Nachum wrote:> Hi everyone,Kia ora,> I am starting to work with PJSIP on release 12.1.0.rc3. > > I used to have Asterisk 1.8 with the regular sip channel. I was using > the usereqphone settings in order to set user=phone on from and to URIs. > > Is there a similar config in PJSIP?There is currently no option which explicitly does this. A core difference between chan_sip and chan_pjsip, though, is that we treat stuff as SIP URIs in the first place. To that end it may be possible to simply add ;user=phone to the SIP URI yourself and have it work. Since ';' is used for comments though you will need to escape it using \. An example for a static contact on an AOR: contact=sip:172.16.1.1:5060;user=phone Cheers, -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org