Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] PJSIP usereqphone setting in config file


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
nachum.yaron at gmail.com
Guest





PostPosted: Wed Apr 09, 2014 9:44 am    Post subject: [asterisk-users] PJSIP usereqphone setting in config file Reply with quote

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? 
Back to top
jcolp at digium.com
Guest





PostPosted: Thu Apr 10, 2014 9:50 am    Post subject: [asterisk-users] PJSIP usereqphone setting in config file Reply with quote

Yaron Nachum wrote:
Quote:
Hi everyone,

Kia ora,

Quote:
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

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
nachum.yaron at gmail.com
Guest





PostPosted: Thu Apr 10, 2014 10:13 am    Post subject: [asterisk-users] PJSIP usereqphone setting in config file Reply with quote

Thanks a lot Joshua. That's a great idea SmileI will try it and get back to you.



On Thu, Apr 10, 2014 at 5:50 PM, Joshua Colp <jcolp@digium.com (jcolp@digium.com)> wrote:
Quote:
Yaron Nachum wrote:
Quote:
Hi everyone,

Kia ora,

Quote:
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

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services