Internal Ext. Caller ID is not being passed on when Follow Me forwards a call to an outside cellphone

Hello,

FreePBX (v13) is no longer sending a caller ID through the external sip trunk when follow me kicks in after an internal extension dials.

About 1 month ago, FreePBX used to follow the behavior below.

Set up:
202 has Follow me ON

Initial Ring Time: 7
Ring Strategy: ringallv2-prim
Ring Time: 20
Follow-me List:
260
5555551234#
Announcement: None
Music on hold: ring
CID Prefix: (blank)
Alert Info: None
Ringer Volume Override: None

Now, when 201 called 202, the follow me would send the call to 5555551234.

5555551234 would see, on their cellphone’s caller id the number 201 from the extension.

However, after a FreePBX update, 555.555.1234 is no longer seeing 201 for their caller ID, but a random phone number – not even the PBX’s phone number.

I decided to read the Asterisk -rvvv info and I noticed the below (see line 17):

-- Executing [s@macro-outbound-callerid:15] ExecIf("Local/5555551234@from-internal-000010e1;2", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:16] ExecIf("Local/5555551234@from-internal-000010e1;2", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:17] ExecIf("Local/5555551234@from-internal-000010e1;2", "0?Set(CALLERID(all)=)") in new stack

Then, as a testing, I decided to change the setting on the 202 Follow Me to
Change External CID Configuration Mode to: Fixed CID Value (It was on default before)
and used Fixed CID Value: 5551234567

I made a new call from 201 to 202 and 555.555.1234 was getting 555 123 4567 on its caller ID (instead of the random phone number).

I also noticed that the Asterisk -rvvv chanted for the macro-outbound-callerid:17 line:

