No more hidden calls possible - Telekom CompanyFlex

Dear Commiunity,

with the move of the company I´m supporting, the provider changed the contract to a new type called “CompanyFlex”. I guess our german friends know what i´m talking about :slight_smile:

Because of this, I had to change my Trunk-Line settings. Everything works fine except hiding the Outbound CID. Everytime I delete the CID or put “hidden” into the field I´ll get a voice-message that all channels are in use.

I hope somebody can help me with my issue

Short Log

[2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:35] NoOp("PJSIP/14-00000008", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21") in new stack 

Long log

5 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:1] Macro("PJSIP/14-00000008", "user-callerid,LIMIT,EXTERNAL,") in new stack
6 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:1] Set("PJSIP/14-00000008", "TOUCH_MONITOR=1666011424.11") in new stack
7 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:2] Set("PJSIP/14-00000008", "CHANCONTEXT=") in new stack
8 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:3] Set("PJSIP/14-00000008", "CHANCONTEXT=") in new stack
9 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:4] Set("PJSIP/14-00000008", "CHANEXTENCONTEXT=14-00000008") in new stack
10 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:5] Set("PJSIP/14-00000008", "CHANEXTEN=14-00000008") in new stack
11 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:6] Set("PJSIP/14-00000008", "CALLERID(number)=14") in new stack
12 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:7] Set("PJSIP/14-00000008", "AMPUSER=14") in new stack
13 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:8] Set("PJSIP/14-00000008", "HOTDESCKCHAN=14-00000008") in new stack
14 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:9] Set("PJSIP/14-00000008", "HOTDESKEXTEN=14") in new stack
15 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:10] Set("PJSIP/14-00000008", "HOTDESKCALL=0") in new stack
16 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:11] ExecIf("PJSIP/14-00000008", "0?Set(HOTDESKCALL=1)") in new stack
17 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:12] ExecIf("PJSIP/14-00000008", "0?Set(CALLERID(name)=)") in new stack
18 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:13] GotoIf("PJSIP/14-00000008", "0?report") in new stack
19 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:14] ExecIf("PJSIP/14-00000008", "1?Set(REALCALLERIDNUM=14)") in new stack
20 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:15] Set("PJSIP/14-00000008", "AMPUSER=14") in new stack
21 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:16] GotoIf("PJSIP/14-00000008", "0?limit") in new stack
22 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:17] Set("PJSIP/14-00000008", "AMPUSERCIDNAME=Alena") in new stack
23 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:18] ExecIf("PJSIP/14-00000008", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
24 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:19] GotoIf("PJSIP/14-00000008", "0?report") in new stack
25 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:20] Set("PJSIP/14-00000008", "AMPUSERCID=14") in new stack
26 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:21] Set("PJSIP/14-00000008", "__DIAL_OPTIONS=HhTtr") in new stack
27 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:22] Set("PJSIP/14-00000008", "CALLERID(all)="Alena" <14>") in new stack
28 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:23] ExecIf("PJSIP/14-00000008", "0?Set(CUSDIAL=)") in new stack
29 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:24] ExecIf("PJSIP/14-00000008", "0?Set(CALLERID(all)="Alena" <14>)") in new stack
30 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:25] GotoIf("PJSIP/14-00000008", "0?limit") in new stack
31 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:26] ExecIf("PJSIP/14-00000008", "1?Set(GROUP(concurrency_limit)=14)") in new stack
32 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:27] ExecIf("PJSIP/14-00000008", "0?Set(CHANNEL(language)=)") in new stack
33 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:28] NoOp("PJSIP/14-00000008", "Macro Depth is 1") in new stack
34 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:29] GotoIf("PJSIP/14-00000008", "1?report2:macroerror") in new stack
35 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx_builtins.c: Goto (macro-user-callerid,s,30)
36 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:30] GotoIf("PJSIP/14-00000008", "1?continue") in new stack
37 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx_builtins.c: Goto (macro-user-callerid,s,49)
38 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:49] Set("PJSIP/14-00000008", "CALLERID(number)=14") in new stack
39 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:50] Set("PJSIP/14-00000008", "CALLERID(name)=Alena") in new stack
40 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:51] GotoIf("PJSIP/14-00000008", "0?cnum") in new stack
41 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:52] Set("PJSIP/14-00000008", "CDR(cnam)=Alena") in new stack
42 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:53] Set("PJSIP/14-00000008", "CDR(cnum)=14") in new stack
43 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:54] Set("PJSIP/14-00000008", "CHANNEL(language)=de") in new stack
44 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:2] Gosub("PJSIP/14-00000008", "sub-record-check,s,1(out,015111528XXX,no)") in new stack
45 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:1] GotoIf("PJSIP/14-00000008", "0?initialized") in new stack
46 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:2] Set("PJSIP/14-00000008", "__REC_STATUS=INITIALIZED") in new stack
47 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:3] Set("PJSIP/14-00000008", "NOW=1666011424") in new stack
48 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:4] Set("PJSIP/14-00000008", "__DAY=17") in new stack
49 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:5] Set("PJSIP/14-00000008", "__MONTH=10") in new stack
50 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:6] Set("PJSIP/14-00000008", "__YEAR=2022") in new stack
51 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:7] Set("PJSIP/14-00000008", "__TIMESTR=20221017-145704") in new stack
52 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:8] Set("PJSIP/14-00000008", "__FROMEXTEN=14") in new stack
53 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:9] Set("PJSIP/14-00000008", "__MON_FMT=wav") in new stack
54 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:10] NoOp("PJSIP/14-00000008", "Recordings initialized") in new stack
55 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:11] ExecIf("PJSIP/14-00000008", "0?Set(ARG3=dontcare)") in new stack
56 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:12] Set("PJSIP/14-00000008", "REC_POLICY_MODE_SAVE=") in new stack
57 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:13] ExecIf("PJSIP/14-00000008", "0?Set(REC_STATUS=NO)") in new stack
58 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:14] GotoIf("PJSIP/14-00000008", "3?checkaction") in new stack
59 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx_builtins.c: Goto (sub-record-check,s,17)
60 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:17] GotoIf("PJSIP/14-00000008", "1?sub-record-check,out,1") in new stack
61 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx_builtins.c: Goto (sub-record-check,out,1)
62 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:1] NoOp("PJSIP/14-00000008", "Outbound Recording Check from 14 to 015111528XXX") in new stack
63 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:2] Set("PJSIP/14-00000008", "RECMODE=dontcare") in new stack
64 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:3] ExecIf("PJSIP/14-00000008", "1?Goto(routewins)") in new stack
65 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx_builtins.c: Goto (sub-record-check,out,7)
66 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:7] Gosub("PJSIP/14-00000008", "recordcheck,1(no,out,015111528XXX)") in new stack
67 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:1] NoOp("PJSIP/14-00000008", "Starting recording check against no") in new stack
68 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:2] Goto("PJSIP/14-00000008", "no") in new stack
69 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx_builtins.c: Goto (sub-record-check,recordcheck,12)
70 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:12] Set("PJSIP/14-00000008", "__REC_POLICY_MODE=NO") in new stack
71 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:13] Return("PJSIP/14-00000008", "") in new stack
72 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:8] Return("PJSIP/14-00000008", "") in new stack
73 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:3] ExecIf("PJSIP/14-00000008", "0 ?Set(CDR(accountcode)=)") in new stack
74 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:4] Set("PJSIP/14-00000008", "_ROUTEID=1") in new stack
75 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:5] Set("PJSIP/14-00000008", "_ROUTENAME=Telekom") in new stack
76 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:6] Set("PJSIP/14-00000008", "MOHCLASS=default") in new stack
77 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:7] Set("PJSIP/14-00000008", "_CALLERIDNAMEINTERNAL=Alena") in new stack
78 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:8] Set("PJSIP/14-00000008", "_CALLERIDNUMINTERNAL=14") in new stack
79 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:9] Set("PJSIP/14-00000008", "_EMAILNOTIFICATION=FALSE") in new stack
80 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:10] Set("PJSIP/14-00000008", "_NODEST=") in new stack
81 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:11] Macro("PJSIP/14-00000008", "dialout-trunk,2,015111528XXX,,off") in new stack
82 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:1] Set("PJSIP/14-00000008", "DIAL_TRUNK=2") in new stack
83 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:2] ExecIf("PJSIP/14-00000008", "0?Set(DIAL_OPTIONS=Hhtr)") in new stack
84 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:3] GosubIf("PJSIP/14-00000008", "0?sub-pincheck,s,1()") in new stack
85 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:4] ExecIf("PJSIP/14-00000008", "0?Set(CALLERID(num)=14)") in new stack
86 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:5] GotoIf("PJSIP/14-00000008", "0?disabletrunk,1") in new stack
87 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:6] Set("PJSIP/14-00000008", "DIAL_NUMBER=015111528XXX") in new stack
88 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:7] Set("PJSIP/14-00000008", "DIAL_TRUNK_OPTIONS=HhTtr") in new stack
89 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:8] Set("PJSIP/14-00000008", "OUTBOUND_GROUP=OUT_2") in new stack
90 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:9] Set("PJSIP/14-00000008", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
91 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:10] GotoIf("PJSIP/14-00000008", "0?nomax") in new stack
92 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:11] GotoIf("PJSIP/14-00000008", "0?chanfull") in new stack
93 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:12] GotoIf("PJSIP/14-00000008", "0?skipoutcid") in new stack
94 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:13] Macro("PJSIP/14-00000008", "outbound-callerid,2") in new stack
95 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:1] NoOp("PJSIP/14-00000008", "14") in new stack
96 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:2] NoOp("PJSIP/14-00000008", "") in new stack
97 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:3] NoOp("PJSIP/14-00000008", "all") in new stack
98 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:4] ExecIf("PJSIP/14-00000008", "0?Set(CALLERPRES(name-pres)=)") in new stack
99 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:5] ExecIf("PJSIP/14-00000008", "0?Set(CALLERPRES(num-pres)=)") in new stack
100 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:6] Set("PJSIP/14-00000008", "HOTDESCKCHAN=14-00000008") in new stack
101 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:7] Set("PJSIP/14-00000008", "HOTDESKEXTEN=14") in new stack
102 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:8] Set("PJSIP/14-00000008", "HOTDESKCALL=0") in new stack
103 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:9] ExecIf("PJSIP/14-00000008", "0?Set(HOTDESKCALL=1)") in new stack
104 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:10] ExecIf("PJSIP/14-00000008", "0?Set(CALLERID(name)=)") in new stack
105 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:11] Set("PJSIP/14-00000008", "ALLOWTHISROUTE=NO") in new stack
106 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:12] ExecIf("PJSIP/14-00000008", "0?Set(ALLOWTHISROUTE=YES)") in new stack
107 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:13] ExecIf("PJSIP/14-00000008", "0?Hangup()") in new stack
108 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:14] ExecIf("PJSIP/14-00000008", "0?Set(REALCALLERIDNUM=14)") in new stack
109 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:15] ExecIf("PJSIP/14-00000008", "0?Set(AMPUSER=14)") in new stack
110 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:16] GotoIf("PJSIP/14-00000008", "1?normcid") in new stack
111 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx_builtins.c: Goto (macro-outbound-callerid,s,20)
112 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:20] Set("PJSIP/14-00000008", "USEROUTCID="hidden"") in new stack
113 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:21] Set("PJSIP/14-00000008", "EMERGENCYCID=") in new stack
114 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:22] ExecIf("PJSIP/14-00000008", "0?Set(EMERGENCYCID=)") in new stack
115 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:23] Set("PJSIP/14-00000008", "TRUNKOUTCID=") in new stack
116 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:24] GotoIf("PJSIP/14-00000008", "1?trunkcid") in new stack
117 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx_builtins.c: Goto (macro-outbound-callerid,s,30)
118 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:30] ExecIf("PJSIP/14-00000008", "0?Set(CALLERID(all)=)") in new stack
119 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:31] ExecIf("PJSIP/14-00000008", "1?Set(CALLERID(all)="hidden")") in new stack
120 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:32] ExecIf("PJSIP/14-00000008", "0?Set(CALLERID(all)=)") in new stack
121 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:33] ExecIf("PJSIP/14-00000008", "0?Set(CALLERID(all)=14)") in new stack
122 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:34] ExecIf("PJSIP/14-00000008", "0?Set(CALLERID(all)=14)") in new stack
123 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:35] Set("PJSIP/14-00000008", "TIOHIDE=no") in new stack
124 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:36] ExecIf("PJSIP/14-00000008", "1?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
125 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:37] ExecIf("PJSIP/14-00000008", "1?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
126 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:38] ExecIf("PJSIP/14-00000008", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
127 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:39] ExecIf("PJSIP/14-00000008", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
128 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:40] Set("PJSIP/14-00000008", "CDR(outbound_cnum)=") in new stack
129 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:41] Set("PJSIP/14-00000008", "CDR(outbound_cnam)=hidden") in new stack
130 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:14] GosubIf("PJSIP/14-00000008", "1?sub-flp-2,s,1()") in new stack
131 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:1] ExecIf("PJSIP/14-00000008", "0?Set(TARGET_FLP_2=+5111528131)") in new stack
132 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:2] GotoIf("PJSIP/14-00000008", "0?match") in new stack
133 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:3] ExecIf("PJSIP/14-00000008", "0?Return()") in new stack
134 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:4] ExecIf("PJSIP/14-00000008", "1?Set(TARGET_FLP_2=+4915111528131)") in new stack
135 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:5] GotoIf("PJSIP/14-00000008", "1?match") in new stack
136 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx_builtins.c: Goto (sub-flp-2,s,10)
137 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:10] Set("PJSIP/14-00000008", "DIAL_NUMBER=+4915111528131") in new stack
138 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:11] Return("PJSIP/14-00000008", "") in new stack
139 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:15] Set("PJSIP/14-00000008", "OUTNUM=+4915111528131") in new stack
140 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:16] Set("PJSIP/14-00000008", "custom=PJSIP") in new stack
141 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:17] ExecIf("PJSIP/14-00000008", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Ttr)") in new stack
142 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:18] ExecIf("PJSIP/14-00000008", "0?Set(DIAL_TRUNK_OPTIONS=TtrM(confirm))") in new stack
143 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:19] GotoIf("PJSIP/14-00000008", "1?gocall") in new stack
144 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx_builtins.c: Goto (macro-dialout-trunk,s,21)
145 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:21] Macro("PJSIP/14-00000008", "dialout-trunk-predial-hook,") in new stack
146 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:1] MacroExit("PJSIP/14-00000008", "") in new stack
147 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:22] GotoIf("PJSIP/14-00000008", "0?skipcrm") in new stack
148 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:23] Set("PJSIP/14-00000008", "__CRM_DIRECTION=OUTBOUND") in new stack
149 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:24] Set("PJSIP/14-00000008", "__CRM_DESTINATION=+4915111528131") in new stack
150 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:25] Set("PJSIP/14-00000008", "__CRM_SOURCE=14") in new stack
151 [2022-10-17 14:57:04] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:26] AGI("PJSIP/14-00000008", "agi://127.0.0.1/sangomacrm.agi") in new stack
152 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] res_agi.c: <PJSIP/14-00000008>AGI Script agi://127.0.0.1/sangomacrm.agi completed, returning 0
153 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:27] Set("PJSIP/14-00000008", "CHANNEL(hangup_handler_push)=crm-hangup,s,1") in new stack
154 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:28] NoOp("PJSIP/14-00000008", "CRM Finished") in new stack
155 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:29] GotoIf("PJSIP/14-00000008", "0?bypass,1") in new stack
156 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:30] ExecIf("PJSIP/14-00000008", "1?Set(CONNECTEDLINE(num,i)=+4915111528131)") in new stack
157 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:31] GotoIf("PJSIP/14-00000008", "0?customtrunk") in new stack
158 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:32] ExecIf("PJSIP/14-00000008", "0?Set(DIAL_TRUNK_OPTIONS=tr)") in new stack
159 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:33] Set("PJSIP/14-00000008", "HASH(__SIPHEADERS,Alert-Info)=unset") in new stack
160 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:34] Dial("PJSIP/14-00000008", "PJSIP/[email protected]_Companyflex,300,Ttrb(func-apply-sipheaders^s^1,(2))U(sub-send-obroute-email^+4915111528131^015111528XXX^2^1666011424^hidden^)") in new stack
161 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] app_stack.c: PJSIP/Telekom_Companyflex-00000009 Internal Gosub(func-apply-sipheaders,s,1(2)) start
162 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:1] GotoIf("PJSIP/Telekom_Companyflex-00000009", "0?jump1:jump2") in new stack
163 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx_builtins.c: Goto (func-apply-sipheaders,s,3)
164 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:3] NoOp("PJSIP/Telekom_Companyflex-00000009", "P-Asserted-Identity: ") in new stack
165 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:4] NoOp("PJSIP/Telekom_Companyflex-00000009", "NS: ") in new stack
166 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:5] While("PJSIP/Telekom_Companyflex-00000009", "0") in new stack
167 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] app_while.c: Jumping to priority 13
168 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:14] Return("PJSIP/Telekom_Companyflex-00000009", "") in new stack
169 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] app_stack.c: Spawn extension (from-pstn, 015111528XXX, 1) exited non-zero on 'PJSIP/Telekom_Companyflex-00000009'
170 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] app_stack.c: PJSIP/Telekom_Companyflex-00000009 Internal Gosub(func-apply-sipheaders,s,1(2)) complete GOSUB_RETVAL=
171 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] app_dial.c: Called PJSIP/[email protected]_Companyflex
172 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] app_dial.c: Everyone is busy/congested at this time (1:0/0/1)
173 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:35] NoOp("PJSIP/14-00000008", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21") in new stack
174 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:36] GotoIf("PJSIP/14-00000008", "0?continue,1:s-CHANUNAVAIL,1") in new stack
175 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx_builtins.c: Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
176 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:1] Set("PJSIP/14-00000008", "RC=21") in new stack
177 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:2] Goto("PJSIP/14-00000008", "21,1") in new stack
178 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx_builtins.c: Goto (macro-dialout-trunk,21,1)
179 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:1] Goto("PJSIP/14-00000008", "continue,1") in new stack
180 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx_builtins.c: Goto (macro-dialout-trunk,continue,1)
181 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:1] NoOp("PJSIP/14-00000008", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks") in new stack
182 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:2] ExecIf("PJSIP/14-00000008", "1?Set(CALLERID(number)=14)") in new stack
183 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:12] Macro("PJSIP/14-00000008", "outisbusy,") in new stack
184 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:1] Progress("PJSIP/14-00000008", "") in new stack
185 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:2] GotoIf("PJSIP/14-00000008", "0?emergency,1") in new stack
186 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:3] GotoIf("PJSIP/14-00000008", "0?intracompany,1") in new stack
187 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:4] Playback("PJSIP/14-00000008", "all-circuits-busy-now&please-try-call-later, noanswer") in new stack
188 [2022-10-17 14:57:05] VERBOSE[4413][C-00000005] file.c: <PJSIP/14-00000008> Playing 'all-circuits-busy-now.alaw' (language 'de')
189 [2022-10-17 14:57:07] VERBOSE[4413][C-00000005] file.c: <PJSIP/14-00000008> Playing 'please-try-call-later.g722' (language 'de')
190 [2022-10-17 14:57:07] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:1] Macro("PJSIP/14-00000008", "hangupcall") in new stack
191 [2022-10-17 14:57:07] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:1] GotoIf("PJSIP/14-00000008", "1?theend") in new stack
192 [2022-10-17 14:57:07] VERBOSE[4413][C-00000005] pbx_builtins.c: Goto (macro-hangupcall,s,3)
193 [2022-10-17 14:57:07] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:3] ExecIf("PJSIP/14-00000008", "0?Set(CDR(recordingfile)=)") in new stack
194 [2022-10-17 14:57:07] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:4] Hangup("PJSIP/14-00000008", "") in new stack
195 [2022-10-17 14:57:07] VERBOSE[4413][C-00000005] app_macro.c: Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'PJSIP/14-00000008' in macro 'hangupcall'
196 [2022-10-17 14:57:07] VERBOSE[4413][C-00000005] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/14-00000008'
197 [2022-10-17 14:57:07] VERBOSE[4413][C-00000005] app_stack.c: PJSIP/14-00000008 Internal Gosub(crm-hangup,s,1) start
198 [2022-10-17 14:57:07] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:1] NoOp("PJSIP/14-00000008", "Sending Hangup to CRM") in new stack
199 [2022-10-17 14:57:07] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:2] NoOp("PJSIP/14-00000008", "HANGUP CAUSE: 21") in new stack
200 [2022-10-17 14:57:07] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:3] ExecIf("PJSIP/14-00000008", "0?Set(__CRM_VOICEMAIL=)") in new stack
201 [2022-10-17 14:57:07] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:4] NoOp("PJSIP/14-00000008", "MASTER CHANNEL: 1666011424.11 = 1666011424.11") in new stack
202 [2022-10-17 14:57:07] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:5] GotoIf("PJSIP/14-00000008", "0?return") in new stack
203 [2022-10-17 14:57:07] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:6] Set("PJSIP/14-00000008", "__CRM_HANGUP=1") in new stack
204 [2022-10-17 14:57:07] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:7] AGI("PJSIP/14-00000008", "agi://127.0.0.1/sangomacrm.agi") in new stack
205 [2022-10-17 14:57:08] VERBOSE[4413][C-00000005] res_agi.c: <PJSIP/14-00000008>AGI Script agi://127.0.0.1/sangomacrm.agi completed, returning 0
206 [2022-10-17 14:57:08] VERBOSE[4413][C-00000005] pbx.c: Executing [[email protected]:8] Return("PJSIP/14-00000008", "") in new stack
207 [2022-10-17 14:57:08] VERBOSE[4413][C-00000005] app_stack.c: Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/14-00000008'
208 [2022-10-17 14:57:08] VERBOSE[4413][C-00000005] app_stack.c: PJSIP/14-00000008 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL= 

