[asterisk-bugs] [JIRA] (ASTERISK-26248) Error when calling PJSIP client with domain specified
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Thu Jul 28 05:13:56 CDT 2016
[ https://issues.asterisk.org/jira/browse/ASTERISK-26248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=231604#comment-231604 ]
Asterisk Team commented on ASTERISK-26248:
------------------------------------------
Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.
A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.
Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].
> Error when calling PJSIP client with domain specified
> -----------------------------------------------------
>
> Key: ASTERISK-26248
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-26248
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Affects Versions: 13.9.1
> Reporter: Norbert Varga
>
> I'd like to use endpoint with different domains in my system. I have the following config in pjsip.conf:
> {code}
> [1000 at mypbx.com]
> type = endpoint
> transport = transport-udp-nat
> disallow = all
> allow = ulaw
> direct_media = no
> rtp_symmetric = yes
> force_rport = yes
> rewrite_contact = yes
> context = test
> auth = 1000
> aors = 1000
> [1000]
> type = auth
> auth_type = userpass
> username = test
> password = xy
> [1000]
> type = aor
> max_contacts = 1
> remove_existing = yes
> {code}
> In extensions.conf I have:
> {code}
> [test]
> exten => _ZXXX,1,Dial(PJSIP/{EXTEN}@mypbx.com)
> {code}
> Register works. When I try to dial 1000 from another extensions, I get this:
> {code}
> ERROR[38010]: chan_pjsip.c:1907 request: Unable to create PJSIP channel - endpoint 'mypbx.com' was not found
> WARNING[38308][C-00000002]: app_dial.c:2429 dial_exec_full: Unable to create channel of type 'PJSIP' (cause 3 - No route to destination)
> {code}
> The problem is that in the dialplan I have to specify the full name of the endpoint (1000 at mypbx.com), but in chan_pjsip above line 1907 the host part is taken as endpoint. The only workaround which is worked, but it looks ugly, and I had to look in the code how to workaround this:
> {code}
> exten => _ZXXX,1,Dial(PJSIP/@{EXTEN}@mypbx.com)
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list