-- Executing [s@macro-outbound-callerid:15] ExecIf("Local/7149049722@from-internal-000010e4;2", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:16] ExecIf("Local/7149049722@from-internal-000010e4;2", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:17] ExecIf("Local/7149049722@from-internal-000010e4;2", "1?Set(CALLERID(all)=5551234567)”) in new stack

I have tried deleting extension 202 and re-creating it again to no avail. Follow me still doesn’t forward a Caller ID so my cellphone still shows a random 10 digit phone number.

I have FreePBX 13.0.192.8 with all its modules up to the latest updates. I also use Sangoma S500 with the latest firmware. Extensions 201 and 202 are Chan_sip extensions.

Like I said, it was working perfect until an update broke it…

I hope I’ve made my self clear and await to hear from any one back soon.

Thank you in advance for all your time.

Fabian.

I very much doubt a free pbx update broke you’re caller id forwarding as that is something freepbx/asterisk does out of the box. It is more likely that your SIP provider is no longer accepting the foreign caller id and is replacing it with a generic one. You need a sip provider that accepts flexible caller id passing.

Jason

Hello Jason,
Thank you for your reply.

I have the same believe. Why would the update brake it? However, that’s the only thing that changed when the CID stopped from working.

Regarding the SIP provider, I forgot to mention we use SIPSTATION, and have always used it since the implementation about a year ago. I called SIPSTATION and asked them if something had changed, but their tech support stated that nothing had changed on their end, and that they still allowed foreign caller ids.

I also tested the foreign CID by setting the Follow Me’s fixed CID to 123, which goes out, through, and my cellphone sees as 123.

Any other ideas? I don’t know what else to do.

Once again, thank you,

Fabian.

Hello,

I’m pasting below the asterisk -rvvv when I make the 2 example calls from the first post.

HERE IS WHEN FOLLOW ME IS SET TO DEFAULT (Caller Follow Me Caller ID doesn’t go through):

Connected to Asterisk 13.14.0 currently running on localhost (pid = 2239)
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [398@from-internal:1] GotoIf("SIP/260-0000fefa", "0?ext-local,398,1:followme-check,398,1") in new stack
    -- Goto (followme-check,398,1)
    -- Executing [398@followme-check:1] Gosub("SIP/260-0000fefa", "followme-sub,398,1()") in new stack
    -- Executing [398@followme-sub:1] Macro("SIP/260-0000fefa", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/260-0000fefa", "TOUCH_MONITOR=1496866939.122058") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/260-0000fefa", "AMPUSER=260") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/260-0000fefa", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/260-0000fefa", "1?Set(REALCALLERIDNUM=260)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/260-0000fefa", "AMPUSER=260") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/260-0000fefa", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/260-0000fefa", "AMPUSERCIDNAME=John Smith") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/260-0000fefa", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/260-0000fefa", "AMPUSERCID=260") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/260-0000fefa", "__DIAL_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/260-0000fefa", "CALLERID(all)="John Smith" <260>") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/260-0000fefa", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:13] ExecIf("SIP/260-0000fefa", "0?Set(GROUP(concurrency_limit)=260)") in new stack
    -- Executing [s@macro-user-callerid:14] ExecIf("SIP/260-0000fefa", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:15] GotoIf("SIP/260-0000fefa", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:16] ExecIf("SIP/260-0000fefa", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
    -- Executing [s@macro-user-callerid:17] Set("SIP/260-0000fefa", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:18] GotoIf("SIP/260-0000fefa", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,29)
    -- Executing [s@macro-user-callerid:29] Set("SIP/260-0000fefa", "CALLERID(number)=260") in new stack
    -- Executing [s@macro-user-callerid:30] Set("SIP/260-0000fefa", "CALLERID(name)=John Smith") in new stack
    -- Executing [s@macro-user-callerid:31] GotoIf("SIP/260-0000fefa", "0?cnum") in new stack
    -- Executing [s@macro-user-callerid:32] Set("SIP/260-0000fefa", "CDR(cnam)=John Smith") in new stack
    -- Executing [s@macro-user-callerid:33] Set("SIP/260-0000fefa", "CDR(cnum)=260") in new stack
    -- Executing [s@macro-user-callerid:34] Set("SIP/260-0000fefa", "CHANNEL(language)=en") in new stack
    -- Executing [398@followme-sub:2] Set("SIP/260-0000fefa", "DIAL_OPTIONS=TtrI") in new stack
    -- Executing [398@followme-sub:3] Set("SIP/260-0000fefa", "CONNECTEDLINE(num,i)=398") in new stack
    -- Executing [398@followme-sub:4] Gosub("SIP/260-0000fefa", "sub-presencestate-display,s,1(398)") in new stack
    -- Executing [s@sub-presencestate-display:1] Goto("SIP/260-0000fefa", "state-not_set,1") in new stack
    -- Goto (sub-presencestate-display,state-not_set,1)
    -- Executing [state-not_set@sub-presencestate-display:1] Set("SIP/260-0000fefa", "PRESENCESTATE_DISPLAY=") in new stack
    -- Executing [state-not_set@sub-presencestate-display:2] Return("SIP/260-0000fefa", "") in new stack
    -- Executing [398@followme-sub:5] Set("SIP/260-0000fefa", "CONNECTEDLINE(name)=John Smith W") in new stack
    -- Executing [398@followme-sub:6] Set("SIP/260-0000fefa", "FM_DIALSTATUS=NOT_INUSE") in new stack
    -- Executing [398@followme-sub:7] Set("SIP/260-0000fefa", "__EXTTOCALL=398") in new stack
    -- Executing [398@followme-sub:8] Set("SIP/260-0000fefa", "__PICKUPMARK=398") in new stack
    -- Executing [398@followme-sub:9] Macro("SIP/260-0000fefa", "blkvm-setifempty,") in new stack
    -- Executing [s@macro-blkvm-setifempty:1] GotoIf("SIP/260-0000fefa", "1?init") in new stack
    -- Goto (macro-blkvm-setifempty,s,4)
    -- Executing [s@macro-blkvm-setifempty:4] Set("SIP/260-0000fefa", "__BLKVM_CHANNEL=SIP/260-0000fefa") in new stack
    -- Executing [s@macro-blkvm-setifempty:5] Set("SIP/260-0000fefa", "SHARED(BLKVM,SIP/260-0000fefa)=TRUE") in new stack
    -- Executing [s@macro-blkvm-setifempty:6] Set("SIP/260-0000fefa", "GOSUB_RETVAL=TRUE") in new stack
    -- Executing [s@macro-blkvm-setifempty:7] MacroExit("SIP/260-0000fefa", "") in new stack
    -- Executing [398@followme-sub:10] GotoIf("SIP/260-0000fefa", "1?skipov") in new stack
    -- Goto (followme-sub,398,13)
    -- Executing [398@followme-sub:13] Set("SIP/260-0000fefa", "RRNODEST=") in new stack
    -- Executing [398@followme-sub:14] Set("SIP/260-0000fefa", "__NODEST=398") in new stack
    -- Executing [398@followme-sub:15] GosubIf("SIP/260-0000fefa", "0?sub-fmsetcid,s,1()") in new stack
    -- Executing [398@followme-sub:16] GotoIf("SIP/260-0000fefa", "1?skipprepend") in new stack
    -- Goto (followme-sub,398,18)
    -- Executing [398@followme-sub:18] Set("SIP/260-0000fefa", "RecordMethod=Group") in new stack
    -- Executing [398@followme-sub:19] Gosub("SIP/260-0000fefa", "sub-record-check,s,1(exten,398,)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("SIP/260-0000fefa", "0?initialized") in new stack
    -- Executing [s@sub-record-check:2] Set("SIP/260-0000fefa", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:3] Set("SIP/260-0000fefa", "NOW=1496866939") in new stack
    -- Executing [s@sub-record-check:4] Set("SIP/260-0000fefa", "__DAY=07") in new stack
    -- Executing [s@sub-record-check:5] Set("SIP/260-0000fefa", "__MONTH=06") in new stack
    -- Executing [s@sub-record-check:6] Set("SIP/260-0000fefa", "__YEAR=2017") in new stack
    -- Executing [s@sub-record-check:7] Set("SIP/260-0000fefa", "__TIMESTR=20170607-132219") in new stack
    -- Executing [s@sub-record-check:8] Set("SIP/260-0000fefa", "__FROMEXTEN=260") in new stack
    -- Executing [s@sub-record-check:9] Set("SIP/260-0000fefa", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:10] NoOp("SIP/260-0000fefa", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("SIP/260-0000fefa", "1?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("SIP/260-0000fefa", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("SIP/260-0000fefa", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("SIP/260-0000fefa", "5?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("SIP/260-0000fefa", "1?sub-record-check,exten,1") in new stack
    -- Goto (sub-record-check,exten,1)
    -- Executing [exten@sub-record-check:1] NoOp("SIP/260-0000fefa", "Exten Recording Check between 260 and 398") in new stack
    -- Executing [exten@sub-record-check:2] Set("SIP/260-0000fefa", "CALLTYPE=internal") in new stack
    -- Executing [exten@sub-record-check:3] ExecIf("SIP/260-0000fefa", "0?Set(CALLTYPE=)") in new stack
    -- Executing [exten@sub-record-check:4] Set("SIP/260-0000fefa", "CALLEE=dontcare") in new stack
    -- Executing [exten@sub-record-check:5] ExecIf("SIP/260-0000fefa", "0?Set(CALLEE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:6] GotoIf("SIP/260-0000fefa", "0?callee") in new stack
    -- Executing [exten@sub-record-check:7] GotoIf("SIP/260-0000fefa", "1?caller") in new stack
    -- Goto (sub-record-check,exten,13)
    -- Executing [exten@sub-record-check:13] Set("SIP/260-0000fefa", "RECMODE=dontcare") in new stack
    -- Executing [exten@sub-record-check:14] ExecIf("SIP/260-0000fefa", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:15] ExecIf("SIP/260-0000fefa", "1?Set(RECMODE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:16] Gosub("SIP/260-0000fefa", "recordcheck,1(dontcare,internal,398)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("SIP/260-0000fefa", "Starting recording check against dontcare") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("SIP/260-0000fefa", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [recordcheck@sub-record-check:3] Return("SIP/260-0000fefa", "") in new stack
    -- Executing [exten@sub-record-check:17] Return("SIP/260-0000fefa", "") in new stack
    -- Executing [398@followme-sub:20] GotoIf("SIP/260-0000fefa", "1?skipdring") in new stack
    -- Goto (followme-sub,398,23)
    -- Executing [398@followme-sub:23] Set("SIP/260-0000fefa", "STRATEGY=ringallv2-prim") in new stack
    -- Executing [398@followme-sub:24] Set("SIP/260-0000fefa", "__RVOL=") in new stack
    -- Executing [398@followme-sub:25] GotoIf("SIP/260-0000fefa", "1?skipsimple") in new stack
    -- Goto (followme-sub,398,28)
    -- Executing [398@followme-sub:28] Set("SIP/260-0000fefa", "RingGroupMethod=ringallv2-prim") in new stack
    -- Executing [398@followme-sub:29] Set("SIP/260-0000fefa", "_FMGRP=398") in new stack
    -- Executing [398@followme-sub:30] GotoIf("SIP/260-0000fefa", "1?DIALGRP") in new stack
    -- Goto (followme-sub,398,34)
    -- Executing [398@followme-sub:34] ExecIf("SIP/260-0000fefa", "1?Set(DOPTS=TtrI):Set(DOPTS=m(Ring)TtI)") in new stack
    -- Executing [398@followme-sub:35] GotoIf("SIP/260-0000fefa", "0?doconfirm") in new stack
    -- Executing [398@followme-sub:36] GotoIf("SIP/260-0000fefa", "1?ringallv21") in new stack
    -- Goto (followme-sub,398,39)
    -- Executing [398@followme-sub:39] Macro("SIP/260-0000fefa", "dial,20,TtrI,5551234567#") in new stack
    -- Executing [s@macro-dial:1] NoOp("SIP/260-0000fefa", "Blind Transfer: , Attended Transfer: , User: 260, Alert Info: ") in new stack
    -- Executing [s@macro-dial:2] Set("SIP/260-0000fefa", "__CRM_SOURCE=260") in new stack
    -- Executing [s@macro-dial:3] ExecIf("SIP/260-0000fefa", "1?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial:4] ExecIf("SIP/260-0000fefa", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial:5] ExecIf("SIP/260-0000fefa", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial:6] ExecIf("SIP/260-0000fefa", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [s@macro-dial:7] AGI("SIP/260-0000fefa", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi

In the Next Post is the continuation from this call.

 dialparties.agi: Starting New Dialparties.agi
 dialparties.agi: Caller ID name is 'John Smith' number is '260'
 dialparties.agi: CW Ignore is: 
 dialparties.agi: CF Ignore is: 
 dialparties.agi: CW IN_USE/BUSY is: 1
 dialparties.agi: Methodology of ring is  'ringallv2-prim'
    -- dialparties.agi: Added extension 5551234567# to extension map
    -- dialparties.agi: Extension 398 cf is disabled
    -- dialparties.agi: Extension 5551234567# cf is disabled
    -- dialparties.agi: Extension 398 do not disturb is disabled
 dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
 dialparties.agi: Extension 398 has ExtensionState: 0
    -- dialparties.agi: dbset CALLTRACE/398 to 260
    -- dialparties.agi: Filtered ARG3: 398-5551234567
    -- <SIP/260-0000fefa>AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:10] NoOp("SIP/260-0000fefa", "Returned from dialparties with groups to dial") in new stack
    -- Executing [s@macro-dial:11] Set("SIP/260-0000fefa", "LOOPCNT=2") in new stack
    -- Executing [s@macro-dial:12] Set("SIP/260-0000fefa", "ITER=1") in new stack
    -- Executing [s@macro-dial:13] Set("SIP/260-0000fefa", "EXTTOCALL=398") in new stack
    -- Executing [s@macro-dial:14] NoOp("SIP/260-0000fefa", "Working with 398") in new stack
    -- Executing [s@macro-dial:15] ExecIf("SIP/260-0000fefa", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [s@macro-dial:16] ExecIf("SIP/260-0000fefa", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [s@macro-dial:17] Set("SIP/260-0000fefa", "ITER=2") in new stack
    -- Executing [s@macro-dial:18] GotoIf("SIP/260-0000fefa", "1?ndloopbegin") in new stack
    -- Goto (macro-dial,s,13)
    -- Executing [s@macro-dial:13] Set("SIP/260-0000fefa", "EXTTOCALL=5551234567") in new stack
    -- Executing [s@macro-dial:14] NoOp("SIP/260-0000fefa", "Working with 5551234567") in new stack
    -- Executing [s@macro-dial:15] ExecIf("SIP/260-0000fefa", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [s@macro-dial:16] ExecIf("SIP/260-0000fefa", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [s@macro-dial:17] Set("SIP/260-0000fefa", "ITER=3") in new stack
    -- Executing [s@macro-dial:18] GotoIf("SIP/260-0000fefa", "0?ndloopbegin") in new stack
    -- Executing [s@macro-dial:19] Macro("SIP/260-0000fefa", "dial-ringall-predial-hook,") in new stack
    -- Executing [s@macro-dial-ringall-predial-hook:1] MacroExit("SIP/260-0000fefa", "") in new stack
    -- Executing [s@macro-dial:20] Dial("SIP/260-0000fefa", "Local/FMPR-398@from-internal&Local/FMGL-5551234567#@from-internal,22,TtrIM(auto-blkvm)b(func-apply-sipheaders^s^1),") in new stack
    -- Local/FMPR-398@from-internal-000010df;1 Internal Gosub(func-apply-sipheaders,s,1) start
    -- Executing [s@func-apply-sipheaders:1] ExecIf("Local/FMPR-398@from-internal-000010df;1", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
    -- Executing [s@func-apply-sipheaders:2] NoOp("Local/FMPR-398@from-internal-000010df;1", "Applying SIP Headers to channel") in new stack
    -- Executing [s@func-apply-sipheaders:3] Set("Local/FMPR-398@from-internal-000010df;1", "SIPHEADERKEYS=") in new stack
    -- Executing [s@func-apply-sipheaders:4] While("Local/FMPR-398@from-internal-000010df;1", "0") in new stack
    -- Jumping to priority 8
    -- Executing [s@func-apply-sipheaders:9] Return("Local/FMPR-398@from-internal-000010df;1", "") in new stack
  == Spawn extension (from-internal, 398, 1) exited non-zero on 'Local/FMPR-398@from-internal-000010df;1'
    -- Local/FMPR-398@from-internal-000010df;1 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
    -- Local/FMGL-5551234567#@from-internal-000010e0;1 Internal Gosub(func-apply-sipheaders,s,1) start
    -- Executing [s@func-apply-sipheaders:1] ExecIf("Local/FMGL-5551234567#@from-internal-000010e0;1", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
    -- Executing [s@func-apply-sipheaders:2] NoOp("Local/FMGL-5551234567#@from-internal-000010e0;1", "Applying SIP Headers to channel") in new stack
    -- Executing [s@func-apply-sipheaders:3] Set("Local/FMGL-5551234567#@from-internal-000010e0;1", "SIPHEADERKEYS=") in new stack
    -- Executing [s@func-apply-sipheaders:4] While("Local/FMGL-5551234567#@from-internal-000010e0;1", "0") in new stack
    -- Jumping to priority 8
    -- Executing [s@func-apply-sipheaders:9] Return("Local/FMGL-5551234567#@from-internal-000010e0;1", "") in new stack
  == Spawn extension (from-internal, 398, 1) exited non-zero on 'Local/FMGL-5551234567#@from-internal-000010e0;1'
    -- Local/FMGL-5551234567#@from-internal-000010e0;1 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
    -- Called Local/FMPR-398@from-internal
    -- Executing [FMPR-398@from-internal:1] Set("Local/FMPR-398@from-internal-000010df;2", "CDR_PROP(disable)=true") in new stack
    -- Executing [FMPR-398@from-internal:2] Set("Local/FMPR-398@from-internal-000010df;2", "RingGroupMethod=") in new stack
    -- Executing [FMPR-398@from-internal:3] Set("Local/FMPR-398@from-internal-000010df;2", "USE_CONFIRMATION=") in new stack
    -- Called Local/FMGL-5551234567#@from-internal
    -- Executing [FMPR-398@from-internal:4] Set("Local/FMPR-398@from-internal-000010df;2", "RINGGROUP_INDEX=") in new stack
    -- Executing [FMGL-5551234567#@from-internal:1] Set("Local/FMGL-5551234567#@from-internal-000010e0;2", "CDR_PROP(disable)=true") in new stack
    -- Executing [FMPR-398@from-internal:5] Macro("Local/FMPR-398@from-internal-000010df;2", "simple-dial,398,2") in new stack
    -- Executing [FMGL-5551234567#@from-internal:2] Set("Local/FMGL-5551234567#@from-internal-000010e0;2", "ENDLOOP=1496866941") in new stack
    -- Executing [s@macro-simple-dial:1] Set("Local/FMPR-398@from-internal-000010df;2", "__EXTTOCALL=398") in new stack
    -- Executing [FMGL-5551234567#@from-internal:3] GotoIf("Local/FMGL-5551234567#@from-internal-000010e0;2", "0?dodnd") in new stack
    -- Executing [FMGL-5551234567#@from-internal:4] Wait("Local/FMGL-5551234567#@from-internal-000010e0;2", "1") in new stack
    -- Executing [s@macro-simple-dial:2] Set("Local/FMPR-398@from-internal-000010df;2", "RT=2") in new stack
    -- Executing [s@macro-simple-dial:3] Set("Local/FMPR-398@from-internal-000010df;2", "CFUEXT=") in new stack
    -- Executing [s@macro-simple-dial:4] Set("Local/FMPR-398@from-internal-000010df;2", "CFBEXT=") in new stack
    -- Executing [s@macro-simple-dial:5] Set("Local/FMPR-398@from-internal-000010df;2", "CWI_TMP=") in new stack
    -- Executing [s@macro-simple-dial:6] Macro("Local/FMPR-398@from-internal-000010df;2", "dial-one,2,Ttr,398") in new stack
    -- Executing [s@macro-dial-one:1] Set("Local/FMPR-398@from-internal-000010df;2", "DEXTEN=398") in new stack
    -- Executing [s@macro-dial-one:2] Set("Local/FMPR-398@from-internal-000010df;2", "__CRM_SOURCE=260") in new stack
    -- Executing [s@macro-dial-one:3] ExecIf("Local/FMPR-398@from-internal-000010df;2", "0?Set(EXTTOCALL=398)") in new stack
    -- Executing [s@macro-dial-one:4] Set("Local/FMPR-398@from-internal-000010df;2", "DIALSTATUS_CW=") in new stack
    -- Executing [s@macro-dial-one:5] GosubIf("Local/FMPR-398@from-internal-000010df;2", "0?screen,1()") in new stack
    -- Executing [s@macro-dial-one:6] GosubIf("Local/FMPR-398@from-internal-000010df;2", "0?cf,1()") in new stack
    -- Executing [s@macro-dial-one:7] GotoIf("Local/FMPR-398@from-internal-000010df;2", "1?skip1") in new stack
    -- Goto (macro-dial-one,s,10)
    -- Executing [s@macro-dial-one:10] GotoIf("Local/FMPR-398@from-internal-000010df;2", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:11] GotoIf("Local/FMPR-398@from-internal-000010df;2", "0?continue") in new stack
    -- Executing [s@macro-dial-one:12] Set("Local/FMPR-398@from-internal-000010df;2", "EXTHASCW=ENABLED") in new stack
    -- Executing [s@macro-dial-one:13] GotoIf("Local/FMPR-398@from-internal-000010df;2", "0?next1:cwinusebusy") in new stack
    -- Goto (macro-dial-one,s,25)
    -- Executing [s@macro-dial-one:25] GotoIf("Local/FMPR-398@from-internal-000010df;2", "0?next3:continue") in new stack
    -- Goto (macro-dial-one,s,27)
    -- Executing [s@macro-dial-one:27] GotoIf("Local/FMPR-398@from-internal-000010df;2", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:28] GosubIf("Local/FMPR-398@from-internal-000010df;2", "1?dstring,1():dlocal,1()") in new stack
    -- Executing [dstring@macro-dial-one:1] Set("Local/FMPR-398@from-internal-000010df;2", "DSTRING=") in new stack
    -- Executing [dstring@macro-dial-one:2] Set("Local/FMPR-398@from-internal-000010df;2", "DEVICES=398") in new stack
    -- Executing [dstring@macro-dial-one:3] ExecIf("Local/FMPR-398@from-internal-000010df;2", "0?Return()") in new stack
    -- Executing [dstring@macro-dial-one:4] ExecIf("Local/FMPR-398@from-internal-000010df;2", "0?Set(DEVICES=98)") in new stack
    -- Executing [dstring@macro-dial-one:5] Set("Local/FMPR-398@from-internal-000010df;2", "LOOPCNT=1") in new stack
    -- Executing [dstring@macro-dial-one:6] Set("Local/FMPR-398@from-internal-000010df;2", "ITER=1") in new stack
    -- Executing [dstring@macro-dial-one:7] Set("Local/FMPR-398@from-internal-000010df;2", "THISDIAL=") in new stack
    -- Executing [dstring@macro-dial-one:8] GosubIf("Local/FMPR-398@from-internal-000010df;2", "1?zap2dahdi,1()") in new stack
    -- Executing [zap2dahdi@macro-dial-one:1] ExecIf("Local/FMPR-398@from-internal-000010df;2", "1?Return()") in new stack
    -- Executing [dstring@macro-dial-one:9] GotoIf("Local/FMPR-398@from-internal-000010df;2", "1?docheck") in new stack
    -- Goto (macro-dial-one,dstring,14)
    -- Executing [dstring@macro-dial-one:14] GotoIf("Local/FMPR-398@from-internal-000010df;2", "1?skipset") in new stack
    -- Goto (macro-dial-one,dstring,16)
    -- Executing [dstring@macro-dial-one:16] Set("Local/FMPR-398@from-internal-000010df;2", "ITER=2") in new stack
    -- Executing [dstring@macro-dial-one:17] GotoIf("Local/FMPR-398@from-internal-000010df;2", "0?begin") in new stack
    -- Executing [dstring@macro-dial-one:18] ExecIf("Local/FMPR-398@from-internal-000010df;2", "1?Return()") in new stack
    -- Executing [s@macro-dial-one:29] GotoIf("Local/FMPR-398@from-internal-000010df;2", "1?nodial") in new stack
    -- Goto (macro-dial-one,s,57)
    -- Executing [s@macro-dial-one:57] ExecIf("Local/FMPR-398@from-internal-000010df;2", "1?Set(DIALSTATUS=NOANSWER)") in new stack
    -- Executing [s@macro-dial-one:58] NoOp("Local/FMPR-398@from-internal-000010df;2", "Returned from dial-one with nothing to call and DIALSTATUS: NOANSWER") in new stack
    -- Executing [s@macro-dial-one:59] MacroExit("Local/FMPR-398@from-internal-000010df;2", "") in new stack
    -- Executing [s@macro-simple-dial:7] Set("Local/FMPR-398@from-internal-000010df;2", "__CWIGNORE=") in new stack
    -- Executing [s@macro-simple-dial:8] Set("Local/FMPR-398@from-internal-000010df;2", "PR_DIALSTATUS=NOANSWER") in new stack
    -- Executing [s@macro-simple-dial:9] GosubIf("Local/FMPR-398@from-internal-000010df;2", "0?docfu,1()") in new stack
    -- Executing [s@macro-simple-dial:10] GosubIf("Local/FMPR-398@from-internal-000010df;2", "0?docfb,1()") in new stack
    -- Executing [s@macro-simple-dial:11] Set("Local/FMPR-398@from-internal-000010df;2", "DIALSTATUS=NOANSWER") in new stack
    -- Executing [s@macro-simple-dial:12] Goto("Local/FMPR-398@from-internal-000010df;2", "s-NOANSWER,1") in new stack
    -- Goto (macro-simple-dial,s-NOANSWER,1)
    -- Executing [s-NOANSWER@macro-simple-dial:1] NoOp("Local/FMPR-398@from-internal-000010df;2", "Extension is reporting s-NOANSWER") in new stack
    -- Executing [FMPR-398@from-internal:6] ExecIf("Local/FMPR-398@from-internal-000010df;2", "0?Set(SHARED(FM_DND,SIP/260-0000fefa)=DND)") in new stack
    -- Executing [FMPR-398@from-internal:7] Hangup("Local/FMPR-398@from-internal-000010df;2", "") in new stack
  == Spawn extension (from-internal, FMPR-398, 7) exited non-zero on 'Local/FMPR-398@from-internal-000010df;2'
    -- Executing [h@from-internal:1] Macro("Local/FMPR-398@from-internal-000010df;2", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("Local/FMPR-398@from-internal-000010df;2", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] ExecIf("Local/FMPR-398@from-internal-000010df;2", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s@macro-hangupcall:4] Hangup("Local/FMPR-398@from-internal-000010df;2", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Local/FMPR-398@from-internal-000010df;2' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'Local/FMPR-398@from-internal-000010df;2'
    -- Executing [FMGL-5551234567#@from-internal:5] GotoIf("Local/FMGL-5551234567#@from-internal-000010e0;2", "1?start") in new stack
    -- Goto (from-internal,FMGL-5551234567#,3)
    -- Executing [FMGL-5551234567#@from-internal:3] GotoIf("Local/FMGL-5551234567#@from-internal-000010e0;2", "0?dodnd") in new stack
    -- Executing [FMGL-5551234567#@from-internal:4] Wait("Local/FMGL-5551234567#@from-internal-000010e0;2", "1") in new stack
    -- Executing [FMGL-5551234567#@from-internal:5] GotoIf("Local/FMGL-5551234567#@from-internal-000010e0;2", "0?start") in new stack
    -- Executing [FMGL-5551234567#@from-internal:6] Set("Local/FMGL-5551234567#@from-internal-000010e0;2", "SHARED(FM_DND,SIP/260-0000fefa)=") in new stack
    -- Executing [FMGL-5551234567#@from-internal:7] Macro("Local/FMGL-5551234567#@from-internal-000010e0;2", "dial,20,Ttr,5551234567#") in new stack
    -- Executing [s@macro-dial:1] NoOp("Local/FMGL-5551234567#@from-internal-000010e0;2", "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
    -- Executing [s@macro-dial:2] Set("Local/FMGL-5551234567#@from-internal-000010e0;2", "__CRM_SOURCE=260") in new stack
    -- Executing [s@macro-dial:3] ExecIf("Local/FMGL-5551234567#@from-internal-000010e0;2", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial:4] ExecIf("Local/FMGL-5551234567#@from-internal-000010e0;2", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial:5] ExecIf("Local/FMGL-5551234567#@from-internal-000010e0;2", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial:6] ExecIf("Local/FMGL-5551234567#@from-internal-000010e0;2", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [s@macro-dial:7] AGI("Local/FMGL-5551234567#@from-internal-000010e0;2", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
 dialparties.agi: Starting New Dialparties.agi
 dialparties.agi: Caller ID name is 'John Smith' number is '260'
 dialparties.agi: CW Ignore is: 
 dialparties.agi: CF Ignore is: 
 dialparties.agi: CW IN_USE/BUSY is: 1
 dialparties.agi: Methodology of ring is  'ringall'
    -- dialparties.agi: Added extension 5551234567# to extension map
    -- dialparties.agi: Extension 5551234567# cf is disabled
    -- dialparties.agi: Filtered ARG3: 5551234567
    -- <Local/FMGL-5551234567#@from-internal-000010e0;2>AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:10] NoOp("Local/FMGL-5551234567#@from-internal-000010e0;2", "Returned from dialparties with groups to dial") in new stack
    -- Executing [s@macro-dial:11] Set("Local/FMGL-5551234567#@from-internal-000010e0;2", "LOOPCNT=1") in new stack
    -- Executing [s@macro-dial:12] Set("Local/FMGL-5551234567#@from-internal-000010e0;2", "ITER=1") in new stack
    -- Executing [s@macro-dial:13] Set("Local/FMGL-5551234567#@from-internal-000010e0;2", "EXTTOCALL=5551234567") in new stack
    -- Executing [s@macro-dial:14] NoOp("Local/FMGL-5551234567#@from-internal-000010e0;2", "Working with 5551234567") in new stack
    -- Executing [s@macro-dial:15] ExecIf("Local/FMGL-5551234567#@from-internal-000010e0;2", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [s@macro-dial:16] ExecIf("Local/FMGL-5551234567#@from-internal-000010e0;2", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [s@macro-dial:17] Set("Local/FMGL-5551234567#@from-internal-000010e0;2", "ITER=2") in new stack
    -- Executing [s@macro-dial:18] GotoIf("Local/FMGL-5551234567#@from-internal-000010e0;2", "0?ndloopbegin") in new stack
    -- Executing [s@macro-dial:19] Macro("Local/FMGL-5551234567#@from-internal-000010e0;2", "dial-ringall-predial-hook,") in new stack
    -- Executing [s@macro-dial-ringall-predial-hook:1] MacroExit("Local/FMGL-5551234567#@from-internal-000010e0;2", "") in new stack
    -- Executing [s@macro-dial:20] Dial("Local/FMGL-5551234567#@from-internal-000010e0;2", "Local/5551234567@from-internal/n,20,TtrM(auto-blkvm)b(func-apply-sipheaders^s^1),") in new stack
    -- Local/5551234567@from-internal-000010e1;1 Internal Gosub(func-apply-sipheaders,s,1) start
    -- Executing [s@func-apply-sipheaders:1] ExecIf("Local/5551234567@from-internal-000010e1;1", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
    -- Executing [s@func-apply-sipheaders:2] NoOp("Local/5551234567@from-internal-000010e1;1", "Applying SIP Headers to channel") in new stack
    -- Executing [s@func-apply-sipheaders:3] Set("Local/5551234567@from-internal-000010e1;1", "SIPHEADERKEYS=") in new stack
    -- Executing [s@func-apply-sipheaders:4] While("Local/5551234567@from-internal-000010e1;1", "0") in new stack
    -- Jumping to priority 8
    -- Executing [s@func-apply-sipheaders:9] Return("Local/5551234567@from-internal-000010e1;1", "") in new stack
  == Spawn extension (from-internal, FMGL-5551234567#, 1) exited non-zero on 'Local/5551234567@from-internal-000010e1;1'
    -- Local/5551234567@from-internal-000010e1;1 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
    -- Called Local/5551234567@from-internal/n
    -- Local/FMGL-5551234567#@from-internal-000010e0;1 is ringing
    -- Executing [5551234567@from-internal:1] Macro("Local/5551234567@from-internal-000010e1;2", "user-callerid,LIMIT") in new stack
    -- Executing [s@macro-user-callerid:1] Set("Local/5551234567@from-internal-000010e1;2", "TOUCH_MONITOR=1496866941.122064") in new stack
    -- Executing [s@macro-user-callerid:2] Set("Local/5551234567@from-internal-000010e1;2", "AMPUSER=260") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("Local/5551234567@from-internal-000010e1;2", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("Local/5551234567@from-internal-000010e1;2", "1?Set(REALCALLERIDNUM=260)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("Local/5551234567@from-internal-000010e1;2", "AMPUSER=260") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("Local/5551234567@from-internal-000010e1;2", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:7] Set("Local/5551234567@from-internal-000010e1;2", "AMPUSERCIDNAME=John Smith") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("Local/5551234567@from-internal-000010e1;2", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("Local/5551234567@from-internal-000010e1;2", "AMPUSERCID=260") in new stack
    -- Executing [s@macro-user-callerid:10] Set("Local/5551234567@from-internal-000010e1;2", "__DIAL_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-user-callerid:11] Set("Local/5551234567@from-internal-000010e1;2", "CALLERID(all)="John Smith" <260>") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("Local/5551234567@from-internal-000010e1;2", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:13] ExecIf("Local/5551234567@from-internal-000010e1;2", "1?Set(GROUP(concurrency_limit)=260)") in new stack
    -- Executing [s@macro-user-callerid:14] ExecIf("Local/5551234567@from-internal-000010e1;2", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:15] GotoIf("Local/5551234567@from-internal-000010e1;2", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,29)
    -- Executing [s@macro-user-callerid:29] Set("Local/5551234567@from-internal-000010e1;2", "CALLERID(number)=260") in new stack
    -- Executing [s@macro-user-callerid:30] Set("Local/5551234567@from-internal-000010e1;2", "CALLERID(name)=John Smith") in new stack
    -- Executing [s@macro-user-callerid:31] GotoIf("Local/5551234567@from-internal-000010e1;2", "0?cnum") in new stack
    -- Executing [s@macro-user-callerid:32] Set("Local/5551234567@from-internal-000010e1;2", "CDR(cnam)=John Smith") in new stack
    -- Executing [s@macro-user-callerid:33] Set("Local/5551234567@from-internal-000010e1;2", "CDR(cnum)=260") in new stack
    -- Executing [s@macro-user-callerid:34] Set("Local/5551234567@from-internal-000010e1;2", "CHANNEL(language)=en") in new stack
    -- Executing [5551234567@from-internal:2] Set("Local/5551234567@from-internal-000010e1;2", "ROUTEUSER=260") in new stack
    -- Executing [5551234567@from-internal:3] Set("Local/5551234567@from-internal-000010e1;2", "ROUTEUSER=260") in new stack
    -- Executing [5551234567@from-internal:4] GotoIf("Local/5551234567@from-internal-000010e1;2", "1?notblind") in new stack
    -- Goto (from-internal,5551234567,7)
    -- Executing [5551234567@from-internal:7] GotoIf("Local/5551234567@from-internal-000010e1;2", "1?restrictedroute-453e406dcee4d18174d4ff623f52dcd8,5551234567,2:outbound-allroutes,5551234567,2") in new stack
    -- Goto (restrictedroute-453e406dcee4d18174d4ff623f52dcd8,5551234567,2)
    -- Executing [5551234567@restrictedroute-453e406dcee4d18174d4ff623f52dcd8:2] Gosub("Local/5551234567@from-internal-000010e1;2", "sub-record-check,s,1(out,5551234567,dontcare)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("Local/5551234567@from-internal-000010e1;2", "3?initialized") in new stack
    -- Goto (sub-record-check,s,10)
    -- Executing [s@sub-record-check:10] NoOp("Local/5551234567@from-internal-000010e1;2", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("Local/5551234567@from-internal-000010e1;2", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("Local/5551234567@from-internal-000010e1;2", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("Local/5551234567@from-internal-000010e1;2", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("Local/5551234567@from-internal-000010e1;2", "3?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("Local/5551234567@from-internal-000010e1;2", "1?sub-record-check,out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] NoOp("Local/5551234567@from-internal-000010e1;2", "Outbound Recording Check from 260 to 5551234567") in new stack
    -- Executing [out@sub-record-check:2] Set("Local/5551234567@from-internal-000010e1;2", "RECMODE=dontcare") in new stack
    -- Executing [out@sub-record-check:3] ExecIf("Local/5551234567@from-internal-000010e1;2", "1?Goto(routewins)") in new stack
    -- Goto (sub-record-check,out,7)
    -- Executing [out@sub-record-check:7] Gosub("Local/5551234567@from-internal-000010e1;2", "recordcheck,1(dontcare,out,5551234567)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("Local/5551234567@from-internal-000010e1;2", "Starting recording check against dontcare") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("Local/5551234567@from-internal-000010e1;2", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [recordcheck@sub-record-check:3] Return("Local/5551234567@from-internal-000010e1;2", "") in new stack
    -- Executing [out@sub-record-check:8] Return("Local/5551234567@from-internal-000010e1;2", "") in new stack
    -- Executing [5551234567@restrictedroute-453e406dcee4d18174d4ff623f52dcd8:3] ExecIf("Local/5551234567@from-internal-000010e1;2", "0 ?Set(CDR(accountcode)=)") in new stack
    -- Executing [5551234567@restrictedroute-453e406dcee4d18174d4ff623f52dcd8:4] Set("Local/5551234567@from-internal-000010e1;2", "MOHCLASS=default") in new stack
    -- Executing [5551234567@restrictedroute-453e406dcee4d18174d4ff623f52dcd8:5] ExecIf("Local/5551234567@from-internal-000010e1;2", "0?Set(TRUNKCIDOVERRIDE=5559876543)") in new stack
    -- Executing [5551234567@restrictedroute-453e406dcee4d18174d4ff623f52dcd8:6] Set("Local/5551234567@from-internal-000010e1;2", "_NODEST=") in new stack
    -- Executing [5551234567@restrictedroute-453e406dcee4d18174d4ff623f52dcd8:7] Macro("Local/5551234567@from-internal-000010e1;2", "dialout-trunk,2,5551234567,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("Local/5551234567@from-internal-000010e1;2", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("Local/5551234567@from-internal-000010e1;2", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("Local/5551234567@from-internal-000010e1;2", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("Local/5551234567@from-internal-000010e1;2", "DIAL_NUMBER=5551234567") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("Local/5551234567@from-internal-000010e1;2", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("Local/5551234567@from-internal-000010e1;2", "OUTBOUND_GROUP=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("Local/5551234567@from-internal-000010e1;2", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("Local/5551234567@from-internal-000010e1;2", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("Local/5551234567@from-internal-000010e1;2", "DIAL_TRUNK_OPTIONS=Tt") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("Local/5551234567@from-internal-000010e1;2", "outbound-callerid,2") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("Local/5551234567@from-internal-000010e1;2", "0?Set(CALLERPRES(name-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("Local/5551234567@from-internal-000010e1;2", "0?Set(CALLERPRES(num-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:3] ExecIf("Local/5551234567@from-internal-000010e1;2", "0?Set(REALCALLERIDNUM=260)") in new stack
    -- Executing [s@macro-outbound-callerid:4] GotoIf("Local/5551234567@from-internal-000010e1;2", "0?normcid") in new stack
    -- Executing [s@macro-outbound-callerid:5] Set("Local/5551234567@from-internal-000010e1;2", "USEROUTCID=260") in new stack
    -- Executing [s@macro-outbound-callerid:6] GotoIf("Local/5551234567@from-internal-000010e1;2", "0?bypass") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("Local/5551234567@from-internal-000010e1;2", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("Local/5551234567@from-internal-000010e1;2", "EMERGENCYCID=6572172960") in new stack
    -- Executing [s@macro-outbound-callerid:9] Set("Local/5551234567@from-internal-000010e1;2", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:10] GotoIf("Local/5551234567@from-internal-000010e1;2", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,15)
    -- Executing [s@macro-outbound-callerid:15] ExecIf("Local/5551234567@from-internal-000010e1;2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:16] ExecIf("Local/5551234567@from-internal-000010e1;2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:17] ExecIf("Local/5551234567@from-internal-000010e1;2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:18] ExecIf("Local/5551234567@from-internal-000010e1;2", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:19] ExecIf("Local/5551234567@from-internal-000010e1;2", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:20] Set("Local/5551234567@from-internal-000010e1;2", "CDR(outbound_cnum)=260") in new stack
    -- Executing [s@macro-outbound-callerid:21] Set("Local/5551234567@from-internal-000010e1;2", "CDR(outbound_cnam)=John Smith") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("Local/5551234567@from-internal-000010e1;2", "0?sub-flp-2,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("Local/5551234567@from-internal-000010e1;2", "OUTNUM=5551234567") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("Local/5551234567@from-internal-000010e1;2", "custom=SIP/fpbx-1-ASdFgHJkLzXCV") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("Local/5551234567@from-internal-000010e1;2", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("Local/5551234567@from-internal-000010e1;2", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:17] Macro("Local/5551234567@from-internal-000010e1;2", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("Local/5551234567@from-internal-000010e1;2", "") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("Local/5551234567@from-internal-000010e1;2", "0?skipcrm") in new stack
    -- Executing [s@macro-dialout-trunk:19] Set("Local/5551234567@from-internal-000010e1;2", "__CRM_DIRECTION=OUTBOUND") in new stack
    -- Executing [s@macro-dialout-trunk:20] Set("Local/5551234567@from-internal-000010e1;2", "__CRM_DESTINATION=5551234567") in new stack
    -- Executing [s@macro-dialout-trunk:21] Set("Local/5551234567@from-internal-000010e1;2", "__CRM_SOURCE=260") in new stack
    -- Executing [s@macro-dialout-trunk:22] AGI("Local/5551234567@from-internal-000010e1;2", "sangomacrm.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi

In the next post is when I set a Fixed CID value for Follow Me:

HERE IS WHEN I SET A FIXED CID VALUE FOR FOLLOW ME (Fixed custom CID goes through):

Connected to Asterisk 13.14.0 currently running on localhost (pid = 2239)
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [398@from-internal:1] GotoIf("SIP/260-0000ff0c", "0?ext-local,398,1:followme-check,398,1") in new stack
    -- Goto (followme-check,398,1)
    -- Executing [398@followme-check:1] Gosub("SIP/260-0000ff0c", "followme-sub,398,1()") in new stack
    -- Executing [398@followme-sub:1] Macro("SIP/260-0000ff0c", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/260-0000ff0c", "TOUCH_MONITOR=1496867036.122430") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/260-0000ff0c", "AMPUSER=260") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/260-0000ff0c", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/260-0000ff0c", "1?Set(REALCALLERIDNUM=260)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/260-0000ff0c", "AMPUSER=260") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/260-0000ff0c", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/260-0000ff0c", "AMPUSERCIDNAME=John Smith") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/260-0000ff0c", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/260-0000ff0c", "AMPUSERCID=260") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/260-0000ff0c", "__DIAL_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/260-0000ff0c", "CALLERID(all)="John Smith" <260>") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/260-0000ff0c", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:13] ExecIf("SIP/260-0000ff0c", "0?Set(GROUP(concurrency_limit)=260)") in new stack
    -- Executing [s@macro-user-callerid:14] ExecIf("SIP/260-0000ff0c", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:15] GotoIf("SIP/260-0000ff0c", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:16] ExecIf("SIP/260-0000ff0c", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
    -- Executing [s@macro-user-callerid:17] Set("SIP/260-0000ff0c", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:18] GotoIf("SIP/260-0000ff0c", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,29)
    -- Executing [s@macro-user-callerid:29] Set("SIP/260-0000ff0c", "CALLERID(number)=260") in new stack
    -- Executing [s@macro-user-callerid:30] Set("SIP/260-0000ff0c", "CALLERID(name)=John Smith") in new stack
    -- Executing [s@macro-user-callerid:31] GotoIf("SIP/260-0000ff0c", "0?cnum") in new stack
    -- Executing [s@macro-user-callerid:32] Set("SIP/260-0000ff0c", "CDR(cnam)=John Smith") in new stack
    -- Executing [s@macro-user-callerid:33] Set("SIP/260-0000ff0c", "CDR(cnum)=260") in new stack
    -- Executing [s@macro-user-callerid:34] Set("SIP/260-0000ff0c", "CHANNEL(language)=en") in new stack
    -- Executing [398@followme-sub:2] Set("SIP/260-0000ff0c", "DIAL_OPTIONS=TtrI") in new stack
    -- Executing [398@followme-sub:3] Set("SIP/260-0000ff0c", "CONNECTEDLINE(num,i)=398") in new stack
    -- Executing [398@followme-sub:4] Gosub("SIP/260-0000ff0c", "sub-presencestate-display,s,1(398)") in new stack
    -- Executing [s@sub-presencestate-display:1] Goto("SIP/260-0000ff0c", "state-not_set,1") in new stack
    -- Goto (sub-presencestate-display,state-not_set,1)
    -- Executing [state-not_set@sub-presencestate-display:1] Set("SIP/260-0000ff0c", "PRESENCESTATE_DISPLAY=") in new stack
    -- Executing [state-not_set@sub-presencestate-display:2] Return("SIP/260-0000ff0c", "") in new stack
    -- Executing [398@followme-sub:5] Set("SIP/260-0000ff0c", "CONNECTEDLINE(name)=John Smith W") in new stack
    -- Executing [398@followme-sub:6] Set("SIP/260-0000ff0c", "FM_DIALSTATUS=NOT_INUSE") in new stack
    -- Executing [398@followme-sub:7] Set("SIP/260-0000ff0c", "__EXTTOCALL=398") in new stack
    -- Executing [398@followme-sub:8] Set("SIP/260-0000ff0c", "__PICKUPMARK=398") in new stack
    -- Executing [398@followme-sub:9] Macro("SIP/260-0000ff0c", "blkvm-setifempty,") in new stack
    -- Executing [s@macro-blkvm-setifempty:1] GotoIf("SIP/260-0000ff0c", "1?init") in new stack
    -- Goto (macro-blkvm-setifempty,s,4)
    -- Executing [s@macro-blkvm-setifempty:4] Set("SIP/260-0000ff0c", "__BLKVM_CHANNEL=SIP/260-0000ff0c") in new stack
    -- Executing [s@macro-blkvm-setifempty:5] Set("SIP/260-0000ff0c", "SHARED(BLKVM,SIP/260-0000ff0c)=TRUE") in new stack
    -- Executing [s@macro-blkvm-setifempty:6] Set("SIP/260-0000ff0c", "GOSUB_RETVAL=TRUE") in new stack
    -- Executing [s@macro-blkvm-setifempty:7] MacroExit("SIP/260-0000ff0c", "") in new stack
    -- Executing [398@followme-sub:10] GotoIf("SIP/260-0000ff0c", "1?skipov") in new stack
    -- Goto (followme-sub,398,13)
    -- Executing [398@followme-sub:13] Set("SIP/260-0000ff0c", "RRNODEST=") in new stack
    -- Executing [398@followme-sub:14] Set("SIP/260-0000ff0c", "__NODEST=398") in new stack
    -- Executing [398@followme-sub:15] GosubIf("SIP/260-0000ff0c", "1?sub-fmsetcid,s,1()") in new stack
    -- Executing [s@sub-fmsetcid:1] Goto("SIP/260-0000ff0c", "s-fixed,1") in new stack
    -- Goto (sub-fmsetcid,s-fixed,1)
    -- Executing [s-fixed@sub-fmsetcid:1] ExecIf("SIP/260-0000ff0c", "1?Set(__TRUNKCIDOVERRIDE=123)") in new stack
    -- Executing [s-fixed@sub-fmsetcid:2] Return("SIP/260-0000ff0c", "") in new stack
    -- Executing [398@followme-sub:16] GotoIf("SIP/260-0000ff0c", "1?skipprepend") in new stack
    -- Goto (followme-sub,398,18)
    -- Executing [398@followme-sub:18] Set("SIP/260-0000ff0c", "RecordMethod=Group") in new stack
    -- Executing [398@followme-sub:19] Gosub("SIP/260-0000ff0c", "sub-record-check,s,1(exten,398,)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("SIP/260-0000ff0c", "0?initialized") in new stack
    -- Executing [s@sub-record-check:2] Set("SIP/260-0000ff0c", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:3] Set("SIP/260-0000ff0c", "NOW=1496867036") in new stack
    -- Executing [s@sub-record-check:4] Set("SIP/260-0000ff0c", "__DAY=07") in new stack
    -- Executing [s@sub-record-check:5] Set("SIP/260-0000ff0c", "__MONTH=06") in new stack
    -- Executing [s@sub-record-check:6] Set("SIP/260-0000ff0c", "__YEAR=2017") in new stack
    -- Executing [s@sub-record-check:7] Set("SIP/260-0000ff0c", "__TIMESTR=20170607-132356") in new stack
    -- Executing [s@sub-record-check:8] Set("SIP/260-0000ff0c", "__FROMEXTEN=260") in new stack
    -- Executing [s@sub-record-check:9] Set("SIP/260-0000ff0c", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:10] NoOp("SIP/260-0000ff0c", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("SIP/260-0000ff0c", "1?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("SIP/260-0000ff0c", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("SIP/260-0000ff0c", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("SIP/260-0000ff0c", "5?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("SIP/260-0000ff0c", "1?sub-record-check,exten,1") in new stack
    -- Goto (sub-record-check,exten,1)
    -- Executing [exten@sub-record-check:1] NoOp("SIP/260-0000ff0c", "Exten Recording Check between 260 and 398") in new stack
    -- Executing [exten@sub-record-check:2] Set("SIP/260-0000ff0c", "CALLTYPE=internal") in new stack
    -- Executing [exten@sub-record-check:3] ExecIf("SIP/260-0000ff0c", "0?Set(CALLTYPE=)") in new stack
    -- Executing [exten@sub-record-check:4] Set("SIP/260-0000ff0c", "CALLEE=dontcare") in new stack
    -- Executing [exten@sub-record-check:5] ExecIf("SIP/260-0000ff0c", "0?Set(CALLEE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:6] GotoIf("SIP/260-0000ff0c", "0?callee") in new stack
    -- Executing [exten@sub-record-check:7] GotoIf("SIP/260-0000ff0c", "1?caller") in new stack
    -- Goto (sub-record-check,exten,13)
    -- Executing [exten@sub-record-check:13] Set("SIP/260-0000ff0c", "RECMODE=dontcare") in new stack
    -- Executing [exten@sub-record-check:14] ExecIf("SIP/260-0000ff0c", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:15] ExecIf("SIP/260-0000ff0c", "1?Set(RECMODE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:16] Gosub("SIP/260-0000ff0c", "recordcheck,1(dontcare,internal,398)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("SIP/260-0000ff0c", "Starting recording check against dontcare") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("SIP/260-0000ff0c", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [recordcheck@sub-record-check:3] Return("SIP/260-0000ff0c", "") in new stack
    -- Executing [exten@sub-record-check:17] Return("SIP/260-0000ff0c", "") in new stack
    -- Executing [398@followme-sub:20] GotoIf("SIP/260-0000ff0c", "1?skipdring") in new stack
    -- Goto (followme-sub,398,23)
    -- Executing [398@followme-sub:23] Set("SIP/260-0000ff0c", "STRATEGY=ringallv2-prim") in new stack
    -- Executing [398@followme-sub:24] Set("SIP/260-0000ff0c", "__RVOL=") in new stack
    -- Executing [398@followme-sub:25] GotoIf("SIP/260-0000ff0c", "1?skipsimple") in new stack
    -- Goto (followme-sub,398,28)
    -- Executing [398@followme-sub:28] Set("SIP/260-0000ff0c", "RingGroupMethod=ringallv2-prim") in new stack
    -- Executing [398@followme-sub:29] Set("SIP/260-0000ff0c", "_FMGRP=398") in new stack
    -- Executing [398@followme-sub:30] GotoIf("SIP/260-0000ff0c", "1?DIALGRP") in new stack
    -- Goto (followme-sub,398,34)
    -- Executing [398@followme-sub:34] ExecIf("SIP/260-0000ff0c", "1?Set(DOPTS=TtrI):Set(DOPTS=m(Ring)TtI)") in new stack
    -- Executing [398@followme-sub:35] GotoIf("SIP/260-0000ff0c", "0?doconfirm") in new stack
    -- Executing [398@followme-sub:36] GotoIf("SIP/260-0000ff0c", "1?ringallv21") in new stack
    -- Goto (followme-sub,398,39)
    -- Executing [398@followme-sub:39] Macro("SIP/260-0000ff0c", "dial,20,TtrI,5555551234#") in new stack
    -- Executing [s@macro-dial:1] NoOp("SIP/260-0000ff0c", "Blind Transfer: , Attended Transfer: , User: 260, Alert Info: ") in new stack
    -- Executing [s@macro-dial:2] Set("SIP/260-0000ff0c", "__CRM_SOURCE=260") in new stack
    -- Executing [s@macro-dial:3] ExecIf("SIP/260-0000ff0c", "1?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial:4] ExecIf("SIP/260-0000ff0c", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial:5] ExecIf("SIP/260-0000ff0c", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial:6] ExecIf("SIP/260-0000ff0c", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [s@macro-dial:7] AGI("SIP/260-0000ff0c", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi

In the Next Post is the continuation from this call

 dialparties.agi: Starting New Dialparties.agi
 dialparties.agi: Caller ID name is 'John Smith' number is '260'
 dialparties.agi: CW Ignore is: 
 dialparties.agi: CF Ignore is: 
 dialparties.agi: CW IN_USE/BUSY is: 1
 dialparties.agi: Methodology of ring is  'ringallv2-prim'
    -- dialparties.agi: Added extension 5555551234# to extension map
    -- dialparties.agi: Extension 398 cf is disabled
    -- dialparties.agi: Extension 5555551234# cf is disabled
    -- dialparties.agi: Extension 398 do not disturb is disabled
 dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
 dialparties.agi: Extension 398 has ExtensionState: 0
    -- dialparties.agi: dbset CALLTRACE/398 to 260
    -- dialparties.agi: Filtered ARG3: 398-5555551234
    -- <SIP/260-0000ff0c>AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:10] NoOp("SIP/260-0000ff0c", "Returned from dialparties with groups to dial") in new stack
    -- Executing [s@macro-dial:11] Set("SIP/260-0000ff0c", "LOOPCNT=2") in new stack
    -- Executing [s@macro-dial:12] Set("SIP/260-0000ff0c", "ITER=1") in new stack
    -- Executing [s@macro-dial:13] Set("SIP/260-0000ff0c", "EXTTOCALL=398") in new stack
    -- Executing [s@macro-dial:14] NoOp("SIP/260-0000ff0c", "Working with 398") in new stack
    -- Executing [s@macro-dial:15] ExecIf("SIP/260-0000ff0c", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [s@macro-dial:16] ExecIf("SIP/260-0000ff0c", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [s@macro-dial:17] Set("SIP/260-0000ff0c", "ITER=2") in new stack
    -- Executing [s@macro-dial:18] GotoIf("SIP/260-0000ff0c", "1?ndloopbegin") in new stack
    -- Goto (macro-dial,s,13)
    -- Executing [s@macro-dial:13] Set("SIP/260-0000ff0c", "EXTTOCALL=5555551234") in new stack
    -- Executing [s@macro-dial:14] NoOp("SIP/260-0000ff0c", "Working with 5555551234") in new stack
    -- Executing [s@macro-dial:15] ExecIf("SIP/260-0000ff0c", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [s@macro-dial:16] ExecIf("SIP/260-0000ff0c", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [s@macro-dial:17] Set("SIP/260-0000ff0c", "ITER=3") in new stack
    -- Executing [s@macro-dial:18] GotoIf("SIP/260-0000ff0c", "0?ndloopbegin") in new stack
    -- Executing [s@macro-dial:19] Macro("SIP/260-0000ff0c", "dial-ringall-predial-hook,") in new stack
    -- Executing [s@macro-dial-ringall-predial-hook:1] MacroExit("SIP/260-0000ff0c", "") in new stack
    -- Executing [s@macro-dial:20] Dial("SIP/260-0000ff0c", "Local/FMPR-398@from-internal&Local/FMGL-5555551234#@from-internal,22,TtrIM(auto-blkvm)b(func-apply-sipheaders^s^1),") in new stack
    -- Local/FMPR-398@from-internal-000010e2;1 Internal Gosub(func-apply-sipheaders,s,1) start
    -- Executing [s@func-apply-sipheaders:1] ExecIf("Local/FMPR-398@from-internal-000010e2;1", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
    -- Executing [s@func-apply-sipheaders:2] NoOp("Local/FMPR-398@from-internal-000010e2;1", "Applying SIP Headers to channel") in new stack
    -- Executing [s@func-apply-sipheaders:3] Set("Local/FMPR-398@from-internal-000010e2;1", "SIPHEADERKEYS=") in new stack
    -- Executing [s@func-apply-sipheaders:4] While("Local/FMPR-398@from-internal-000010e2;1", "0") in new stack
    -- Jumping to priority 8
    -- Executing [s@func-apply-sipheaders:9] Return("Local/FMPR-398@from-internal-000010e2;1", "") in new stack
  == Spawn extension (from-internal, 398, 1) exited non-zero on 'Local/FMPR-398@from-internal-000010e2;1'
    -- Local/FMPR-398@from-internal-000010e2;1 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
    -- Local/FMGL-5555551234#@from-internal-000010e3;1 Internal Gosub(func-apply-sipheaders,s,1) start
    -- Executing [s@func-apply-sipheaders:1] ExecIf("Local/FMGL-5555551234#@from-internal-000010e3;1", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
    -- Executing [s@func-apply-sipheaders:2] NoOp("Local/FMGL-5555551234#@from-internal-000010e3;1", "Applying SIP Headers to channel") in new stack
    -- Executing [s@func-apply-sipheaders:3] Set("Local/FMGL-5555551234#@from-internal-000010e3;1", "SIPHEADERKEYS=") in new stack
    -- Executing [s@func-apply-sipheaders:4] While("Local/FMGL-5555551234#@from-internal-000010e3;1", "0") in new stack
    -- Jumping to priority 8
    -- Executing [s@func-apply-sipheaders:9] Return("Local/FMGL-5555551234#@from-internal-000010e3;1", "") in new stack
  == Spawn extension (from-internal, 398, 1) exited non-zero on 'Local/FMGL-5555551234#@from-internal-000010e3;1'
    -- Local/FMGL-5555551234#@from-internal-000010e3;1 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
    -- Called Local/FMPR-398@from-internal
    -- Executing [FMPR-398@from-internal:1] Set("Local/FMPR-398@from-internal-000010e2;2", "CDR_PROP(disable)=true") in new stack
    -- Executing [FMPR-398@from-internal:2] Set("Local/FMPR-398@from-internal-000010e2;2", "RingGroupMethod=") in new stack
    -- Executing [FMPR-398@from-internal:3] Set("Local/FMPR-398@from-internal-000010e2;2", "USE_CONFIRMATION=") in new stack
    -- Executing [FMPR-398@from-internal:4] Set("Local/FMPR-398@from-internal-000010e2;2", "RINGGROUP_INDEX=") in new stack
    -- Called Local/FMGL-5555551234#@from-internal
    -- Executing [FMPR-398@from-internal:5] Macro("Local/FMPR-398@from-internal-000010e2;2", "simple-dial,398,2") in new stack
    -- Executing [FMGL-5555551234#@from-internal:1] Set("Local/FMGL-5555551234#@from-internal-000010e3;2", "CDR_PROP(disable)=true") in new stack
    -- Executing [FMGL-5555551234#@from-internal:2] Set("Local/FMGL-5555551234#@from-internal-000010e3;2", "ENDLOOP=1496867038") in new stack
    -- Executing [s@macro-simple-dial:1] Set("Local/FMPR-398@from-internal-000010e2;2", "__EXTTOCALL=398") in new stack
    -- Executing [FMGL-5555551234#@from-internal:3] GotoIf("Local/FMGL-5555551234#@from-internal-000010e3;2", "0?dodnd") in new stack
    -- Executing [s@macro-simple-dial:2] Set("Local/FMPR-398@from-internal-000010e2;2", "RT=2") in new stack
    -- Executing [FMGL-5555551234#@from-internal:4] Wait("Local/FMGL-5555551234#@from-internal-000010e3;2", "1") in new stack
    -- Executing [s@macro-simple-dial:3] Set("Local/FMPR-398@from-internal-000010e2;2", "CFUEXT=") in new stack
    -- Executing [s@macro-simple-dial:4] Set("Local/FMPR-398@from-internal-000010e2;2", "CFBEXT=") in new stack
    -- Executing [s@macro-simple-dial:5] Set("Local/FMPR-398@from-internal-000010e2;2", "CWI_TMP=") in new stack
    -- Executing [s@macro-simple-dial:6] Macro("Local/FMPR-398@from-internal-000010e2;2", "dial-one,2,Ttr,398") in new stack
    -- Executing [s@macro-dial-one:1] Set("Local/FMPR-398@from-internal-000010e2;2", "DEXTEN=398") in new stack
    -- Executing [s@macro-dial-one:2] Set("Local/FMPR-398@from-internal-000010e2;2", "__CRM_SOURCE=260") in new stack
    -- Executing [s@macro-dial-one:3] ExecIf("Local/FMPR-398@from-internal-000010e2;2", "0?Set(EXTTOCALL=398)") in new stack
    -- Executing [s@macro-dial-one:4] Set("Local/FMPR-398@from-internal-000010e2;2", "DIALSTATUS_CW=") in new stack
    -- Executing [s@macro-dial-one:5] GosubIf("Local/FMPR-398@from-internal-000010e2;2", "0?screen,1()") in new stack
    -- Executing [s@macro-dial-one:6] GosubIf("Local/FMPR-398@from-internal-000010e2;2", "0?cf,1()") in new stack
    -- Executing [s@macro-dial-one:7] GotoIf("Local/FMPR-398@from-internal-000010e2;2", "1?skip1") in new stack
    -- Goto (macro-dial-one,s,10)
    -- Executing [s@macro-dial-one:10] GotoIf("Local/FMPR-398@from-internal-000010e2;2", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:11] GotoIf("Local/FMPR-398@from-internal-000010e2;2", "0?continue") in new stack
    -- Executing [s@macro-dial-one:12] Set("Local/FMPR-398@from-internal-000010e2;2", "EXTHASCW=ENABLED") in new stack
    -- Executing [s@macro-dial-one:13] GotoIf("Local/FMPR-398@from-internal-000010e2;2", "0?next1:cwinusebusy") in new stack
    -- Goto (macro-dial-one,s,25)
    -- Executing [s@macro-dial-one:25] GotoIf("Local/FMPR-398@from-internal-000010e2;2", "0?next3:continue") in new stack
    -- Goto (macro-dial-one,s,27)
    -- Executing [s@macro-dial-one:27] GotoIf("Local/FMPR-398@from-internal-000010e2;2", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:28] GosubIf("Local/FMPR-398@from-internal-000010e2;2", "1?dstring,1():dlocal,1()") in new stack
    -- Executing [dstring@macro-dial-one:1] Set("Local/FMPR-398@from-internal-000010e2;2", "DSTRING=") in new stack
    -- Executing [dstring@macro-dial-one:2] Set("Local/FMPR-398@from-internal-000010e2;2", "DEVICES=398") in new stack
    -- Executing [dstring@macro-dial-one:3] ExecIf("Local/FMPR-398@from-internal-000010e2;2", "0?Return()") in new stack
    -- Executing [dstring@macro-dial-one:4] ExecIf("Local/FMPR-398@from-internal-000010e2;2", "0?Set(DEVICES=98)") in new stack
    -- Executing [dstring@macro-dial-one:5] Set("Local/FMPR-398@from-internal-000010e2;2", "LOOPCNT=1") in new stack
    -- Executing [dstring@macro-dial-one:6] Set("Local/FMPR-398@from-internal-000010e2;2", "ITER=1") in new stack
    -- Executing [dstring@macro-dial-one:7] Set("Local/FMPR-398@from-internal-000010e2;2", "THISDIAL=") in new stack
    -- Executing [dstring@macro-dial-one:8] GosubIf("Local/FMPR-398@from-internal-000010e2;2", "1?zap2dahdi,1()") in new stack
    -- Executing [zap2dahdi@macro-dial-one:1] ExecIf("Local/FMPR-398@from-internal-000010e2;2", "1?Return()") in new stack
    -- Executing [dstring@macro-dial-one:9] GotoIf("Local/FMPR-398@from-internal-000010e2;2", "1?docheck") in new stack
    -- Goto (macro-dial-one,dstring,14)
    -- Executing [dstring@macro-dial-one:14] GotoIf("Local/FMPR-398@from-internal-000010e2;2", "1?skipset") in new stack
    -- Goto (macro-dial-one,dstring,16)
    -- Executing [dstring@macro-dial-one:16] Set("Local/FMPR-398@from-internal-000010e2;2", "ITER=2") in new stack
    -- Executing [dstring@macro-dial-one:17] GotoIf("Local/FMPR-398@from-internal-000010e2;2", "0?begin") in new stack
    -- Executing [dstring@macro-dial-one:18] ExecIf("Local/FMPR-398@from-internal-000010e2;2", "1?Return()") in new stack
    -- Executing [s@macro-dial-one:29] GotoIf("Local/FMPR-398@from-internal-000010e2;2", "1?nodial") in new stack
    -- Goto (macro-dial-one,s,57)
    -- Executing [s@macro-dial-one:57] ExecIf("Local/FMPR-398@from-internal-000010e2;2", "1?Set(DIALSTATUS=NOANSWER)") in new stack
    -- Executing [s@macro-dial-one:58] NoOp("Local/FMPR-398@from-internal-000010e2;2", "Returned from dial-one with nothing to call and DIALSTATUS: NOANSWER") in new stack
    -- Executing [s@macro-dial-one:59] MacroExit("Local/FMPR-398@from-internal-000010e2;2", "") in new stack
    -- Executing [s@macro-simple-dial:7] Set("Local/FMPR-398@from-internal-000010e2;2", "__CWIGNORE=") in new stack
    -- Executing [s@macro-simple-dial:8] Set("Local/FMPR-398@from-internal-000010e2;2", "PR_DIALSTATUS=NOANSWER") in new stack
    -- Executing [s@macro-simple-dial:9] GosubIf("Local/FMPR-398@from-internal-000010e2;2", "0?docfu,1()") in new stack
    -- Executing [s@macro-simple-dial:10] GosubIf("Local/FMPR-398@from-internal-000010e2;2", "0?docfb,1()") in new stack
    -- Executing [s@macro-simple-dial:11] Set("Local/FMPR-398@from-internal-000010e2;2", "DIALSTATUS=NOANSWER") in new stack
    -- Executing [s@macro-simple-dial:12] Goto("Local/FMPR-398@from-internal-000010e2;2", "s-NOANSWER,1") in new stack
    -- Goto (macro-simple-dial,s-NOANSWER,1)
    -- Executing [s-NOANSWER@macro-simple-dial:1] NoOp("Local/FMPR-398@from-internal-000010e2;2", "Extension is reporting s-NOANSWER") in new stack
    -- Executing [FMPR-398@from-internal:6] ExecIf("Local/FMPR-398@from-internal-000010e2;2", "0?Set(SHARED(FM_DND,SIP/260-0000ff0c)=DND)") in new stack
    -- Executing [FMPR-398@from-internal:7] Hangup("Local/FMPR-398@from-internal-000010e2;2", "") in new stack
  == Spawn extension (from-internal, FMPR-398, 7) exited non-zero on 'Local/FMPR-398@from-internal-000010e2;2'
    -- Executing [h@from-internal:1] Macro("Local/FMPR-398@from-internal-000010e2;2", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("Local/FMPR-398@from-internal-000010e2;2", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] ExecIf("Local/FMPR-398@from-internal-000010e2;2", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s@macro-hangupcall:4] Hangup("Local/FMPR-398@from-internal-000010e2;2", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Local/FMPR-398@from-internal-000010e2;2' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'Local/FMPR-398@from-internal-000010e2;2'
    -- Executing [FMGL-5555551234#@from-internal:5] GotoIf("Local/FMGL-5555551234#@from-internal-000010e3;2", "1?start") in new stack
    -- Goto (from-internal,FMGL-5555551234#,3)
    -- Executing [FMGL-5555551234#@from-internal:3] GotoIf("Local/FMGL-5555551234#@from-internal-000010e3;2", "0?dodnd") in new stack
    -- Executing [FMGL-5555551234#@from-internal:4] Wait("Local/FMGL-5555551234#@from-internal-000010e3;2", "1") in new stack
    -- Added extension '*992*5*386' priority -1 to restapps-device-hints
    -- Executing [FMGL-5555551234#@from-internal:5] GotoIf("Local/FMGL-5555551234#@from-internal-000010e3;2", "0?start") in new stack
    -- Executing [FMGL-5555551234#@from-internal:6] Set("Local/FMGL-5555551234#@from-internal-000010e3;2", "SHARED(FM_DND,SIP/260-0000ff0c)=") in new stack
    -- Executing [FMGL-5555551234#@from-internal:7] Macro("Local/FMGL-5555551234#@from-internal-000010e3;2", "dial,20,Ttr,5555551234#") in new stack
    -- Executing [s@macro-dial:1] NoOp("Local/FMGL-5555551234#@from-internal-000010e3;2", "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
    -- Executing [s@macro-dial:2] Set("Local/FMGL-5555551234#@from-internal-000010e3;2", "__CRM_SOURCE=260") in new stack
    -- Executing [s@macro-dial:3] ExecIf("Local/FMGL-5555551234#@from-internal-000010e3;2", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial:4] ExecIf("Local/FMGL-5555551234#@from-internal-000010e3;2", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial:5] ExecIf("Local/FMGL-5555551234#@from-internal-000010e3;2", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial:6] ExecIf("Local/FMGL-5555551234#@from-internal-000010e3;2", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [s@macro-dial:7] AGI("Local/FMGL-5555551234#@from-internal-000010e3;2", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi

The next post is the continuation from this call.

 dialparties.agi: Starting New Dialparties.agi
 dialparties.agi: Caller ID name is 'John Smith' number is '260'
 dialparties.agi: CW Ignore is: 
 dialparties.agi: CF Ignore is: 
 dialparties.agi: CW IN_USE/BUSY is: 1
 dialparties.agi: Methodology of ring is  'ringall'
    -- dialparties.agi: Added extension 5555551234# to extension map
    -- dialparties.agi: Extension 5555551234# cf is disabled
    -- dialparties.agi: Filtered ARG3: 5555551234
    -- <Local/FMGL-5555551234#@from-internal-000010e3;2>AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:10] NoOp("Local/FMGL-5555551234#@from-internal-000010e3;2", "Returned from dialparties with groups to dial") in new stack
    -- Executing [s@macro-dial:11] Set("Local/FMGL-5555551234#@from-internal-000010e3;2", "LOOPCNT=1") in new stack
    -- Executing [s@macro-dial:12] Set("Local/FMGL-5555551234#@from-internal-000010e3;2", "ITER=1") in new stack
    -- Executing [s@macro-dial:13] Set("Local/FMGL-5555551234#@from-internal-000010e3;2", "EXTTOCALL=5555551234") in new stack
    -- Executing [s@macro-dial:14] NoOp("Local/FMGL-5555551234#@from-internal-000010e3;2", "Working with 5555551234") in new stack
    -- Executing [s@macro-dial:15] ExecIf("Local/FMGL-5555551234#@from-internal-000010e3;2", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [s@macro-dial:16] ExecIf("Local/FMGL-5555551234#@from-internal-000010e3;2", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [s@macro-dial:17] Set("Local/FMGL-5555551234#@from-internal-000010e3;2", "ITER=2") in new stack
    -- Executing [s@macro-dial:18] GotoIf("Local/FMGL-5555551234#@from-internal-000010e3;2", "0?ndloopbegin") in new stack
    -- Executing [s@macro-dial:19] Macro("Local/FMGL-5555551234#@from-internal-000010e3;2", "dial-ringall-predial-hook,") in new stack
    -- Executing [s@macro-dial-ringall-predial-hook:1] MacroExit("Local/FMGL-5555551234#@from-internal-000010e3;2", "") in new stack
    -- Executing [s@macro-dial:20] Dial("Local/FMGL-5555551234#@from-internal-000010e3;2", "Local/5555551234@from-internal/n,20,TtrM(auto-blkvm)b(func-apply-sipheaders^s^1),") in new stack
    -- Local/5555551234@from-internal-000010e4;1 Internal Gosub(func-apply-sipheaders,s,1) start
    -- Executing [s@func-apply-sipheaders:1] ExecIf("Local/5555551234@from-internal-000010e4;1", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
    -- Executing [s@func-apply-sipheaders:2] NoOp("Local/5555551234@from-internal-000010e4;1", "Applying SIP Headers to channel") in new stack
    -- Executing [s@func-apply-sipheaders:3] Set("Local/5555551234@from-internal-000010e4;1", "SIPHEADERKEYS=") in new stack
    -- Executing [s@func-apply-sipheaders:4] While("Local/5555551234@from-internal-000010e4;1", "0") in new stack
    -- Jumping to priority 8
    -- Executing [s@func-apply-sipheaders:9] Return("Local/5555551234@from-internal-000010e4;1", "") in new stack
  == Spawn extension (from-internal, FMGL-5555551234#, 1) exited non-zero on 'Local/5555551234@from-internal-000010e4;1'
    -- Local/5555551234@from-internal-000010e4;1 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
    -- Called Local/5555551234@from-internal/n
    -- Local/FMGL-5555551234#@from-internal-000010e3;1 is ringing
    -- Executing [5555551234@from-internal:1] Macro("Local/5555551234@from-internal-000010e4;2", "user-callerid,LIMIT") in new stack
    -- Executing [s@macro-user-callerid:1] Set("Local/5555551234@from-internal-000010e4;2", "TOUCH_MONITOR=1496867038.122491") in new stack
    -- Executing [s@macro-user-callerid:2] Set("Local/5555551234@from-internal-000010e4;2", "AMPUSER=260") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("Local/5555551234@from-internal-000010e4;2", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("Local/5555551234@from-internal-000010e4;2", "1?Set(REALCALLERIDNUM=260)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("Local/5555551234@from-internal-000010e4;2", "AMPUSER=260") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("Local/5555551234@from-internal-000010e4;2", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:7] Set("Local/5555551234@from-internal-000010e4;2", "AMPUSERCIDNAME=John Smith") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("Local/5555551234@from-internal-000010e4;2", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("Local/5555551234@from-internal-000010e4;2", "AMPUSERCID=260") in new stack
    -- Executing [s@macro-user-callerid:10] Set("Local/5555551234@from-internal-000010e4;2", "__DIAL_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-user-callerid:11] Set("Local/5555551234@from-internal-000010e4;2", "CALLERID(all)="John Smith" <260>") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("Local/5555551234@from-internal-000010e4;2", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:13] ExecIf("Local/5555551234@from-internal-000010e4;2", "1?Set(GROUP(concurrency_limit)=260)") in new stack
    -- Executing [s@macro-user-callerid:14] ExecIf("Local/5555551234@from-internal-000010e4;2", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:15] GotoIf("Local/5555551234@from-internal-000010e4;2", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,29)
    -- Executing [s@macro-user-callerid:29] Set("Local/5555551234@from-internal-000010e4;2", "CALLERID(number)=260") in new stack
    -- Executing [s@macro-user-callerid:30] Set("Local/5555551234@from-internal-000010e4;2", "CALLERID(name)=John Smith") in new stack
    -- Executing [s@macro-user-callerid:31] GotoIf("Local/5555551234@from-internal-000010e4;2", "0?cnum") in new stack
    -- Executing [s@macro-user-callerid:32] Set("Local/5555551234@from-internal-000010e4;2", "CDR(cnam)=John Smith") in new stack
    -- Executing [s@macro-user-callerid:33] Set("Local/5555551234@from-internal-000010e4;2", "CDR(cnum)=260") in new stack
    -- Executing [s@macro-user-callerid:34] Set("Local/5555551234@from-internal-000010e4;2", "CHANNEL(language)=en") in new stack
    -- Executing [5555551234@from-internal:2] Set("Local/5555551234@from-internal-000010e4;2", "ROUTEUSER=260") in new stack
    -- Executing [5555551234@from-internal:3] Set("Local/5555551234@from-internal-000010e4;2", "ROUTEUSER=260") in new stack
    -- Executing [5555551234@from-internal:4] GotoIf("Local/5555551234@from-internal-000010e4;2", "1?notblind") in new stack
    -- Goto (from-internal,5555551234,7)
    -- Executing [5555551234@from-internal:7] GotoIf("Local/5555551234@from-internal-000010e4;2", "1?restrictedroute-453e406dcee4d18174d4ff623f52dcd8,5555551234,2:outbound-allroutes,5555551234,2") in new stack
    -- Goto (restrictedroute-453e406dcee4d18174d4ff623f52dcd8,5555551234,2)
    -- Executing [5555551234@restrictedroute-453e406dcee4d18174d4ff623f52dcd8:2] Gosub("Local/5555551234@from-internal-000010e4;2", "sub-record-check,s,1(out,5555551234,dontcare)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("Local/5555551234@from-internal-000010e4;2", "3?initialized") in new stack
    -- Goto (sub-record-check,s,10)
    -- Executing [s@sub-record-check:10] NoOp("Local/5555551234@from-internal-000010e4;2", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("Local/5555551234@from-internal-000010e4;2", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("Local/5555551234@from-internal-000010e4;2", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("Local/5555551234@from-internal-000010e4;2", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("Local/5555551234@from-internal-000010e4;2", "3?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("Local/5555551234@from-internal-000010e4;2", "1?sub-record-check,out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] NoOp("Local/5555551234@from-internal-000010e4;2", "Outbound Recording Check from 260 to 5555551234") in new stack
    -- Executing [out@sub-record-check:2] Set("Local/5555551234@from-internal-000010e4;2", "RECMODE=dontcare") in new stack
    -- Executing [out@sub-record-check:3] ExecIf("Local/5555551234@from-internal-000010e4;2", "1?Goto(routewins)") in new stack
    -- Goto (sub-record-check,out,7)
    -- Executing [out@sub-record-check:7] Gosub("Local/5555551234@from-internal-000010e4;2", "recordcheck,1(dontcare,out,5555551234)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("Local/5555551234@from-internal-000010e4;2", "Starting recording check against dontcare") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("Local/5555551234@from-internal-000010e4;2", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [recordcheck@sub-record-check:3] Return("Local/5555551234@from-internal-000010e4;2", "") in new stack
    -- Executing [out@sub-record-check:8] Return("Local/5555551234@from-internal-000010e4;2", "") in new stack
    -- Executing [5555551234@restrictedroute-453e406dcee4d18174d4ff623f52dcd8:3] ExecIf("Local/5555551234@from-internal-000010e4;2", "0 ?Set(CDR(accountcode)=)") in new stack
    -- Executing [5555551234@restrictedroute-453e406dcee4d18174d4ff623f52dcd8:4] Set("Local/5555551234@from-internal-000010e4;2", "MOHCLASS=default") in new stack
    -- Executing [5555551234@restrictedroute-453e406dcee4d18174d4ff623f52dcd8:5] ExecIf("Local/5555551234@from-internal-000010e4;2", "0?Set(TRUNKCIDOVERRIDE=5559876543)") in new stack
    -- Executing [5555551234@restrictedroute-453e406dcee4d18174d4ff623f52dcd8:6] Set("Local/5555551234@from-internal-000010e4;2", "_NODEST=") in new stack
    -- Executing [5555551234@restrictedroute-453e406dcee4d18174d4ff623f52dcd8:7] Macro("Local/5555551234@from-internal-000010e4;2", "dialout-trunk,2,5555551234,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("Local/5555551234@from-internal-000010e4;2", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("Local/5555551234@from-internal-000010e4;2", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("Local/5555551234@from-internal-000010e4;2", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("Local/5555551234@from-internal-000010e4;2", "DIAL_NUMBER=5555551234") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("Local/5555551234@from-internal-000010e4;2", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("Local/5555551234@from-internal-000010e4;2", "OUTBOUND_GROUP=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("Local/5555551234@from-internal-000010e4;2", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("Local/5555551234@from-internal-000010e4;2", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("Local/5555551234@from-internal-000010e4;2", "DIAL_TRUNK_OPTIONS=Tt") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("Local/5555551234@from-internal-000010e4;2", "outbound-callerid,2") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("Local/5555551234@from-internal-000010e4;2", "0?Set(CALLERPRES(name-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("Local/5555551234@from-internal-000010e4;2", "0?Set(CALLERPRES(num-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:3] ExecIf("Local/5555551234@from-internal-000010e4;2", "0?Set(REALCALLERIDNUM=260)") in new stack
    -- Executing [s@macro-outbound-callerid:4] GotoIf("Local/5555551234@from-internal-000010e4;2", "0?normcid") in new stack
    -- Executing [s@macro-outbound-callerid:5] Set("Local/5555551234@from-internal-000010e4;2", "USEROUTCID=260") in new stack
    -- Executing [s@macro-outbound-callerid:6] GotoIf("Local/5555551234@from-internal-000010e4;2", "0?bypass") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("Local/5555551234@from-internal-000010e4;2", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("Local/5555551234@from-internal-000010e4;2", "EMERGENCYCID=6572172960") in new stack
    -- Executing [s@macro-outbound-callerid:9] Set("Local/5555551234@from-internal-000010e4;2", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:10] GotoIf("Local/5555551234@from-internal-000010e4;2", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,15)
    -- Executing [s@macro-outbound-callerid:15] ExecIf("Local/5555551234@from-internal-000010e4;2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:16] ExecIf("Local/5555551234@from-internal-000010e4;2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:17] ExecIf("Local/5555551234@from-internal-000010e4;2", "1?Set(CALLERID(all)=123)") in new stack
    -- Executing [s@macro-outbound-callerid:18] ExecIf("Local/5555551234@from-internal-000010e4;2", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:19] ExecIf("Local/5555551234@from-internal-000010e4;2", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:20] Set("Local/5555551234@from-internal-000010e4;2", "CDR(outbound_cnum)=123") in new stack
    -- Executing [s@macro-outbound-callerid:21] Set("Local/5555551234@from-internal-000010e4;2", "CDR(outbound_cnam)=") in new stack
[2017-06-07 13:23:58] WARNING[2269]: func_cdr.c:383 cdr_write_callback: CDR requires a value (CDR(variable)=value)
    -- Executing [s@macro-dialout-trunk:12] GosubIf("Local/5555551234@from-internal-000010e4;2", "0?sub-flp-2,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("Local/5555551234@from-internal-000010e4;2", "OUTNUM=5555551234") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("Local/5555551234@from-internal-000010e4;2", "custom=SIP/fpbx-1-ASdFgHJkLzXCV") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("Local/5555551234@from-internal-000010e4;2", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("Local/5555551234@from-internal-000010e4;2", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:17] Macro("Local/5555551234@from-internal-000010e4;2", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("Local/5555551234@from-internal-000010e4;2", "") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("Local/5555551234@from-internal-000010e4;2", "0?skipcrm") in new stack
    -- Executing [s@macro-dialout-trunk:19] Set("Local/5555551234@from-internal-000010e4;2", "__CRM_DIRECTION=OUTBOUND") in new stack
    -- Executing [s@macro-dialout-trunk:20] Set("Local/5555551234@from-internal-000010e4;2", "__CRM_DESTINATION=5555551234") in new stack
    -- Executing [s@macro-dialout-trunk:21] Set("Local/5555551234@from-internal-000010e4;2", "__CRM_SOURCE=260") in new stack
    -- Executing [s@macro-dialout-trunk:22] AGI("Local/5555551234@from-internal-000010e4;2", "sangomacrm.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
    -- <Local/5555551234@from-internal-000010e4;2>AGI Script sangomacrm.agi completed, returning 0
    -- Executing [s@macro-dialout-trunk:23] Set("Local/5555551234@from-internal-000010e4;2", "CHANNEL(hangup_handler_push)=crm-hangup,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:24] NoOp("Local/5555551234@from-internal-000010e4;2", "CRM Finished") in new stack
    -- Executing [s@macro-dialout-trunk:25] GotoIf("Local/5555551234@from-internal-000010e4;2", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:26] ExecIf("Local/5555551234@from-internal-000010e4;2", "1?Set(CONNECTEDLINE(num,i)=5555551234)") in new stack
    -- Executing [s@macro-dialout-trunk:27] ExecIf("Local/5555551234@from-internal-000010e4;2", "1?Set(CONNECTEDLINE(name,i)=CID:123)") in new stack
    -- Executing [s@macro-dialout-trunk:28] ExecIf("Local/5555551234@from-internal-000010e4;2", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)123)") in new stack
    -- Executing [s@macro-dialout-trunk:29] GotoIf("Local/5555551234@from-internal-000010e4;2", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:30] Dial("Local/5555551234@from-internal-000010e4;2", "SIP/fpbx-1-ASdFgHJkLzXCV/5555551234,300,Tt") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/fpbx-1-ASdFgHJkLzXCV/5555551234
    -- SIP/fpbx-1-ASdFgHJkLzXCV-0000ff0d is making progress passing it to Local/5555551234@from-internal-000010e4;2
    -- Local/5555551234@from-internal-000010e4;1 is making progress passing it to Local/FMGL-5555551234#@from-internal-000010e3;2
    -- Connected line update to SIP/260-0000ff0c prevented.

I hope the above helps to clarify the issue.

Trunks have no outbound CID and CID Options is set to Allow Any CID.
Outbound Routes Override Extension CID is set to NO.

Thank you,

Fabian.

I agree with @Jas_williams

Hello Luke,

I understand. However, I called SIPSTATION and they mentioned that they allowed foreign caller ID’s, and that they had not made any change.

I also tested using 123 on my extension’s Follow Me Fixed Caller ID Value, and the number 123 was passed on to my cell phone as the caller ID number.