Hangup cause 21, call rejected. Your provider is saying don’t send them that caller id

The log looks like you are not reaching your outbound and trunk. So ext 14 seems not to be able to use the trunk and/or outbound route. From the log it doesn’t look like a “hidden” problem.
Try to create an extra outbound route for ext 14 only, for testing.

No. You are reading it wrong. That call hit an outbound route and dialed the trunk.

1 Like

I tried it with a separate outbound route. Unfortunately with the same effect.

I guess the Truck rejects the hidden CID. Is there a possibility to put the Trunk CID + hidden parameter to the Trunk like: hey I’m +49401234578 but I want to be hidden? :smiley:

Sure. That’s exactly what you should do.
Assuming that you have a separate Outbound Route (using a prefix to access it), temporarily set it up with Route CID
"Mats" <+49401234578>
and Override Extension set to Yes.
The Trunk CID Options should be Allow Any CID.

Make a test call and confirms that it goes through, of course not hidden, using the valid CID for the separate route.

Now, replace Mats with hidden, leaving everything else the same. Route CID should now be
"hidden" <+49401234578>

Make another test call. With luck, it will work. If not, at the Asterisk command prompt type
pjsip set logger on
make a test call, paste the Asterisk log for the call at pastebin.freepbx.org and post the link here.

As far as I understand for German Telekom, they need to check the outgoing numbers whether or not they are part of your number-block. I would ask Telekom whether “hidden” is allow within the companyflex agreement. Anyway this type of contract does not exist very long and may have still some start issues. I belive “hidden” must be possible, but wrong CIDs won’t work.

GUYS, I found out!

I tried a lot of serveral combinations, but only anonymous works.

“anonymous” <+49494321234>

works fine!

Thank you for all your help! One less problem on my ToDo :smiley:

This isn’t really an anonymous call. Only the name is set to anonymous, you’re still sending a real caller id number. Not an anonymous one.

At the end the callee (I hope this is the correct translation for the person that receives the call) has a “unknown” in his display. That was what I want.

You have to discuss this with your provider.

  1. Most if not all will require you to pass a caller id you own.
  2. They may allow you to block caller id by way of * code like *67
  3. No matter what you set the CNAM that may or may not pass thru and may not be used at the far end. The terminating carrier may do a CNAM lookup or use another message. It is not uncommon for only the CNUM to be passed.
  4. It is 2022 the only thing a blocked number earns in most cases is a voicemail. People, especially organizations blocking their caller id means they are up to no good.

Thanks for that last comment. It’s quite true. In practice I let all anonymous incomming calls run to a special extension and to the voicemail of this extension. In case it’s a real customer, he is expected to leave a message. But usually it’s an unwanted advertisment call, unwanted spam fax or something worse. matsmats may think it over to transfer the main phone number (usually the -0) instead, once the real extension number is not wanted to be transfered by his users.

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