Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[asterisk-users] PJSIP Endpoint AOR question


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





PostPosted: Wed Apr 01, 2015 2:53 pm    Post subject: [asterisk-users] PJSIP Endpoint AOR question Reply with quote

I am running asterisk 13.1.0

In pjsip.conf, the endpoint section has an aors and an auth field.

I can name the auth field anything I want. The key is to set the auth=field accordingly.
However, when I try this with the aors field, it never works. It seems I have to name the aors=field to match the name of the endpoint section.

Is this correct?

Would there ever be a need for multiple aors to a single endpoint? Since the field is named aors, I thought this would be possible. How would I do this if I have to name the aor the name of the endpoint?

This fails…

[transport1]
type = transport
bind = 0.0.0.0
protocol = udp

[aor3]
type = aor
max_contacts = 1
remove_existing = yes

[auth3]
type = auth
username = 1003
password = Password

[1003]
type = endpoint
context = Test
transport = transport1
auth = auth3
aors = aor3
dtmf_mode = inband
device_state_busy_at = 1
disallow = all
allow = ulaw


This succeeds…

[transport1]
type = transport
bind = 0.0.0.0
protocol = udp

[1003]
type = aor
max_contacts = 1
remove_existing = yes

[auth3]
type = auth
username = 1003
password = Password

[1003]
type = endpoint
context = Test
transport = transport1
auth = auth3
aors = 1003
dtmf_mode = inband
device_state_busy_at = 1
disallow = all
allow = ulaw
Back to top
kctrey at gmail.com
Guest





PostPosted: Wed Apr 01, 2015 3:00 pm    Post subject: [asterisk-users] PJSIP Endpoint AOR question Reply with quote

I don't know why you have issues using different names. I have multiple AORs assigned to a single endpoint and it works fine. I have to admit that my AORs do contain the endpoint name, though. For example, for endpoint "myswitch" I have two AORs, "myswitch_1" and "myswitch_2", and I assign them to the endpoint with aors=myswitch_1,myswitch_2.


When you say that the first example fails, what specifically fails? Do the PJSIP modules load but then you get an error when trying to dial to an endpoint, or maybe receive a call from one?


On Wed, Apr 1, 2015 at 2:53 PM Dan Cropp <dan@amtelco.com (dan@amtelco.com)> wrote:
Quote:

I am running asterisk 13.1.0

In pjsip.conf, the endpoint section has an aors and an auth field.

I can name the auth field anything I want. The key is to set the auth=field accordingly.
However, when I try this with the aors field, it never works. It seems I have to name the aors=field to match the name of the endpoint section.

Is this correct?

Would there ever be a need for multiple aors to a single endpoint? Since the field is named aors, I thought this would be possible. How would I do this if I have to name the aor the name of the endpoint?

This fails&hellip;

[transport1]
type = transport
bind = 0.0.0.0
protocol = udp

[aor3]
type = aor
max_contacts = 1
remove_existing = yes

[auth3]
type = auth
username = 1003
password = Password

[1003]
type = endpoint
context = Test
transport = transport1
auth = auth3
aors = aor3
dtmf_mode = inband
device_state_busy_at = 1
disallow = all
allow = ulaw


This succeeds&hellip;

[transport1]
type = transport
bind = 0.0.0.0
protocol = udp

[1003]
type = aor
max_contacts = 1
remove_existing = yes

[auth3]
type = auth
username = 1003
password = Password

[1003]
type = endpoint
context = Test
transport = transport1
auth = auth3
aors = 1003
dtmf_mode = inband
device_state_busy_at = 1
disallow = all
allow = ulaw


--
_____________________________________________________________________
-- 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
kctrey at gmail.com
Guest





PostPosted: Wed Apr 01, 2015 3:03 pm    Post subject: [asterisk-users] PJSIP Endpoint AOR question Reply with quote

I just realized that you are asking about dynamic AORs, not static Contacts in an AOR. That may be the difference. I have never actually tried giving a dynamic AOR a different name. And you wouldn't want more than one dynamic AOR, you'd just use an AOR that allowed more than 1 contact.


On Wed, Apr 1, 2015 at 2:59 PM Trey Hilyard <kctrey@gmail.com (kctrey@gmail.com)> wrote:
Quote:
I don't know why you have issues using different names. I have multiple AORs assigned to a single endpoint and it works fine. I have to admit that my AORs do contain the endpoint name, though. For example, for endpoint "myswitch" I have two AORs, "myswitch_1" and "myswitch_2", and I assign them to the endpoint with aors=myswitch_1,myswitch_2.


When you say that the first example fails, what specifically fails? Do the PJSIP modules load but then you get an error when trying to dial to an endpoint, or maybe receive a call from one?


On Wed, Apr 1, 2015 at 2:53 PM Dan Cropp <dan@amtelco.com (dan@amtelco.com)> wrote:
Quote:

I am running asterisk 13.1.0

In pjsip.conf, the endpoint section has an aors and an auth field.

I can name the auth field anything I want. The key is to set the auth=field accordingly.
However, when I try this with the aors field, it never works. It seems I have to name the aors=field to match the name of the endpoint section.

Is this correct?

Would there ever be a need for multiple aors to a single endpoint? Since the field is named aors, I thought this would be possible. How would I do this if I have to name the aor the name of the endpoint?

This fails&hellip;

[transport1]
type = transport
bind = 0.0.0.0
protocol = udp

