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

Norbert Varga (JIRA) noreply at issues.asterisk.org
Sun Jul 31 07:06:56 CDT 2016


    [ https://issues.asterisk.org/jira/browse/ASTERISK-26248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=231631#comment-231631 ] 

Norbert Varga commented on ASTERISK-26248:
------------------------------------------

I recently upgraded to 13.10.0. Now it seems calling a PJSIP client is not working, either for multi-domain and single domain account, I got the same error. This configuration was working in 13.9.1. Could you please suggest what's the problem here?
{code}
    -- Executing [1001 at pbxtest:1] Dial("PJSIP/1000-00000000", "PJSIP/1001") in new stack
[Jul 31 13:45:22] ERROR[5761]: res_pjsip.c:2785 ast_sip_create_dialog_uac: Could not create dialog to endpoint '1001' as URI '1001' is not valid
[Jul 31 13:45:22] ERROR[5761]: chan_pjsip.c:1921 request: Failed to create outgoing session to endpoint '1001'
[Jul 31 13:45:22] WARNING[5819][C-00000000]: app_dial.c:2432 dial_exec_full: Unable to create channel of type 'PJSIP' (cause 3 - No route to destination)
{code}

pjsip.conf:
{code}
[1000]
type = endpoint
transport = transport-udp-nat
disallow = all
allow = ulaw
direct_media = no
rtp_symmetric = yes
force_rport = yes
rewrite_contact = yes
context = pbxtest
auth = pbxtest-1000
aors = 1000

[pbxtest-1000]
type = auth
auth_type = userpass
username = 1000
password = xyz

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

[1001]
type = endpoint
transport = transport-udp-nat
disallow = all
allow = ulaw
direct_media = no
rtp_symmetric = yes
force_rport = yes
rewrite_contact = yes
context = pbxtest
auth = pbxtest-1001
aors = 1001

[pbxtest-1001]
type = auth
auth_type = userpass
username = 1001
password = xyz

[1001]
type = aor
max_contacts = 1
remove_existing = yes
{code}

extensions.conf:
{code}
[pbxtest]
exten => _ZXXX,1,Dial(PJSIP/${EXTEN})
{code}

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