Outgoing connections are not working


(Templeusz) #1

I have the main VOIP server running on freepbx, I created the 1008 user on it, which I entered on the Slican telephone exchange. Incoming connections work, while outgoing connections don’t work below logs.

my number is: 221111111
I’m trying to call the number: 123456789

> 42580	[2021-01-04 11:16:48] VERBOSE[2421] res_pjsip/pjsip_configuration.c: Endpoint 1008 is now Reachable	
> 42581	[2021-01-04 11:16:48] VERBOSE[2421] res_pjsip/pjsip_options.c: Contact 1008/sip:1008@10.1.1.131:5060;x-ast-orig-host=10.1.1.131:0 is now Reachable. RTT: 21.804 msec	
> 42582	[2021-01-04 11:19:16] VERBOSE[2421] pbx_variables.c: Setting global variable 'SIPDOMAIN' to '10.1.1.100'	
> 42583	[2021-01-04 11:19:16] VERBOSE[2421] netsock2.c: Using SIP RTP Audio TOS bits 184	
> 42584	[2021-01-04 11:19:16] VERBOSE[2421] netsock2.c: Using SIP RTP Audio TOS bits 184 in TCLASS field.	
> 42585	[2021-01-04 11:19:16] VERBOSE[2421] netsock2.c: Using SIP RTP Audio CoS mark 5	
> 42586	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [123456789@from-internal:1] Macro("PJSIP/1008-00000000", "user-callerid,LIMIT,EXTERNAL,") in new stack	
> 42587	[2021-01-04 11:19:16] WARNING[6420][C-00000001] app_macro.c: Macro() is deprecated and will be removed from a future version of Asterisk.	
> 42588	[2021-01-04 11:19:16] WARNING[6420][C-00000001] app_macro.c: Dialplan should be updated to use Gosub instead.	
> 42589	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:1] Set("PJSIP/1008-00000000", "TOUCH_MONITOR=1609759156.0") in new stack	
> 42590	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:2] Set("PJSIP/1008-00000000", "AMPUSER=221111111") in new stack	
> 42591	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:3] Set("PJSIP/1008-00000000", "HOTDESCKCHAN=1008-00000000") in new stack	
> 42592	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:4] Set("PJSIP/1008-00000000", "HOTDESKEXTEN=1008") in new stack	
> 42593	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:5] Set("PJSIP/1008-00000000", "HOTDESKCALL=0") in new stack	
> 42594	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:6] ExecIf("PJSIP/1008-00000000", "0?Set(HOTDESKCALL=1)") in new stack	
> 42595	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:7] ExecIf("PJSIP/1008-00000000", "0?Set(CALLERID(name)=)") in new stack	
> 42596	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:8] GotoIf("PJSIP/1008-00000000", "0?report") in new stack	
> 42597	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:9] ExecIf("PJSIP/1008-00000000", "1?Set(REALCALLERIDNUM=221111111)") in new stack	
> 42598	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:10] Set("PJSIP/1008-00000000", "AMPUSER=") in new stack	
> 42599	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:11] GotoIf("PJSIP/1008-00000000", "0?limit") in new stack	
> 42600	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:12] Set("PJSIP/1008-00000000", "AMPUSERCIDNAME=") in new stack	
> 42601	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:13] ExecIf("PJSIP/1008-00000000", "0?Set(__CIDMASQUERADING=TRUE)") in new stack	
> 42602	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:14] GotoIf("PJSIP/1008-00000000", "1?report") in new stack	
> 42603	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx_builtins.c: Goto (macro-user-callerid,s,23)	
> 42604	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:23] NoOp("PJSIP/1008-00000000", "Macro Depth is 1") in new stack	
> 42605	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:24] GotoIf("PJSIP/1008-00000000", "1?report2:macroerror") in new stack	
> 42606	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx_builtins.c: Goto (macro-user-callerid,s,25)	
> 42607	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:25] GotoIf("PJSIP/1008-00000000", "1?continue") in new stack	
> 42608	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx_builtins.c: Goto (macro-user-callerid,s,44)	
> 42609	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:44] Set("PJSIP/1008-00000000", "CALLERID(number)=221111111") in new stack	
> 42610	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:45] Set("PJSIP/1008-00000000", "CALLERID(name)=Telefon 1 SLICAN") in new stack	
> 42611	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:46] GotoIf("PJSIP/1008-00000000", "0?cnum") in new stack	
> 42612	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:47] Set("PJSIP/1008-00000000", "CDR(cnam)=Telefon 1  SLICAN") in new stack	
> 42613	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:48] Set("PJSIP/1008-00000000", "CDR(cnum)=221111111") in new stack	
> 42614	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-user-callerid:49] Set("PJSIP/1008-00000000", "CHANNEL(language)=pl") in new stack	
> 42615	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [123456789@from-internal:2] NoCDR("PJSIP/1008-00000000", "") in new stack	
> 42616	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [123456789@from-internal:3] Progress("PJSIP/1008-00000000", "") in new stack	
> 42617	[2021-01-04 11:19:16] VERBOSE[6420][C-00000001] pbx.c: Executing [123456789@from-internal:4] Wait("PJSIP/1008-00000000", "1") in new stack	
> 42618	[2021-01-04 11:19:17] VERBOSE[6420][C-00000001] pbx.c: Executing [123456789@from-internal:5] Playback("PJSIP/1008-00000000", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack	
> 42619	[2021-01-04 11:19:17] VERBOSE[6420][C-00000001] file.c: <PJSIP/1008-00000000> Playing 'silence/1.ulaw' (language 'pl')	
> 42620	[2021-01-04 11:19:18] VERBOSE[6420][C-00000001] file.c: <PJSIP/1008-00000000> Playing 'cannot-complete-as-dialed.ulaw' (language 'pl')	
> 42621	[2021-01-04 11:19:21] VERBOSE[6420][C-00000001] file.c: <PJSIP/1008-00000000> Playing 'check-number-dial-again.ulaw' (language 'pl')	
> 42622	[2021-01-04 11:19:21] VERBOSE[6420][C-00000001] pbx.c: Executing [h@from-internal:1] Macro("PJSIP/1008-00000000", "hangupcall") in new stack	
> 42623	[2021-01-04 11:19:21] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-hangupcall:1] GotoIf("PJSIP/1008-00000000", "1?theend") in new stack	
> 42624	[2021-01-04 11:19:21] VERBOSE[6420][C-00000001] pbx_builtins.c: Goto (macro-hangupcall,s,3)	
> 42625	[2021-01-04 11:19:21] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-hangupcall:3] ExecIf("PJSIP/1008-00000000", "0?Set(CDR(recordingfile)=)") in new stack	
> 42626	[2021-01-04 11:19:21] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-hangupcall:4] NoOp("PJSIP/1008-00000000", " montior file= ") in new stack	
> 42627	[2021-01-04 11:19:21] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-hangupcall:5] GotoIf("PJSIP/1008-00000000", "1?skipagi") in new stack	
> 42628	[2021-01-04 11:19:21] VERBOSE[6420][C-00000001] pbx_builtins.c: Goto (macro-hangupcall,s,7)	
> 42629	[2021-01-04 11:19:21] VERBOSE[6420][C-00000001] pbx.c: Executing [s@macro-hangupcall:7] Hangup("PJSIP/1008-00000000", "") in new stack	
> 42630	[2021-01-04 11:19:21] VERBOSE[6420][C-00000001] app_macro.c: Spawn extension (macro-hangupcall, s, 7) exited non-zero on 'PJSIP/1008-00000000' in macro 'hangupcall'	
> 42631	[2021-01-04 11:19:21] VERBOSE[6420][C-00000001] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/1008-00000000'

(Lorne Gaetz) #2

You don’t have an outbound route with a dial pattern that matches the number you’re dialing.


(Templeusz) #3

thanks, when I added a dialing pattern without a defined callerid in the outbound routes tab, I discovered that in the case of a telephone slican telephone exchange callerid it is 221111111, not 1008.
I entered 221111111 as callerid in the outbound routes tab and everything works fine.
In short, the slican telephone exchange replaces the callerid in the FreePBX VoIP exchange from 1008 (czyli konta użytkownika) to 221111111, i.e. to my telephone number.