[aor3]
type = aor
max_contacts = 1
remove_existing = yes

[auth3]
type = auth
username = 1003
password = Password

[1003]
type = endpoint
context = Test
transport = transport1
auth = auth3
aors = aor3
dtmf_mode = inband
device_state_busy_at = 1
disallow = all
allow = ulaw


This succeeds&hellip;

[transport1]
type = transport
bind = 0.0.0.0
protocol = udp

[1003]
type = aor
max_contacts = 1
remove_existing = yes

[auth3]
type = auth
username = 1003
password = Password

[1003]
type = endpoint
context = Test
transport = transport1
auth = auth3
aors = 1003
dtmf_mode = inband
device_state_busy_at = 1
disallow = all
allow = ulaw


--
_____________________________________________________________________
-- 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: Wed Apr 01, 2015 3:07 pm    Post subject: [asterisk-users] PJSIP Endpoint AOR question Reply with quote

Dan Cropp wrote:
Quote:
I am running asterisk 13.1.0

In pjsip.conf, the endpoint section has an aors and an auth field.

I can name the auth field anything I want. The key is to set the
auth=field accordingly.

However, when I try this with the aors field, it never works. It seems I
have to name the aors=field to match the name of the endpoint section.

Is this correct?

Would there ever be a need for multiple aors to a single endpoint? Since
the field is named aors, I thought this would be possible. How would I
do this if I have to name the aor the name of the endpoint?

Whether you have to name it the same or not is up to the SIP client
registering. Some allow you to specify the AOR you are registering
against. Some assume that the username you are authenticating as is the
same as your AOR.

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
dan at amtelco.com
Guest





PostPosted: Wed Apr 01, 2015 3:48 pm    Post subject: [asterisk-users] PJSIP Endpoint AOR question Reply with quote

Thanks Joshua.

That must be it. I'm using PhonerLite and a Cisco SPA504G phone.

Have a great day!


-----Original Message-----
From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Joshua Colp
Sent: Wednesday, April 01, 2015 3:07 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] PJSIP Endpoint AOR question

Dan Cropp wrote:
Quote:
I am running asterisk 13.1.0

In pjsip.conf, the endpoint section has an aors and an auth field.

I can name the auth field anything I want. The key is to set the
auth=field accordingly.

However, when I try this with the aors field, it never works. It seems
I have to name the aors=field to match the name of the endpoint section.

Is this correct?

Would there ever be a need for multiple aors to a single endpoint?
Since the field is named aors, I thought this would be possible. How
would I do this if I have to name the aor the name of the endpoint?

Whether you have to name it the same or not is up to the SIP client registering. Some allow you to specify the AOR you are registering against. Some assume that the username you are authenticating as is the same as your AOR.

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

--
_____________________________________________________________________
-- 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
dan at amtelco.com
Guest





PostPosted: Wed Apr 01, 2015 3:50 pm    Post subject: [asterisk-users] PJSIP Endpoint AOR question Reply with quote

Thanks Trey.

Have a great day!

From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Trey Hilyard
Sent: Wednesday, April 01, 2015 3:03 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] PJSIP Endpoint AOR question

I just realized that you are asking about dynamic AORs, not static Contacts in an AOR. That may be the difference. I have never actually tried giving a dynamic AOR a different name. And you wouldn't want more than one dynamic AOR, you'd just use an AOR that allowed more than 1 contact.


On Wed, Apr 1, 2015 at 2:59 PM Trey Hilyard <kctrey@gmail.com (kctrey@gmail.com)> wrote:
I don't know why you have issues using different names. I have multiple AORs assigned to a single endpoint and it works fine. I have to admit that my AORs do contain the endpoint name, though. For example, for endpoint "myswitch" I have two AORs, "myswitch_1" and "myswitch_2", and I assign them to the endpoint with aors=myswitch_1,myswitch_2.


When you say that the first example fails, what specifically fails? Do the PJSIP modules load but then you get an error when trying to dial to an endpoint, or maybe receive a call from one?



On Wed, Apr 1, 2015 at 2:53 PM Dan Cropp <dan@amtelco.com (dan@amtelco.com)> wrote:
I am running asterisk 13.1.0

In pjsip.conf, the endpoint section has an aors and an auth field.

I can name the auth field anything I want. The key is to set the auth=field accordingly.
However, when I try this with the aors field, it never works. It seems I have to name the aors=field to match the name of the endpoint section.

Is this correct?

Would there ever be a need for multiple aors to a single endpoint? Since the field is named aors, I thought this would be possible. How would I do this if I have to name the aor the name of the endpoint?

This fails…

[transport1]
type = transport
bind = 0.0.0.0
protocol = udp

[aor3]
type = aor
max_contacts = 1
remove_existing = yes

[auth3]
type = auth
username = 1003
password = Password

[1003]
type = endpoint
context = Test
transport = transport1
auth = auth3
aors = aor3
dtmf_mode = inband
device_state_busy_at = 1
disallow = all
allow = ulaw


This succeeds…

[transport1]
type = transport
bind = 0.0.0.0
protocol = udp

[1003]
type = aor
max_contacts = 1
remove_existing = yes

[auth3]
type = auth
username = 1003
password = Password

[1003]
type = endpoint
context = Test
transport = transport1
auth = auth3
aors = 1003
dtmf_mode = inband
device_state_busy_at = 1
disallow = all
allow = ulaw



--
_____________________________________________________________________
-- 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