Outbound Caller ID Not Working Properly

I am trying to figure our outbound caller_ID issue. It is not send out our toll free number, but instead the DID. I have set out toll free in the 1111111111 format, but this is not working. I receive the following in my log file

“0?Set(CALLERPRES()=prohib_passed_screen)”)

What does this mean?

We are running Asterisks 2.11.0.9

I could really use some help on this one.

Thanks,

Rob

A little bit of info about your trunks would go a long way to answering your question.

your post contains only a fragment of a line. Please pastbin your relevant log(s) and also share your trunk config and describe the call path. Were there any changes before this began to occur?

Also your asterisk version is older than some meteorites that I know. Not to imply it is the cause of this problem but you should really upgrade.

Here is my log file. I have changed and replaced some of the info just to keep out numbers private on the forum.

[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-user-callerid:7] GotoIf(“SIP/112-0000003b”, “0?report”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-user-callerid:8] Set(“SIP/112-0000003b”, “AMPUSERCID=112”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-user-callerid:9] Set(“SIP/112-0000003b”, “__DIAL_OPTIONS=Ttr”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-user-callerid:10] Set(“SIP/112-0000003b”, “CALLERID(all)=“John Doe” <112>”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-user-callerid:11] GotoIf(“SIP/112-0000003b”, “0?limit”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-user-callerid:12] ExecIf(“SIP/112-0000003b”, “1?Set(GROUP(concurrency_limit)=112)”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-user-callerid:13] GosubIf(“SIP/112-0000003b”, “7?sub-ccss,s,1(from-internal,2152671830)”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@sub-ccss:1] ExecIf(“SIP/112-0000003b”, “0?Return()”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@sub-ccss:2] Set(“SIP/112-0000003b”, “CCSS_SETUP=TRUE”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@sub-ccss:3] GosubIf(“SIP/112-0000003b”, “0?monitor_config,1(from-internal,2152671830):monitor_default,1(from-internal,2152671830)”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [monitor_default@sub-ccss:1] GotoIf(“SIP/112-0000003b”, “0?is_exten”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [monitor_default@sub-ccss:2] StackPop(“SIP/112-0000003b”, “”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [monitor_default@sub-ccss:3] Return(“SIP/112-0000003b”, “FALSE”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-user-callerid:14] ExecIf(“SIP/112-0000003b”, “0?Set(CHANNEL(language)=)”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-user-callerid:15] GotoIf(“SIP/112-0000003b”, “1?continue”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Goto (macro-user-callerid,s,28)
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-user-callerid:28] Set(“SIP/112-0000003b”, “CALLERID(number)=112”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-user-callerid:29] Set(“SIP/112-0000003b”, “CALLERID(name)=John Doe”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-user-callerid:30] Set(“SIP/112-0000003b”, “CDR(cnum)=112”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-user-callerid:31] Set(“SIP/112-0000003b”, “CDR(cnam)=John Doe”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-user-callerid:32] Set(“SIP/112-0000003b”, “CHANNEL(language)=en”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [2152671830@from-internal:2] Set(“SIP/112-0000003b”, “MOHCLASS=default”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [2152671830@from-internal:3] ExecIf(“SIP/112-0000003b”, “1?Set(TRUNKCIDOVERRIDE=8889639712)”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [2152671830@from-internal:4] Set(“SIP/112-0000003b”, “_NODEST=”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [2152671830@from-internal:5] Gosub(“SIP/112-0000003b”, “sub-record-check,s,1(out,2152671830,)”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@sub-record-check:1] Set(“SIP/112-0000003b”, “REC_POLICY_MODE_SAVE=”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@sub-record-check:2] GotoIf(“SIP/112-0000003b”, “1?check”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Goto (sub-record-check,s,7)
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@sub-record-check:7] Set(“SIP/112-0000003b”, “__MON_FMT=wav”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@sub-record-check:8] GotoIf(“SIP/112-0000003b”, “1?next”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Goto (sub-record-check,s,11)
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@sub-record-check:11] ExecIf(“SIP/112-0000003b”, “0?Return()”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@sub-record-check:12] ExecIf(“SIP/112-0000003b”, “0?Set(__REC_POLICY_MODE=)”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@sub-record-check:13] GotoIf(“SIP/112-0000003b”, “0?out,1”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@sub-record-check:14] Set(“SIP/112-0000003b”, “__REC_STATUS=INITIALIZED”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@sub-record-check:15] Set(“SIP/112-0000003b”, “NOW=1376331367”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@sub-record-check:16] Set(“SIP/112-0000003b”, “__DAY=12”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@sub-record-check:17] Set(“SIP/112-0000003b”, “__MONTH=08”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@sub-record-check:18] Set(“SIP/112-0000003b”, “__YEAR=2013”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@sub-record-check:19] Set(“SIP/112-0000003b”, “__TIMESTR=20130812-141607”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@sub-record-check:20] Set(“SIP/112-0000003b”, “__FROMEXTEN=112”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@sub-record-check:21] Set(“SIP/112-0000003b”, “__CALLFILENAME=out-2152671830-112-20130812-141607-1376331367.61”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@sub-record-check:22] Goto(“SIP/112-0000003b”, “out,1”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Goto (sub-record-check,out,1)
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [out@sub-record-check:1] ExecIf(“SIP/112-0000003b”, “1?Set(__REC_POLICY_MODE=dontcare)”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [out@sub-record-check:2] GosubIf(“SIP/112-0000003b”, “0?record,1(exten,2152671830,112)”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [out@sub-record-check:3] Return(“SIP/112-0000003b”, “”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [2152671830@from-internal:6] Macro(“SIP/112-0000003b”, “dialout-trunk,3,2152671830,off”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:1] Set(“SIP/112-0000003b”, “DIAL_TRUNK=3”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/112-0000003b”, “0?sub-pincheck,s,1()”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/112-0000003b”, “0?disabletrunk,1”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:4] Set(“SIP/112-0000003b”, “DIAL_NUMBER=2152671830”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:5] Set(“SIP/112-0000003b”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:6] Set(“SIP/112-0000003b”, “OUTBOUND_GROUP=OUT_3”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/112-0000003b”, “1?nomax”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Goto (macro-dialout-trunk,s,9)
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/112-0000003b”, “0?skipoutcid”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:10] Set(“SIP/112-0000003b”, “DIAL_TRUNK_OPTIONS=Tt”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:11] Macro(“SIP/112-0000003b”, “outbound-callerid,3”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/112-0000003b”, “0?Set(CALLERPRES()=)”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/112-0000003b”, “0?Set(REALCALLERIDNUM=112)”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/112-0000003b”, “1?normcid”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Goto (macro-outbound-callerid,s,6)
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-outbound-callerid:6] Set(“SIP/112-0000003b”, “USEROUTCID=IT Comp 8889639712”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-outbound-callerid:7] Set(“SIP/112-0000003b”, “EMERGENCYCID=”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-outbound-callerid:8] Set(“SIP/112-0000003b”, “TRUNKOUTCID=8889639712”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/112-0000003b”, “1?trunkcid”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Goto (macro-outbound-callerid,s,14)
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/112-0000003b”, “1?Set(CALLERID(all)=8889639712)”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/112-0000003b”, “1?Set(CALLERID(all)=IT Comp 8889639712)”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-outbound-callerid:16] ExecIf(“SIP/112-0000003b”, “1?Set(CALLERID(all)=8889639712)”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-outbound-callerid:17] ExecIf(“SIP/112-0000003b”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-outbound-callerid:18] Set(“SIP/112-0000003b”, “CDR(outbound_cnum)=8889639712”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-outbound-callerid:19] Set(“SIP/112-0000003b”, “CDR(outbound_cnam)=”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/112-0000003b”, “0?sub-flp-3,s,1()”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:13] Set(“SIP/112-0000003b”, “OUTNUM=2152671830”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:14] Set(“SIP/112-0000003b”, “custom=SIP/Bill_Clinton”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/112-0000003b”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/112-0000003b”, “0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:17] Macro(“SIP/112-0000003b”, “dialout-trunk-predial-hook,”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/112-0000003b”, “”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/112-0000003b”, “0?bypass,1”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/112-0000003b”, “1?Set(CONNECTEDLINE(num,i)=2152671830)”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/112-0000003b”, “1?Set(CONNECTEDLINE(name,i)=CID:8889639712)”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:21] GotoIf(“SIP/112-0000003b”, “0?customtrunk”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] pbx.c: – Executing [s@macro-dialout-trunk:22] Dial(“SIP/112-0000003b”, “SIP/Bill_Clinton/2152671830,300,Tt”) in new stack
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] netsock2.c: == Using SIP RTP TOS bits 184
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] netsock2.c: == Using SIP RTP CoS mark 5
[2013-08-12 14:16:07] VERBOSE[5662][C-00000032] app_dial.c: – Called SIP/Bill_Clinton/2152671830
[2013-08-12 14:16:08] VERBOSE[5662][C-00000032] app_dial.c: – SIP/Bill_Clinton-0000003c is ringing
[2013-08-12 14:16:08] VERBOSE[5662][C-00000032] app_dial.c: – SIP/Bill_Clinton-0000003c is making progress passing it to SIP/112-0000003b
[2013-08-12 14:16:15] VERBOSE[5662][C-00000032] app_macro.c: == Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on ‘SIP/112-0000003b’ in macro ‘dialout-trunk’
[2013-08-12 14:16:15] VERBOSE[5662][C-00000032] pbx.c: == Spawn extension (from-internal, 2152671830, 6) exited non-zero on ‘SIP/112-0000003b’
[2013-08-12 14:16:15] VERBOSE[5662][C-00000032] pbx.c: – Executing [h@from-internal:1] Hangup(“SIP/112-0000003b”, “”) in new stack
[2013-08-12 14:16:15] VERBOSE[5662][C-00000032] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/112-0000003b’

We just impelmented this system a couple of weeks ago. We are receiving inbound and outbound without any issues. The number that we are trying to set the caller ID to is not one which is a SIP trunk. It is actually our toll free, which is an analog line.

What the CLI command to list the trunk configs? There doesnt seem to be a way to list the trunk configs in a format that I can copy and paste from teh GUI.

Pardon my ignorance FreePBX is very new to me.

I have done some other testing and discovered that the outbound route that I move to the number one position is the caller ID that everyone picks up regardless of what is defined in the extension of caller_id, trunk or outbound route.

Does your provider let you set the CLID to a number they don’t “own”?

BF

I have tried even setting the Caller ID on the outbound route to another DID by the same provider, but outbound call does not pick it up. The outbound route that is in position one is always the caller ID number that shows regardless of what number I put in the trunk outbound Outbound CID or the outbound route Route ID. I have tried checking the override extension CID and have assigned the trunk to Allow Any CID.

If I change the outbound routes around the outbound call always picks up the DID of the trunk in position 1.