-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Class of Service (Commercial), Extension Routing (Commercial)
-
Labels:None
-
ToDo:
-
Asterisk Version:10.13.66-9
-
Distro Version:Redhat SHMZ release 6.6 (Final)
-
Distro:FreePBX Distro
My routes are in Routes.png
My COS are in COSLIST.png
Of interest is the JJ COS - (COS-JJ-routes.png) Check, it has only two routes.
Here are the members of the route. (COS-JJ-members.png)
Route 21 is accessed using 0 - as prefix (used for India) and 001 prefix (used to dial USA numbers) [Check 21 dial pattern as Route21 dial pattern.png]
So by default Any member of JJ COS should be able to access only these two routes.
- Route 21 and Route 34
However, what is happening is
ANYONE ON ANY COS is able to access
- Route 32.1
- Route 31.1
- Route 2.1
I have attached the Route2.1 dialpattern.png for this access
and Route 32.1dialpattern.png
As you can see, these routes are addressed by pre-fix "+" - this is the IE.164 (ITU international dialing codes), the minute I introduce + to access my routes, it stops respecting the COS routes - these routes become accessible to ALL USERS of the system
It is important - to note that, ALL OTHER prefix codes work perfectly and respect the COS on this.
Below here is the dial out log that SHOULD NOT HAVE happened, but is happening.
=========================================================================================
[2016-04-10 16:54:41] VERBOSE[3500][C-000001fb] netsock2.c: Using SIP VIDEO TOS bits 136
[2016-04-10 16:54:41] VERBOSE[3500][C-000001fb] netsock2.c: Using SIP VIDEO CoS mark 6
[2016-04-10 16:54:41] VERBOSE[3500][C-000001fb] netsock2.c: Using SIP RTP TOS bits 184
[2016-04-10 16:54:41] VERBOSE[3500][C-000001fb] netsock2.c: Using SIP RTP CoS mark 5
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [+19176838799@from-internal:1] Macro("SIP/736-0000034b", "user-callerid,LIMIT,EXTERNAL,") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:1] Set("SIP/736-0000034b", "TOUCH_MONITOR=1460321681.7660") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:2] Set("SIP/736-0000034b", "AMPUSER=736") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:3] GotoIf("SIP/736-0000034b", "0?report") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:4] ExecIf("SIP/736-0000034b", "1?Set(REALCALLERIDNUM=736)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:5] Set("SIP/736-0000034b", "AMPUSER=736") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:6] GotoIf("SIP/736-0000034b", "0?limit") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:7] Set("SIP/736-0000034b", "AMPUSERCIDNAME=JJMacBook") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:8] GotoIf("SIP/736-0000034b", "0?report") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:9] Set("SIP/736-0000034b", "AMPUSERCID=736") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:10] Set("SIP/736-0000034b", "__DIAL_OPTIONS=Ttr") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:11] Set("SIP/736-0000034b", "CALLERID(all)="JJMacBook" <736>") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:12] GotoIf("SIP/736-0000034b", "0?limit") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:13] ExecIf("SIP/736-0000034b", "1?Set(GROUP(concurrency_limit)=736)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:14] ExecIf("SIP/736-0000034b", "0?Set(CHANNEL(language)=)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:15] GotoIf("SIP/736-0000034b", "1?continue") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Goto (macro-user-callerid,s,29)
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:29] Set("SIP/736-0000034b", "CALLERID(number)=736") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:30] Set("SIP/736-0000034b", "CALLERID(name)=JJMacBook") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:31] Set("SIP/736-0000034b", "CDR(cnum)=736") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:32] Set("SIP/736-0000034b", "CDR(cnam)=JJMacBook") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:33] Set("SIP/736-0000034b", "CHANNEL(language)=en") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-user-callerid:34] GosubIf("SIP/736-0000034b", "0?app-check-classofservce,s,1()") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [+19176838799@from-internal:2] Gosub("SIP/736-0000034b", "sub-record-check,s,1(out,+19176838799,dontcare)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@sub-record-check:1] GotoIf("SIP/736-0000034b", "0?initialized") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@sub-record-check:2] Set("SIP/736-0000034b", "__REC_STATUS=INITIALIZED") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@sub-record-check:3] Set("SIP/736-0000034b", "NOW=1460321681") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@sub-record-check:4] Set("SIP/736-0000034b", "__DAY=10") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@sub-record-check:5] Set("SIP/736-0000034b", "__MONTH=04") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@sub-record-check:6] Set("SIP/736-0000034b", "__YEAR=2016") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@sub-record-check:7] Set("SIP/736-0000034b", "__TIMESTR=20160410-165441") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@sub-record-check:8] Set("SIP/736-0000034b", "__FROMEXTEN=736") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@sub-record-check:9] Set("SIP/736-0000034b", "__MON_FMT=wav") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@sub-record-check:10] NoOp("SIP/736-0000034b", "Recordings initialized") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@sub-record-check:11] ExecIf("SIP/736-0000034b", "0?Set(ARG3=dontcare)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@sub-record-check:12] Set("SIP/736-0000034b", "REC_POLICY_MODE_SAVE=") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@sub-record-check:13] ExecIf("SIP/736-0000034b", "0?Set(REC_STATUS=NO)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@sub-record-check:14] GotoIf("SIP/736-0000034b", "3?checkaction") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Goto (sub-record-check,s,17)
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@sub-record-check:17] GotoIf("SIP/736-0000034b", "1?sub-record-check,out,1") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Goto (sub-record-check,out,1)
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [out@sub-record-check:1] NoOp("SIP/736-0000034b", "Outbound Recording Check from 736 to +19176838799") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [out@sub-record-check:2] Set("SIP/736-0000034b", "RECMODE=dontcare") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [out@sub-record-check:3] ExecIf("SIP/736-0000034b", "1?Goto(routewins)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Goto (sub-record-check,out,7)
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [out@sub-record-check:7] Gosub("SIP/736-0000034b", "recordcheck,1(dontcare,out,+19176838799)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [recordcheck@sub-record-check:1] NoOp("SIP/736-0000034b", "Starting recording check against dontcare") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [recordcheck@sub-record-check:2] Goto("SIP/736-0000034b", "dontcare") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Goto (sub-record-check,recordcheck,3)
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [recordcheck@sub-record-check:3] Return("SIP/736-0000034b", "") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [out@sub-record-check:8] Return("SIP/736-0000034b", "") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [+19176838799@from-internal:3] ExecIf("SIP/736-0000034b", "0 ?Set(CDR(accountcode)=)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [+19176838799@from-internal:4] Set("SIP/736-0000034b", "MOHCLASS=default") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [+19176838799@from-internal:5] Set("SIP/736-0000034b", "_NODEST=") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [+19176838799@from-internal:6] Macro("SIP/736-0000034b", "dialout-trunk,5,9176838799,,off") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:1] Set("SIP/736-0000034b", "DIAL_TRUNK=5") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:2] GosubIf("SIP/736-0000034b", "0?sub-pincheck,s,1()") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:3] GotoIf("SIP/736-0000034b", "0?disabletrunk,1") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:4] Set("SIP/736-0000034b", "DIAL_NUMBER=9176838799") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:5] Set("SIP/736-0000034b", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:6] Set("SIP/736-0000034b", "OUTBOUND_GROUP=OUT_5") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:7] GotoIf("SIP/736-0000034b", "1?nomax") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Goto (macro-dialout-trunk,s,9)
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:9] GotoIf("SIP/736-0000034b", "0?skipoutcid") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:10] Set("SIP/736-0000034b", "DIAL_TRUNK_OPTIONS=Tt") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:11] Macro("SIP/736-0000034b", "outbound-callerid,5") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-outbound-callerid:1] ExecIf("SIP/736-0000034b", "0?Set(CALLERPRES(name-pres)=)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-outbound-callerid:2] ExecIf("SIP/736-0000034b", "0?Set(CALLERPRES(num-pres)=)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-outbound-callerid:3] ExecIf("SIP/736-0000034b", "0?Set(REALCALLERIDNUM=736)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-outbound-callerid:4] GotoIf("SIP/736-0000034b", "1?normcid") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Goto (macro-outbound-callerid,s,7)
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-outbound-callerid:7] Set("SIP/736-0000034b", "USEROUTCID=") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-outbound-callerid:8] Set("SIP/736-0000034b", "EMERGENCYCID=") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-outbound-callerid:9] Set("SIP/736-0000034b", "TRUNKOUTCID=6319230200") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-outbound-callerid:10] GotoIf("SIP/736-0000034b", "1?trunkcid") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Goto (macro-outbound-callerid,s,15)
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-outbound-callerid:15] ExecIf("SIP/736-0000034b", "1?Set(CALLERID(all)=6319230200)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-outbound-callerid:16] ExecIf("SIP/736-0000034b", "0?Set(CALLERID(all)=)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-outbound-callerid:17] ExecIf("SIP/736-0000034b", "1?Set(CALLERID(all)=6319230200)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-outbound-callerid:18] ExecIf("SIP/736-0000034b", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-outbound-callerid:19] ExecIf("SIP/736-0000034b", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-outbound-callerid:20] Set("SIP/736-0000034b", "CDR(outbound_cnum)=6319230200") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-outbound-callerid:21] Set("SIP/736-0000034b", "CDR(outbound_cnam)=") in new stack
[2016-04-10 16:54:41] WARNING[3053] func_cdr.c: CDR requires a value (CDR(variable)=value)
)[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:12] GosubIf("SIP/736-0000034b", "0?sub-flp-5,s,1()") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:13] Set("SIP/736-0000034b", "OUTNUM=9176838799") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:14] Set("SIP/736-0000034b", "custom=SIP/G8USA0200") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:15] ExecIf("SIP/736-0000034b", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:16] ExecIf("SIP/736-0000034b", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:17] Macro("SIP/736-0000034b", "dialout-trunk-predial-hook,") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/736-0000034b", "") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:18] GotoIf("SIP/736-0000034b", "0?bypass,1") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:19] ExecIf("SIP/736-0000034b", "1?Set(CONNECTEDLINE(num,i)=9176838799)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:20] ExecIf("SIP/736-0000034b", "1?Set(CONNECTEDLINE(name,i)=CID:6319230200)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:21] ExecIf("SIP/736-0000034b", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)6319230200)") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:22] GotoIf("SIP/736-0000034b", "0?customtrunk") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] pbx.c: Executing [s@macro-dialout-trunk:23] Dial("SIP/736-0000034b", "SIP/G8USA0200/9176838799,300,Tt") in new stack
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] netsock2.c: Using SIP RTP TOS bits 184
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] netsock2.c: Using SIP RTP CoS mark 5
[2016-04-10 16:54:41] VERBOSE[21942][C-000001fb] app_dial.c: Called SIP/G8USA0200/9176838799