PJSIP – Using Multiple AOR Contacts When Dialing Through An Endpoint

Home » Asterisk Users » PJSIP – Using Multiple AOR Contacts When Dialing Through An Endpoint
Asterisk Users 6 Comments

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 bind2.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

[sipp]
type=identify endpoint=sipp match.25.153.150
match2.16.60.160

6 thoughts on - PJSIP – Using Multiple AOR Contacts When Dialing Through An Endpoint

  • 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?

  • 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
    🙂

    Yaron.

  • 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.

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

    Great mailing list.