Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[asterisk-users] PJSIP - Using multiple AOR contacts when dialing through an endpoint


 
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: Tue Mar 11, 2014 8:24 am    Post subject: [asterisk-users] PJSIP - Using multiple AOR contacts when di Reply with quote

Hello everyone,I have started testing the PJSIP stack.


I saw that it is possible to setup statically multiple AOR contacts, setup qualify_timeout and attach it to an endpoint, and then dial using this endpoint.


When I setup the configuration I used the cli in order to see the status of the contacts, and it worked fine - whenever a contact is unreachable, the status is updated to Unavailable.


However, when I dial through this endpoint the asterisk doesn't use other contacts which are available in this endpoint.


Is it a known issue?  Are you planning to solve it?


Below is my pjsip.conf:


[transport-udp]
type=transport
protocol=udp
bind=172.16.60.160:5060


;SIPP
[sipp]
type=endpoint
transport=transport-udp
context=from-external
disallow=all
allow=alaw
100rel=required
aors=sipp


[sipp]
type=aor
contact=sip:172.16.60.160:5080
contact=sip:10.25.153.150:5060
qualify_frequency=10






[sipp]
type=identify
endpoint=sipp
match=10.25.153.150
match=172.16.60.160
Back to top
jcolp at digium.com
Guest





PostPosted: Tue Mar 11, 2014 8:27 am    Post subject: [asterisk-users] PJSIP - Using multiple AOR contacts when di Reply with quote

Yaron Nachum wrote:
Quote:
Hello everyone,
I have started testing the PJSIP stack.

I saw that it is possible to setup statically multiple AOR contacts,
setup qualify_timeout and attach it to an endpoint, and then dial using
this endpoint.

When I setup the configuration I used the cli in order to see the status
of the contacts, and it worked fine - whenever a contact is unreachable,
the status is updated to Unavailable.

However, when I dial through this endpoint the asterisk doesn't use
other contacts which are available in this endpoint.

Is it a known issue? Are you planning to solve it?

Due to limitations within the Asterisk core you have to use the
PJSIP_DIAL_CONTACTS dialplan function[1].

[1]
https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+Function_PJSIP_DIAL_CONTACTS

--
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: Tue Mar 11, 2014 8:36 am    Post subject: [asterisk-users] PJSIP - Using multiple AOR contacts when di Reply with quote

Thanks Joshua,I tried it already. That would generate a call to both AORs which is not what I was looking for.


Isn't there a way to retrieve the AOR status from the dialplan? 



On Tue, Mar 11, 2014 at 3:27 PM, Joshua Colp <jcolp@digium.com (jcolp@digium.com)> wrote:
Quote:
Yaron Nachum wrote:
Quote:
Hello everyone,
I have started testing the PJSIP stack.

I saw that it is possible to setup statically multiple AOR contacts,
setup qualify_timeout and attach it to an endpoint, and then dial using
this endpoint.

When I setup the configuration I used the cli in order to see the status
of the contacts, and it worked fine - whenever a contact is unreachable,
the status is updated to Unavailable.

However, when I dial through this endpoint the asterisk doesn't use
other contacts which are available in this endpoint.

Is it a known issue?  Are you planning to solve it?


Due to limitations within the Asterisk core you have to use the PJSIP_DIAL_CONTACTS dialplan function[1].

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+Function_PJSIP_DIAL_CONTACTS

--
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
jcolp at digium.com
Guest





PostPosted: Tue Mar 11, 2014 8:39 am    Post subject: [asterisk-users] PJSIP - Using multiple AOR contacts when di Reply with quote

Yaron Nachum wrote:
Quote:
Thanks Joshua,
I tried it already. That would generate a call to both AORs which is not
what I was looking for.

Isn't there a way to retrieve the AOR status from the dialplan?

Not currently.

