[asterisk-bugs] [JIRA] (ASTERISK-26248) chan_pjsip: Error when calling PJSIP client with domain specified

Kevin Harwell (JIRA) noreply at issues.asterisk.org
Thu Mar 23 15:50:29 CDT 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-26248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Harwell updated ASTERISK-26248:
-------------------------------------

    Target Release Version/s: 13.15.0

> chan_pjsip: 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
>          Components: Channels/chan_pjsip, Resources/res_pjsip
>    Affects Versions: 13.9.1
>            Reporter: Norbert Varga
>            Severity: Minor
>      Target Release: 13.15.0
>
>         Attachments: multidomain-pjsip-patch.diff
>
>
> 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