Jolt Select Dial PBX

Hello guys.
I’m new here, I researched before but found nothing that could help me.
I’m trying to set up Jolt Select Dial PBX. I edited the call.php file, I can make calls between internal extensions, but when trying to make calls to a stern number I get the message that the number is incorrect.
The report follows:

[2019-05-03 11:29:51] VERBOSE[24681] dial.c: Called 210
[2019-05-03 11:29:51] VERBOSE[46821] netsock2.c: Using SIP RTP Audio TOS bits 184
[2019-05-03 11:29:51] VERBOSE[46821] netsock2.c: Using SIP RTP Audio TOS bits 184 in TCLASS field.
[2019-05-03 11:29:51] VERBOSE[46821] netsock2.c: Using SIP RTP Audio CoS mark 5
[2019-05-03 11:29:51] VERBOSE[24681] dial.c: PJSIP/210-00000368 is ringing
[2019-05-03 11:29:51] VERBOSE[24681] dial.c: PJSIP/210-00000368 is ringing
[2019-05-03 11:29:54] VERBOSE[24681] dial.c: PJSIP/210-00000368 answered
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [0971442523@from-internal:1] Macro("PJSIP/210-00000368", "user-callerid,LIMIT,EXTERNAL,") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [s@macro-user-callerid:1] Set("PJSIP/210-00000368", "TOUCH_MONITOR=1556893791.1003") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [s@macro-user-callerid:2] Set("PJSIP/210-00000368", "AMPUSER=0971442523") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [s@macro-user-callerid:3] GotoIf("PJSIP/210-00000368", "0?report") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [s@macro-user-callerid:4] ExecIf("PJSIP/210-00000368", "1?Set(REALCALLERIDNUM=0971442523)") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [s@macro-user-callerid:5] Set("PJSIP/210-00000368", "AMPUSER=") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [s@macro-user-callerid:6] GotoIf("PJSIP/210-00000368", "0?limit") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [s@macro-user-callerid:7] Set("PJSIP/210-00000368", "AMPUSERCIDNAME=") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [s@macro-user-callerid:8] ExecIf("PJSIP/210-00000368", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [s@macro-user-callerid:9] GotoIf("PJSIP/210-00000368", "1?report") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx_builtins.c: Goto (macro-user-callerid,s,16)
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [s@macro-user-callerid:16] NoOp("PJSIP/210-00000368", "Macro Depth is 1") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [s@macro-user-callerid:17] GotoIf("PJSIP/210-00000368", "1?report2:macroerror") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx_builtins.c: Goto (macro-user-callerid,s,18)
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [s@macro-user-callerid:18] GotoIf("PJSIP/210-00000368", "1?continue") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx_builtins.c: Goto (macro-user-callerid,s,37)
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [s@macro-user-callerid:37] Set("PJSIP/210-00000368", "CALLERID(number)=0971442523") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [s@macro-user-callerid:38] Set("PJSIP/210-00000368", "CALLERID(name)=Web Call") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [s@macro-user-callerid:39] GotoIf("PJSIP/210-00000368", "0?cnum") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [s@macro-user-callerid:40] Set("PJSIP/210-00000368", "CDR(cnam)=Web Call") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [s@macro-user-callerid:41] Set("PJSIP/210-00000368", "CDR(cnum)=0971442523") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [s@macro-user-callerid:42] Set("PJSIP/210-00000368", "CHANNEL(language)=pt-br") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [0971442523@from-internal:2] NoCDR("PJSIP/210-00000368", "") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [0971442523@from-internal:3] Progress("PJSIP/210-00000368", "") in new stack
[2019-05-03 11:29:54] VERBOSE[24681][C-00000162] pbx.c: Executing [0971442523@from-internal:4] Wait("PJSIP/210-00000368", "1") in new stack
[2019-05-03 11:29:55] VERBOSE[24681][C-00000162] pbx.c: Executing [0971442523@from-internal:5] Playback("PJSIP/210-00000368", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack
[2019-05-03 11:29:55] VERBOSE[24681][C-00000162] file.c: <PJSIP/210-00000368> Playing 'silence/1.slin16' (language 'pt-br')
[2019-05-03 11:29:56] VERBOSE[24681][C-00000162] file.c: <PJSIP/210-00000368> Playing 'cannot-complete-as-dialed.slin16' (language 'pt-br')

If anyone can help me, I’ll be very grateful.
Sorry for my english, I’m using google translator, lol.

You don’t have an outbound route with a matching pattern for the number you’re dialing.

Thanks for the answer.

Then the outgoing route has been created, the extension has access to the route. How much disk 0xxxxxxxxx directly on the phone the connection is completed. When disc by jolt it shows error.

Solved, looking at the record I noticed that on the completed connections the “AMPUSER” showed the extension number. And on the calls made by “JOLT” the “AMPUSER” showed the number dialed.
I changed the following line and it worked fine:

Of this

$callerid = @file_get_contents("https://api.opencnam.com/v2/phone/".$number) or $callerid = "Web Call";
$strCallerId = $callerid. "<$number>";  

For that

  $callerid = @file_get_contents("https://api.opencnam.com/v2/phone/".$number) or $callerid = "Web Call";
    $strCallerId = $callerid. "<$ext>";

Thanks

People, enjoying the topic.
I would like to use the PHP script from an external network, as I do to pin the connection port to the call.php file.
I have no idea how to do this.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.