--
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: Tue Mar 11, 2014 8:46 am    Post subject: [asterisk-users] PJSIP - Using multiple AOR contacts when di Reply with quote

Thanks for the response anyway.

I think that it would be great if someone would make it happen. It seems to me trivial that once you enable to setup multiple AORs you would use them Smile


Yaron.



On Tue, Mar 11, 2014 at 3:38 PM, Joshua Colp <jcolp@digium.com (jcolp@digium.com)> wrote:
Quote:
Yaron Nachum wrote:
Quote:
Thanks Joshua,
I tried it already. That would generate a call to both AORs which is not
what I was looking for.

Isn't there a way to retrieve the AOR status from the dialplan?


Not currently.

--
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
mjordan at digium.com
Guest





PostPosted: Tue Mar 11, 2014 10:38 am    Post subject: [asterisk-users] PJSIP - Using multiple AOR contacts when di Reply with quote

On Tue, Mar 11, 2014 at 8:45 AM, Yaron Nachum <nachum.yaron@gmail.com> wrote:
Quote:

Thanks for the response anyway.

I think that it would be great if someone would make it happen. It seems to me trivial that once you enable to setup multiple AORs you would use them Smile

Yaron.


On Tue, Mar 11, 2014 at 3:38 PM, Joshua Colp <jcolp@digium.com> wrote:
Quote:

Yaron Nachum wrote:
Quote:

Thanks Joshua,
I tried it already. That would generate a call to both AORs which is not
what I was looking for.

Isn't there a way to retrieve the AOR status from the dialplan?


Not currently.


We're still adding dialplan functions and CLI commands to the PJSIP
stack. Right now there's a way to drill down into endpoint
configuration via the PJSIP_ENDPOINT function, but we haven't yet
expanded that to AORs. Doing so is a pretty natural next step.

There's some discussion of this on the following JIRA issue, where
Josh mentions we could query down into the contacts for some of the
information:

https://issues.asterisk.org/jira/browse/ASTERISK-23173

We'd probably have something similar to PJSIP_ENDPOINT, such as
PJSIP_AOR or PJSIP_CONTACT (or something like that), that lets you get
at the run-time information of an AOR.

--
Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://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: Tue Mar 11, 2014 12:20 pm    Post subject: [asterisk-users] PJSIP - Using multiple AOR contacts when di Reply with quote

Thanks Mathew,That would be great - just to validate the status of the AOR before you send the INVITE.


Great mailing list.





On Tue, Mar 11, 2014 at 5:38 PM, Matthew Jordan <mjordan@digium.com (mjordan@digium.com)> wrote:
Quote:
On Tue, Mar 11, 2014 at 8:45 AM, Yaron Nachum <nachum.yaron@gmail.com (nachum.yaron@gmail.com)> wrote:
Quote:

Thanks for the response anyway.

I think that it would be great if someone would make it happen. It seems to me trivial that once you enable to setup multiple AORs you would use them Smile

Yaron.


On Tue, Mar 11, 2014 at 3:38 PM, Joshua Colp <jcolp@digium.com (jcolp@digium.com)> wrote:
Quote:

Yaron Nachum wrote:
Quote:

Thanks Joshua,
I tried it already. That would generate a call to both AORs which is not
what I was looking for.

Isn't there a way to retrieve the AOR status from the dialplan?


Not currently.



We're still adding dialplan functions and CLI commands to the PJSIP
stack. Right now there's a way to drill down into endpoint
configuration via the PJSIP_ENDPOINT function, but we haven't yet
expanded that to AORs. Doing so is a pretty natural next step.

There's some discussion of this on the following JIRA issue, where
Josh mentions we could query down into the contacts for some of the
information:

https://issues.asterisk.org/jira/browse/ASTERISK-23173

We'd probably have something similar to PJSIP_ENDPOINT, such as
PJSIP_AOR or PJSIP_CONTACT (or something like that), that lets you get
at the run-time information of an AOR.

--
Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://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