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 [[email protected]:15] ExecIf("Local/[email protected];2", "0?Set(CALLERID(all)=)") in new stack
-- Executing [[email protected]:16] ExecIf("Local/[email protected];2", "0?Set(CALLERID(all)=)") in new stack
-- Executing [[email protected]:17] ExecIf("Local/[email protected];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 [[email protected]:15] ExecIf("Local/[email protected];2", "0?Set(CALLERID(all)=)") in new stack
-- Executing [[email protected]:16] ExecIf("Local/[email protected];2", "0?Set(CALLERID(all)=)") in new stack
-- Executing [[email protected]:17] ExecIf("Local/[email protected];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 [[email protected]:1] GotoIf("SIP/260-0000fefa", "0?ext-local,398,1:followme-check,398,1") in new stack
    -- Goto (followme-check,398,1)
    -- Executing [[email protected]:1] Gosub("SIP/260-0000fefa", "followme-sub,398,1()") in new stack
    -- Executing [[email protected]:1] Macro("SIP/260-0000fefa", "user-callerid,") in new stack
    -- Executing [[email protected]:1] Set("SIP/260-0000fefa", "TOUCH_MONITOR=1496866939.122058") in new stack
    -- Executing [[email protected]:2] Set("SIP/260-0000fefa", "AMPUSER=260") in new stack
    -- Executing [[email protected]:3] GotoIf("SIP/260-0000fefa", "0?report") in new stack
    -- Executing [[email protected]:4] ExecIf("SIP/260-0000fefa", "1?Set(REALCALLERIDNUM=260)") in new stack
    -- Executing [[email protected]:5] Set("SIP/260-0000fefa", "AMPUSER=260") in new stack
    -- Executing [[email protected]:6] GotoIf("SIP/260-0000fefa", "0?limit") in new stack
    -- Executing [[email protected]:7] Set("SIP/260-0000fefa", "AMPUSERCIDNAME=John Smith") in new stack
    -- Executing [[email protected]:8] GotoIf("SIP/260-0000fefa", "0?report") in new stack
    -- Executing [[email protected]:9] Set("SIP/260-0000fefa", "AMPUSERCID=260") in new stack
    -- Executing [[email protected]:10] Set("SIP/260-0000fefa", "__DIAL_OPTIONS=Ttr") in new stack
    -- Executing [[email protected]:11] Set("SIP/260-0000fefa", "CALLERID(all)="John Smith" <260>") in new stack
    -- Executing [[email protected]:12] GotoIf("SIP/260-0000fefa", "0?limit") in new stack
    -- Executing [[email protected]:13] ExecIf("SIP/260-0000fefa", "0?Set(GROUP(concurrency_limit)=260)") in new stack
    -- Executing [[email protected]:14] ExecIf("SIP/260-0000fefa", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [[email protected]:15] GotoIf("SIP/260-0000fefa", "0?continue") in new stack
    -- Executing [[email protected]:16] ExecIf("SIP/260-0000fefa", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
    -- Executing [[email protected]:17] Set("SIP/260-0000fefa", "__TTL=64") in new stack
    -- Executing [[email protected]:18] GotoIf("SIP/260-0000fefa", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,29)
    -- Executing [[email protected]:29] Set("SIP/260-0000fefa", "CALLERID(number)=260") in new stack
    -- Executing [[email protected]:30] Set("SIP/260-0000fefa", "CALLERID(name)=John Smith") in new stack
    -- Executing [[email protected]:31] GotoIf("SIP/260-0000fefa", "0?cnum") in new stack
    -- Executing [[email protected]:32] Set("SIP/260-0000fefa", "CDR(cnam)=John Smith") in new stack
    -- Executing [[email protected]:33] Set("SIP/260-0000fefa", "CDR(cnum)=260") in new stack
    -- Executing [[email protected]:34] Set("SIP/260-0000fefa", "CHANNEL(language)=en") in new stack
    -- Executing [[email protected]:2] Set("SIP/260-0000fefa", "DIAL_OPTIONS=TtrI") in new stack
    -- Executing [[email protected]:3] Set("SIP/260-0000fefa", "CONNECTEDLINE(num,i)=398") in new stack
    -- Executing [[email protected]:4] Gosub("SIP/260-0000fefa", "sub-presencestate-display,s,1(398)") in new stack
    -- Executing [[email protected]:1] Goto("SIP/260-0000fefa", "state-not_set,1") in new stack
    -- Goto (sub-presencestate-display,state-not_set,1)
    -- Executing [[email protected]:1] Set("SIP/260-0000fefa", "PRESENCESTATE_DISPLAY=") in new stack
    -- Executing [[email protected]:2] Return("SIP/260-0000fefa", "") in new stack
    -- Executing [[email protected]:5] Set("SIP/260-0000fefa", "CONNECTEDLINE(name)=John Smith W") in new stack
    -- Executing [[email protected]:6] Set("SIP/260-0000fefa", "FM_DIALSTATUS=NOT_INUSE") in new stack
    -- Executing [[email protected]:7] Set("SIP/260-0000fefa", "__EXTTOCALL=398") in new stack
    -- Executing [[email protected]:8] Set("SIP/260-0000fefa", "__PICKUPMARK=398") in new stack
    -- Executing [[email protected]:9] Macro("SIP/260-0000fefa", "blkvm-setifempty,") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/260-0000fefa", "1?init") in new stack
    -- Goto (macro-blkvm-setifempty,s,4)
    -- Executing [[email protected]:4] Set("SIP/260-0000fefa", "__BLKVM_CHANNEL=SIP/260-0000fefa") in new stack
    -- Executing [[email protected]:5] Set("SIP/260-0000fefa", "SHARED(BLKVM,SIP/260-0000fefa)=TRUE") in new stack
    -- Executing [[email protected]:6] Set("SIP/260-0000fefa", "GOSUB_RETVAL=TRUE") in new stack
    -- Executing [[email protected]:7] MacroExit("SIP/260-0000fefa", "") in new stack
    -- Executing [[email protected]:10] GotoIf("SIP/260-0000fefa", "1?skipov") in new stack
    -- Goto (followme-sub,398,13)
    -- Executing [[email protected]:13] Set("SIP/260-0000fefa", "RRNODEST=") in new stack
    -- Executing [[email protected]:14] Set("SIP/260-0000fefa", "__NODEST=398") in new stack
    -- Executing [[email protected]:15] GosubIf("SIP/260-0000fefa", "0?sub-fmsetcid,s,1()") in new stack
    -- Executing [[email protected]:16] GotoIf("SIP/260-0000fefa", "1?skipprepend") in new stack
    -- Goto (followme-sub,398,18)
    -- Executing [[email protected]:18] Set("SIP/260-0000fefa", "RecordMethod=Group") in new stack
    -- Executing [[email protected]:19] Gosub("SIP/260-0000fefa", "sub-record-check,s,1(exten,398,)") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/260-0000fefa", "0?initialized") in new stack
    -- Executing [[email protected]:2] Set("SIP/260-0000fefa", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [[email protected]:3] Set("SIP/260-0000fefa", "NOW=1496866939") in new stack
    -- Executing [[email protected]:4] Set("SIP/260-0000fefa", "__DAY=07") in new stack
    -- Executing [[email protected]:5] Set("SIP/260-0000fefa", "__MONTH=06") in new stack
    -- Executing [[email protected]:6] Set("SIP/260-0000fefa", "__YEAR=2017") in new stack
    -- Executing [[email protected]:7] Set("SIP/260-0000fefa", "__TIMESTR=20170607-132219") in new stack
    -- Executing [[email protected]:8] Set("SIP/260-0000fefa", "__FROMEXTEN=260") in new stack
    -- Executing [[email protected]:9] Set("SIP/260-0000fefa", "__MON_FMT=wav") in new stack
    -- Executing [[email protected]:10] NoOp("SIP/260-0000fefa", "Recordings initialized") in new stack
    -- Executing [[email protected]:11] ExecIf("SIP/260-0000fefa", "1?Set(ARG3=dontcare)") in new stack
    -- Executing [[email protected]:12] Set("SIP/260-0000fefa", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [[email protected]:13] ExecIf("SIP/260-0000fefa", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [[email protected]:14] GotoIf("SIP/260-0000fefa", "5?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [[email protected]:17] GotoIf("SIP/260-0000fefa", "1?sub-record-check,exten,1") in new stack
    -- Goto (sub-record-check,exten,1)
    -- Executing [[email protected]:1] NoOp("SIP/260-0000fefa", "Exten Recording Check between 260 and 398") in new stack
    -- Executing [[email protected]:2] Set("SIP/260-0000fefa", "CALLTYPE=internal") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/260-0000fefa", "0?Set(CALLTYPE=)") in new stack
    -- Executing [[email protected]:4] Set("SIP/260-0000fefa", "CALLEE=dontcare") in new stack
    -- Executing [[email protected]:5] ExecIf("SIP/260-0000fefa", "0?Set(CALLEE=dontcare)") in new stack
    -- Executing [[email protected]:6] GotoIf("SIP/260-0000fefa", "0?callee") in new stack
    -- Executing [[email protected]:7] GotoIf("SIP/260-0000fefa", "1?caller") in new stack
    -- Goto (sub-record-check,exten,13)
    -- Executing [[email protected]:13] Set("SIP/260-0000fefa", "RECMODE=dontcare") in new stack
    -- Executing [[email protected]:14] ExecIf("SIP/260-0000fefa", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [[email protected]:15] ExecIf("SIP/260-0000fefa", "1?Set(RECMODE=dontcare)") in new stack
    -- Executing [[email protected]:16] Gosub("SIP/260-0000fefa", "recordcheck,1(dontcare,internal,398)") in new stack
    -- Executing [[email protected]:1] NoOp("SIP/260-0000fefa", "Starting recording check against dontcare") in new stack
    -- Executing [[email protected]:2] Goto("SIP/260-0000fefa", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [[email protected]:3] Return("SIP/260-0000fefa", "") in new stack
    -- Executing [[email protected]:17] Return("SIP/260-0000fefa", "") in new stack
    -- Executing [[email protected]:20] GotoIf("SIP/260-0000fefa", "1?skipdring") in new stack
    -- Goto (followme-sub,398,23)
    -- Executing [[email protected]:23] Set("SIP/260-0000fefa", "STRATEGY=ringallv2-prim") in new stack
    -- Executing [[email protected]:24] Set("SIP/260-0000fefa", "__RVOL=") in new stack
    -- Executing [[email protected]llowme-sub:25] GotoIf("SIP/260-0000fefa", "1?skipsimple") in new stack
    -- Goto (followme-sub,398,28)
    -- Executing [[email protected]:28] Set("SIP/260-0000fefa", "RingGroupMethod=ringallv2-prim") in new stack
    -- Executing [[email protected]:29] Set("SIP/260-0000fefa", "_FMGRP=398") in new stack
    -- Executing [[email protected]:30] GotoIf("SIP/260-0000fefa", "1?DIALGRP") in new stack
    -- Goto (followme-sub,398,34)
    -- Executing [[email protected]:34] ExecIf("SIP/260-0000fefa", "1?Set(DOPTS=TtrI):Set(DOPTS=m(Ring)TtI)") in new stack
    -- Executing [[email protected]:35] GotoIf("SIP/260-0000fefa", "0?doconfirm") in new stack
    -- Executing [[email protected]:36] GotoIf("SIP/260-0000fefa", "1?ringallv21") in new stack
    -- Goto (followme-sub,398,39)
    -- Executing [[email protected]:39] Macro("SIP/260-0000fefa", "dial,20,TtrI,5551234567#") in new stack
    -- Executing [[email protected]:1] NoOp("SIP/260-0000fefa", "Blind Transfer: , Attended Transfer: , User: 260, Alert Info: ") in new stack
    -- Executing [[email protected]:2] Set("SIP/260-0000fefa", "__CRM_SOURCE=260") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/260-0000fefa", "1?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:4] ExecIf("SIP/260-0000fefa", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:5] ExecIf("SIP/260-0000fefa", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:6] ExecIf("SIP/260-0000fefa", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [[email protected]: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 [[email protected]:10] NoOp("SIP/260-0000fefa", "Returned from dialparties with groups to dial") in new stack
    -- Executing [[email protected]:11] Set("SIP/260-0000fefa", "LOOPCNT=2") in new stack
    -- Executing [[email protected]:12] Set("SIP/260-0000fefa", "ITER=1") in new stack
    -- Executing [[email protected]:13] Set("SIP/260-0000fefa", "EXTTOCALL=398") in new stack
    -- Executing [[email protected]:14] NoOp("SIP/260-0000fefa", "Working with 398") in new stack
    -- Executing [[email protected]:15] ExecIf("SIP/260-0000fefa", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [[email protected]:16] ExecIf("SIP/260-0000fefa", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [[email protected]:17] Set("SIP/260-0000fefa", "ITER=2") in new stack
    -- Executing [[email protected]:18] GotoIf("SIP/260-0000fefa", "1?ndloopbegin") in new stack
    -- Goto (macro-dial,s,13)
    -- Executing [[email protected]:13] Set("SIP/260-0000fefa", "EXTTOCALL=5551234567") in new stack
    -- Executing [[email protected]:14] NoOp("SIP/260-0000fefa", "Working with 5551234567") in new stack
    -- Executing [[email protected]:15] ExecIf("SIP/260-0000fefa", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [[email protected]:16] ExecIf("SIP/260-0000fefa", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [[email protected]:17] Set("SIP/260-0000fefa", "ITER=3") in new stack
    -- Executing [[email protected]:18] GotoIf("SIP/260-0000fefa", "0?ndloopbegin") in new stack
    -- Executing [[email protected]:19] Macro("SIP/260-0000fefa", "dial-ringall-predial-hook,") in new stack
    -- Executing [[email protected]:1] MacroExit("SIP/260-0000fefa", "") in new stack
    -- Executing [[email protected]:20] Dial("SIP/260-0000fefa", "Local/[email protected]&Local/FMGL-5551234567#@from-internal,22,TtrIM(auto-blkvm)b(func-apply-sipheaders^s^1),") in new stack
    -- Local/[email protected];1 Internal Gosub(func-apply-sipheaders,s,1) start
    -- Executing [[email protected]:1] ExecIf("Local/[email protected];1", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
    -- Executing [[email protected]:2] NoOp("Local/[email protected];1", "Applying SIP Headers to channel") in new stack
    -- Executing [[email protected]:3] Set("Local/[email protected];1", "SIPHEADERKEYS=") in new stack
    -- Executing [[email protected]:4] While("Local/[email protected];1", "0") in new stack
    -- Jumping to priority 8
    -- Executing [[email protected]:9] Return("Local/[email protected];1", "") in new stack
  == Spawn extension (from-internal, 398, 1) exited non-zero on 'Local/[email protected];1'
    -- Local/[email protected];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 [[email protected]:1] ExecIf("Local/FMGL-5551234567#@from-internal-000010e0;1", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
    -- Executing [[email protected]:2] NoOp("Local/FMGL-5551234567#@from-internal-000010e0;1", "Applying SIP Headers to channel") in new stack
    -- Executing [[email protected]:3] Set("Local/FMGL-5551234567#@from-internal-000010e0;1", "SIPHEADERKEYS=") in new stack
    -- Executing [[email protected]:4] While("Local/FMGL-5551234567#@from-internal-000010e0;1", "0") in new stack
    -- Jumping to priority 8
    -- Executing [[email protected]: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/[email protected]
    -- Executing [[email protected]:1] Set("Local/[email protected];2", "CDR_PROP(disable)=true") in new stack
    -- Executing [[email protected]:2] Set("Local/[email protected];2", "RingGroupMethod=") in new stack
    -- Executing [[email protected]:3] Set("Local/[email protected];2", "USE_CONFIRMATION=") in new stack
    -- Called Local/FMGL-5551234567#@from-internal
    -- Executing [[email protected]:4] Set("Local/[email protected];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 [[email protected]:5] Macro("Local/[email protected];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 [[email protected]:1] Set("Local/[email protected];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 [[email protected]:2] Set("Local/[email protected];2", "RT=2") in new stack
    -- Executing [[email protected]:3] Set("Local/[email protected];2", "CFUEXT=") in new stack
    -- Executing [[email protected]:4] Set("Local/[email protected];2", "CFBEXT=") in new stack
    -- Executing [[email protected]:5] Set("Local/[email protected];2", "CWI_TMP=") in new stack
    -- Executing [[email protected]:6] Macro("Local/[email protected];2", "dial-one,2,Ttr,398") in new stack
    -- Executing [[email protected]:1] Set("Local/[email protected];2", "DEXTEN=398") in new stack
    -- Executing [[email protected]:2] Set("Local/[email protected];2", "__CRM_SOURCE=260") in new stack
    -- Executing [[email protected]:3] ExecIf("Local/[email protected];2", "0?Set(EXTTOCALL=398)") in new stack
    -- Executing [[email protected]:4] Set("Local/[email protected];2", "DIALSTATUS_CW=") in new stack
    -- Executing [[email protected]:5] GosubIf("Local/[email protected];2", "0?screen,1()") in new stack
    -- Executing [[email protected]:6] GosubIf("Local/[email protected];2", "0?cf,1()") in new stack
    -- Executing [[email protected]:7] GotoIf("Local/[email protected];2", "1?skip1") in new stack
    -- Goto (macro-dial-one,s,10)
    -- Executing [[email protected]:10] GotoIf("Local/[email protected];2", "0?nodial") in new stack
    -- Executing [[email protected]:11] GotoIf("Local/[email protected];2", "0?continue") in new stack
    -- Executing [[email protected]:12] Set("Local/[email protected];2", "EXTHASCW=ENABLED") in new stack
    -- Executing [[email protected]:13] GotoIf("Local/[email protected];2", "0?next1:cwinusebusy") in new stack
    -- Goto (macro-dial-one,s,25)
    -- Executing [[email protected]:25] GotoIf("Local/[email protected];2", "0?next3:continue") in new stack
    -- Goto (macro-dial-one,s,27)
    -- Executing [[email protected]:27] GotoIf("Local/[email protected];2", "0?nodial") in new stack
    -- Executing [[email protected]:28] GosubIf("Local/[email protected];2", "1?dstring,1():dlocal,1()") in new stack
    -- Executing [[email protected]:1] Set("Local/[email protected];2", "DSTRING=") in new stack
    -- Executing [[email protected]:2] Set("Local/[email protected];2", "DEVICES=398") in new stack
    -- Executing [[email protected]:3] ExecIf("Local/[email protected];2", "0?Return()") in new stack
    -- Executing [[email protected]:4] ExecIf("Local/[email protected];2", "0?Set(DEVICES=98)") in new stack
    -- Executing [[email protected]:5] Set("Local/[email protected];2", "LOOPCNT=1") in new stack
    -- Executing [[email protected]:6] Set("Local/[email protected];2", "ITER=1") in new stack
    -- Executing [[email protected]:7] Set("Local/[email protected];2", "THISDIAL=") in new stack
    -- Executing [[email protected]:8] GosubIf("Local/[email protected];2", "1?zap2dahdi,1()") in new stack
    -- Executing [[email protected]:1] ExecIf("Local/[email protected];2", "1?Return()") in new stack
    -- Executing [[email protected]:9] GotoIf("Local/[email protected];2", "1?docheck") in new stack
    -- Goto (macro-dial-one,dstring,14)
    -- Executing [[email protected]:14] GotoIf("Local/[email protected];2", "1?skipset") in new stack
    -- Goto (macro-dial-one,dstring,16)
    -- Executing [[email protected]:16] Set("Local/[email protected];2", "ITER=2") in new stack
    -- Executing [[email protected]:17] GotoIf("Local/[email protected];2", "0?begin") in new stack
    -- Executing [[email protected]:18] ExecIf("Local/[email protected];2", "1?Return()") in new stack
    -- Executing [[email protected]:29] GotoIf("Local/[email protected];2", "1?nodial") in new stack
    -- Goto (macro-dial-one,s,57)
    -- Executing [[email protected]:57] ExecIf("Local/[email protected];2", "1?Set(DIALSTATUS=NOANSWER)") in new stack
    -- Executing [[email protected]:58] NoOp("Local/[email protected];2", "Returned from dial-one with nothing to call and DIALSTATUS: NOANSWER") in new stack
    -- Executing [[email protected]:59] MacroExit("Local/[email protected];2", "") in new stack
    -- Executing [[email protected]:7] Set("Local/[email protected];2", "__CWIGNORE=") in new stack
    -- Executing [[email protected]:8] Set("Local/[email protected];2", "PR_DIALSTATUS=NOANSWER") in new stack
    -- Executing [[email protected]:9] GosubIf("Local/[email protected];2", "0?docfu,1()") in new stack
    -- Executing [[email protected]:10] GosubIf("Local/[email protected];2", "0?docfb,1()") in new stack
    -- Executing [[email protected]:11] Set("Local/[email protected];2", "DIALSTATUS=NOANSWER") in new stack
    -- Executing [[email protected]:12] Goto("Local/[email protected];2", "s-NOANSWER,1") in new stack
    -- Goto (macro-simple-dial,s-NOANSWER,1)
    -- Executing [[email protected]:1] NoOp("Local/[email protected];2", "Extension is reporting s-NOANSWER") in new stack
    -- Executing [[email protected]:6] ExecIf("Local/[email protected];2", "0?Set(SHARED(FM_DND,SIP/260-0000fefa)=DND)") in new stack
    -- Executing [[email protected]:7] Hangup("Local/[email protected];2", "") in new stack
  == Spawn extension (from-internal, FMPR-398, 7) exited non-zero on 'Local/[email protected];2'
    -- Executing [[email protected]:1] Macro("Local/[email protected];2", "hangupcall") in new stack
    -- Executing [[email protected]:1] GotoIf("Local/[email protected];2", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [[email protected]:3] ExecIf("Local/[email protected];2", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [[email protected]:4] Hangup("Local/[email protected];2", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Local/[email protected];2' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'Local/[email protected];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 [[email protected]:1] NoOp("Local/FMGL-5551234567#@from-internal-000010e0;2", "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
    -- Executing [[email protected]:2] Set("Local/FMGL-5551234567#@from-internal-000010e0;2", "__CRM_SOURCE=260") in new stack
    -- Executing [[email protected]:3] ExecIf("Local/FMGL-5551234567#@from-internal-000010e0;2", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:4] ExecIf("Local/FMGL-5551234567#@from-internal-000010e0;2", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:5] ExecIf("Local/FMGL-5551234567#@from-internal-000010e0;2", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:6] ExecIf("Local/FMGL-5551234567#@from-internal-000010e0;2", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [[email protected]: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 [[email protected]:10] NoOp("Local/FMGL-5551234567#@from-internal-000010e0;2", "Returned from dialparties with groups to dial") in new stack
    -- Executing [[email protected]:11] Set("Local/FMGL-5551234567#@from-internal-000010e0;2", "LOOPCNT=1") in new stack
    -- Executing [[email protected]:12] Set("Local/FMGL-5551234567#@from-internal-000010e0;2", "ITER=1") in new stack
    -- Executing [[email protected]:13] Set("Local/FMGL-5551234567#@from-internal-000010e0;2", "EXTTOCALL=5551234567") in new stack
    -- Executing [[email protected]:14] NoOp("Local/FMGL-5551234567#@from-internal-000010e0;2", "Working with 5551234567") in new stack
    -- Executing [[email protected]:15] ExecIf("Local/FMGL-5551234567#@from-internal-000010e0;2", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [[email protected]:16] ExecIf("Local/FMGL-5551234567#@from-internal-000010e0;2", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [[email protected]:17] Set("Local/FMGL-5551234567#@from-internal-000010e0;2", "ITER=2") in new stack
    -- Executing [[email protected]:18] GotoIf("Local/FMGL-5551234567#@from-internal-000010e0;2", "0?ndloopbegin") in new stack
    -- Executing [[email protected]:19] Macro("Local/FMGL-5551234567#@from-internal-000010e0;2", "dial-ringall-predial-hook,") in new stack
    -- Executing [[email protected]:1] MacroExit("Local/FMGL-5551234567#@from-internal-000010e0;2", "") in new stack
    -- Executing [[email protected]:20] Dial("Local/FMGL-5551234567#@from-internal-000010e0;2", "Local/[email protected]/n,20,TtrM(auto-blkvm)b(func-apply-sipheaders^s^1),") in new stack
    -- Local/[email protected];1 Internal Gosub(func-apply-sipheaders,s,1) start
    -- Executing [[email protected]:1] ExecIf("Local/[email protected];1", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
    -- Executing [[email protected]:2] NoOp("Local/[email protected];1", "Applying SIP Headers to channel") in new stack
    -- Executing [[email protected]:3] Set("Local/[email protected];1", "SIPHEADERKEYS=") in new stack
    -- Executing [[email protected]:4] While("Local/[email protected];1", "0") in new stack
    -- Jumping to priority 8
    -- Executing [[email protected]:9] Return("Local/[email protected];1", "") in new stack
  == Spawn extension (from-internal, FMGL-5551234567#, 1) exited non-zero on 'Local/[email protected];1'
    -- Local/[email protected];1 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
    -- Called Local/[email protected]/n
    -- Local/FMGL-5551234567#@from-internal-000010e0;1 is ringing
    -- Executing [[email protected]:1] Macro("Local/[email protected];2", "user-callerid,LIMIT") in new stack
    -- Executing [[email protected]:1] Set("Local/[email protected];2", "TOUCH_MONITOR=1496866941.122064") in new stack
    -- Executing [[email protected]:2] Set("Local/[email protected];2", "AMPUSER=260") in new stack
    -- Executing [[email protected]:3] GotoIf("Local/[email protected];2", "0?report") in new stack
    -- Executing [[email protected]:4] ExecIf("Local/[email protected];2", "1?Set(REALCALLERIDNUM=260)") in new stack
    -- Executing [[email protected]:5] Set("Local/[email protected];2", "AMPUSER=260") in new stack
    -- Executing [[email protected]:6] GotoIf("Local/[email protected];2", "0?limit") in new stack
    -- Executing [[email protected]:7] Set("Local/[email protected];2", "AMPUSERCIDNAME=John Smith") in new stack
    -- Executing [[email protected]:8] GotoIf("Local/[email protected];2", "0?report") in new stack
    -- Executing [[email protected]:9] Set("Local/[email protected];2", "AMPUSERCID=260") in new stack
    -- Executing [[email protected]:10] Set("Local/[email protected];2", "__DIAL_OPTIONS=Ttr") in new stack
    -- Executing [[email protected]:11] Set("Local/[email protected];2", "CALLERID(all)="John Smith" <260>") in new stack
    -- Executing [[email protected]:12] GotoIf("Local/[email protected];2", "0?limit") in new stack
    -- Executing [[email protected]:13] ExecIf("Local/[email protected];2", "1?Set(GROUP(concurrency_limit)=260)") in new stack
    -- Executing [[email protected]:14] ExecIf("Local/[email protected];2", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [[email protected]:15] GotoIf("Local/[email protected];2", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,29)
    -- Executing [[email protected]:29] Set("Local/[email protected];2", "CALLERID(number)=260") in new stack
    -- Executing [[email protected]:30] Set("Local/[email protected];2", "CALLERID(name)=John Smith") in new stack
    -- Executing [[email protected]:31] GotoIf("Local/[email protected];2", "0?cnum") in new stack
    -- Executing [[email protected]:32] Set("Local/[email protected];2", "CDR(cnam)=John Smith") in new stack
    -- Executing [[email protected]:33] Set("Local/[email protected];2", "CDR(cnum)=260") in new stack
    -- Executing [[email protected]:34] Set("Local/[email protected];2", "CHANNEL(language)=en") in new stack
    -- Executing [[email protected]:2] Set("Local/[email protected];2", "ROUTEUSER=260") in new stack
    -- Executing [[email protected]:3] Set("Local/[email protected];2", "ROUTEUSER=260") in new stack
    -- Executing [[email protected]:4] GotoIf("Local/[email protected];2", "1?notblind") in new stack
    -- Goto (from-internal,5551234567,7)
    -- Executing [[email protected]:7] GotoIf("Local/[email protected];2", "1?restrictedroute-453e406dcee4d18174d4ff623f52dcd8,5551234567,2:outbound-allroutes,5551234567,2") in new stack
    -- Goto (restrictedroute-453e406dcee4d18174d4ff623f52dcd8,5551234567,2)
    -- Executing [[email protected]:2] Gosub("Local/[email protected];2", "sub-record-check,s,1(out,5551234567,dontcare)") in new stack
    -- Executing [[email protected]:1] GotoIf("Local/[email protected];2", "3?initialized") in new stack
    -- Goto (sub-record-check,s,10)
    -- Executing [[email protected]:10] NoOp("Local/[email protected];2", "Recordings initialized") in new stack
    -- Executing [[email protected]:11] ExecIf("Local/[email protected];2", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [[email protected]:12] Set("Local/[email protected];2", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [[email protected]:13] ExecIf("Local/[email protected];2", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [[email protected]:14] GotoIf("Local/[email protected];2", "3?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [[email protected]:17] GotoIf("Local/[email protected];2", "1?sub-record-check,out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [[email protected]:1] NoOp("Local/[email protected];2", "Outbound Recording Check from 260 to 5551234567") in new stack
    -- Executing [[email protected]:2] Set("Local/[email protected];2", "RECMODE=dontcare") in new stack
    -- Executing [[email protected]:3] ExecIf("Local/[email protected];2", "1?Goto(routewins)") in new stack
    -- Goto (sub-record-check,out,7)
    -- Executing [[email protected]:7] Gosub("Local/[email protected];2", "recordcheck,1(dontcare,out,5551234567)") in new stack
    -- Executing [[email protected]:1] NoOp("Local/[email protected];2", "Starting recording check against dontcare") in new stack
    -- Executing [[email protected]:2] Goto("Local/[email protected];2", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [[email protected]:3] Return("Local/[email protected];2", "") in new stack
    -- Executing [[email protected]:8] Return("Local/[email protected];2", "") in new stack
    -- Executing [[email protected]:3] ExecIf("Local/[email protected];2", "0 ?Set(CDR(accountcode)=)") in new stack
    -- Executing [[email protected]:4] Set("Local/[email protected];2", "MOHCLASS=default") in new stack
    -- Executing [[email protected]:5] ExecIf("Local/[email protected];2", "0?Set(TRUNKCIDOVERRIDE=5559876543)") in new stack
    -- Executing [[email protected]:6] Set("Local/[email protected]ernal-000010e1;2", "_NODEST=") in new stack
    -- Executing [[email protected]:7] Macro("Local/[email protected];2", "dialout-trunk,2,5551234567,,off") in new stack
    -- Executing [[email protected]:1] Set("Local/[email protected];2", "DIAL_TRUNK=2") in new stack
    -- Executing [[email protected]:2] GosubIf("Local/[email protected];2", "0?sub-pincheck,s,1()") in new stack
    -- Executing [[email protected]:3] GotoIf("Local/[email protected];2", "0?disabletrunk,1") in new stack
    -- Executing [[email protected]:4] Set("Local/[email protected];2", "DIAL_NUMBER=5551234567") in new stack
    -- Executing [[email protected]:5] Set("Local/[email protected];2", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
    -- Executing [[email protected]:6] Set("Local/[email protected];2", "OUTBOUND_GROUP=OUT_2") in new stack
    -- Executing [[email protected]:7] GotoIf("Local/[email protected];2", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [[email protected]:9] GotoIf("Local/[email protected];2", "0?skipoutcid") in new stack
    -- Executing [[email protected]:10] Set("Local/[email protected];2", "DIAL_TRUNK_OPTIONS=Tt") in new stack
    -- Executing [[email protected]:11] Macro("Local/[email protected];2", "outbound-callerid,2") in new stack
    -- Executing [[email protected]:1] ExecIf("Local/[email protected];2", "0?Set(CALLERPRES(name-pres)=)") in new stack
    -- Executing [[email protected]:2] ExecIf("Local/[email protected];2", "0?Set(CALLERPRES(num-pres)=)") in new stack
    -- Executing [[email protected]:3] ExecIf("Local/[email protected];2", "0?Set(REALCALLERIDNUM=260)") in new stack
    -- Executing [[email protected]:4] GotoIf("Local/[email protected];2", "0?normcid") in new stack
    -- Executing [[email protected]:5] Set("Local/[email protected];2", "USEROUTCID=260") in new stack
    -- Executing [[email protected]:6] GotoIf("Local/[email protected];2", "0?bypass") in new stack
    -- Executing [[email protected]:7] Set("Local/[email protected];2", "USEROUTCID=") in new stack
    -- Executing [[email protected]:8] Set("Local/[email protected];2", "EMERGENCYCID=6572172960") in new stack
    -- Executing [[email protected]:9] Set("Local/[email protected];2", "TRUNKOUTCID=") in new stack
    -- Executing [[email protected]:10] GotoIf("Local/[email protected];2", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,15)
    -- Executing [[email protected]:15] ExecIf("Local/[email protected];2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [[email protected]:16] ExecIf("Local/[email protected];2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [[email protected]:17] ExecIf("Local/[email protected];2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [[email protected]:18] ExecIf("Local/[email protected];2", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [[email protected]:19] ExecIf("Local/[email protected];2", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [[email protected]:20] Set("Local/[email protected];2", "CDR(outbound_cnum)=260") in new stack
    -- Executing [[email protected]:21] Set("Local/[email protected];2", "CDR(outbound_cnam)=John Smith") in new stack
    -- Executing [[email protected]:12] GosubIf("Local/[email protected];2", "0?sub-flp-2,s,1()") in new stack
    -- Executing [[email protected]:13] Set("Local/[email protected];2", "OUTNUM=5551234567") in new stack
    -- Executing [[email protected]:14] Set("Local/[email protected];2", "custom=SIP/fpbx-1-ASdFgHJkLzXCV") in new stack
    -- Executing [[email protected]:15] ExecIf("Local/[email protected];2", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
    -- Executing [[email protected]:16] ExecIf("Local/[email protected];2", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
    -- Executing [[email protected]:17] Macro("Local/[email protected];2", "dialout-trunk-predial-hook,") in new stack
    -- Executing [[email protected]:1] MacroExit("Local/[email protected];2", "") in new stack
    -- Executing [[email protected]:18] GotoIf("Local/[email protected];2", "0?skipcrm") in new stack
    -- Executing [[email protected]:19] Set("Local/[email protected];2", "__CRM_DIRECTION=OUTBOUND") in new stack
    -- Executing [[email protected]:20] Set("Local/[email protected];2", "__CRM_DESTINATION=5551234567") in new stack
    -- Executing [[email protected]:21] Set("Local/[email protected];2", "__CRM_SOURCE=260") in new stack
    -- Executing [[email protected]:22] AGI("Local/[email protected];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 [39[email protected]:1] GotoIf("SIP/260-0000ff0c", "0?ext-local,398,1:followme-check,398,1") in new stack
    -- Goto (followme-check,398,1)
    -- Executing [[email protected]:1] Gosub("SIP/260-0000ff0c", "followme-sub,398,1()") in new stack
    -- Executing [[email protected]:1] Macro("SIP/260-0000ff0c", "user-callerid,") in new stack
    -- Executing [[email protected]:1] Set("SIP/260-0000ff0c", "TOUCH_MONITOR=1496867036.122430") in new stack
    -- Executing [[email protected]:2] Set("SIP/260-0000ff0c", "AMPUSER=260") in new stack
    -- Executing [[email protected]:3] GotoIf("SIP/260-0000ff0c", "0?report") in new stack
    -- Executing [[email protected]:4] ExecIf("SIP/260-0000ff0c", "1?Set(REALCALLERIDNUM=260)") in new stack
    -- Executing [[email protected]:5] Set("SIP/260-0000ff0c", "AMPUSER=260") in new stack
    -- Executing [[email protected]:6] GotoIf("SIP/260-0000ff0c", "0?limit") in new stack
    -- Executing [[email protected]:7] Set("SIP/260-0000ff0c", "AMPUSERCIDNAME=John Smith") in new stack
    -- Executing [[email protected]:8] GotoIf("SIP/260-0000ff0c", "0?report") in new stack
    -- Executing [[email protected]:9] Set("SIP/260-0000ff0c", "AMPUSERCID=260") in new stack
    -- Executing [[email protected]:10] Set("SIP/260-0000ff0c", "__DIAL_OPTIONS=Ttr") in new stack
    -- Executing [[email protected]:11] Set("SIP/260-0000ff0c", "CALLERID(all)="John Smith" <260>") in new stack
    -- Executing [[email protected]:12] GotoIf("SIP/260-0000ff0c", "0?limit") in new stack
    -- Executing [[email protected]:13] ExecIf("SIP/260-0000ff0c", "0?Set(GROUP(concurrency_limit)=260)") in new stack
    -- Executing [[email protected]:14] ExecIf("SIP/260-0000ff0c", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [[email protected]:15] GotoIf("SIP/260-0000ff0c", "0?continue") in new stack
    -- Executing [[email protected]:16] ExecIf("SIP/260-0000ff0c", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
    -- Executing [[email protected]:17] Set("SIP/260-0000ff0c", "__TTL=64") in new stack
    -- Executing [[email protected]:18] GotoIf("SIP/260-0000ff0c", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,29)
    -- Executing [[email protected]:29] Set("SIP/260-0000ff0c", "CALLERID(number)=260") in new stack
    -- Executing [[email protected]:30] Set("SIP/260-0000ff0c", "CALLERID(name)=John Smith") in new stack
    -- Executing [[email protected]:31] GotoIf("SIP/260-0000ff0c", "0?cnum") in new stack
    -- Executing [[email protected]:32] Set("SIP/260-0000ff0c", "CDR(cnam)=John Smith") in new stack
    -- Executing [[email protected]:33] Set("SIP/260-0000ff0c", "CDR(cnum)=260") in new stack
    -- Executing [[email protected]:34] Set("SIP/260-0000ff0c", "CHANNEL(language)=en") in new stack
    -- Executing [[email protected]:2] Set("SIP/260-0000ff0c", "DIAL_OPTIONS=TtrI") in new stack
    -- Executing [[email protected]:3] Set("SIP/260-0000ff0c", "CONNECTEDLINE(num,i)=398") in new stack
    -- Executing [[email protected]:4] Gosub("SIP/260-0000ff0c", "sub-presencestate-display,s,1(398)") in new stack
    -- Executing [[email protected]:1] Goto("SIP/260-0000ff0c", "state-not_set,1") in new stack
    -- Goto (sub-presencestate-display,state-not_set,1)
    -- Executing [[email protected]:1] Set("SIP/260-0000ff0c", "PRESENCESTATE_DISPLAY=") in new stack
    -- Executing [[email protected]:2] Return("SIP/260-0000ff0c", "") in new stack
    -- Executing [[email protected]:5] Set("SIP/260-0000ff0c", "CONNECTEDLINE(name)=John Smith W") in new stack
    -- Executing [[email protected]:6] Set("SIP/260-0000ff0c", "FM_DIALSTATUS=NOT_INUSE") in new stack
    -- Executing [[email protected]:7] Set("SIP/260-0000ff0c", "__EXTTOCALL=398") in new stack
    -- Executing [[email protected]:8] Set("SIP/260-0000ff0c", "__PICKUPMARK=398") in new stack
    -- Executing [[email protected]:9] Macro("SIP/260-0000ff0c", "blkvm-setifempty,") in new stack
    -- Executing [[email protected]-setifempty:1] GotoIf("SIP/260-0000ff0c", "1?init") in new stack
    -- Goto (macro-blkvm-setifempty,s,4)
    -- Executing [[email protected]:4] Set("SIP/260-0000ff0c", "__BLKVM_CHANNEL=SIP/260-0000ff0c") in new stack
    -- Executing [[email protected]:5] Set("SIP/260-0000ff0c", "SHARED(BLKVM,SIP/260-0000ff0c)=TRUE") in new stack
    -- Executing [[email protected]:6] Set("SIP/260-0000ff0c", "GOSUB_RETVAL=TRUE") in new stack
    -- Executing [[email protected]:7] MacroExit("SIP/260-0000ff0c", "") in new stack
    -- Executing [[email protected]:10] GotoIf("SIP/260-0000ff0c", "1?skipov") in new stack
    -- Goto (followme-sub,398,13)
    -- Executing [[email protected]:13] Set("SIP/260-0000ff0c", "RRNODEST=") in new stack
    -- Executing [[email protected]:14] Set("SIP/260-0000ff0c", "__NODEST=398") in new stack
    -- Executing [[email protected]:15] GosubIf("SIP/260-0000ff0c", "1?sub-fmsetcid,s,1()") in new stack
    -- Executing [[email protected]:1] Goto("SIP/260-0000ff0c", "s-fixed,1") in new stack
    -- Goto (sub-fmsetcid,s-fixed,1)
    -- Executing [[email protected]:1] ExecIf("SIP/260-0000ff0c", "1?Set(__TRUNKCIDOVERRIDE=123)") in new stack
    -- Executing [[email protected]:2] Return("SIP/260-0000ff0c", "") in new stack
    -- Executing [[email protected]:16] GotoIf("SIP/260-0000ff0c", "1?skipprepend") in new stack
    -- Goto (followme-sub,398,18)
    -- Executing [[email protected]:18] Set("SIP/260-0000ff0c", "RecordMethod=Group") in new stack
    -- Executing [[email protected]:19] Gosub("SIP/260-0000ff0c", "sub-record-check,s,1(exten,398,)") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/260-0000ff0c", "0?initialized") in new stack
    -- Executing [[email protected]:2] Set("SIP/260-0000ff0c", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [[email protected]:3] Set("SIP/260-0000ff0c", "NOW=1496867036") in new stack
    -- Executing [[email protected]:4] Set("SIP/260-0000ff0c", "__DAY=07") in new stack
    -- Executing [[email protected]:5] Set("SIP/260-0000ff0c", "__MONTH=06") in new stack
    -- Executing [[email protected]:6] Set("SIP/260-0000ff0c", "__YEAR=2017") in new stack
    -- Executing [[email protected]:7] Set("SIP/260-0000ff0c", "__TIMESTR=20170607-132356") in new stack
    -- Executing [[email protected]:8] Set("SIP/260-0000ff0c", "__FROMEXTEN=260") in new stack
    -- Executing [[email protected]:9] Set("SIP/260-0000ff0c", "__MON_FMT=wav") in new stack
    -- Executing [[email protected]:10] NoOp("SIP/260-0000ff0c", "Recordings initialized") in new stack
    -- Executing [[email protected]:11] ExecIf("SIP/260-0000ff0c", "1?Set(ARG3=dontcare)") in new stack
    -- Executing [[email protected]:12] Set("SIP/260-0000ff0c", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [[email protected]:13] ExecIf("SIP/260-0000ff0c", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [[email protected]:14] GotoIf("SIP/260-0000ff0c", "5?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [[email protected]:17] GotoIf("SIP/260-0000ff0c", "1?sub-record-check,exten,1") in new stack
    -- Goto (sub-record-check,exten,1)
    -- Executing [[email protected]:1] NoOp("SIP/260-0000ff0c", "Exten Recording Check between 260 and 398") in new stack
    -- Executing [[email protected]:2] Set("SIP/260-0000ff0c", "CALLTYPE=internal") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/260-0000ff0c", "0?Set(CALLTYPE=)") in new stack
    -- Executing [[email protected]:4] Set("SIP/260-0000ff0c", "CALLEE=dontcare") in new stack
    -- Executing [[email protected]:5] ExecIf("SIP/260-0000ff0c", "0?Set(CALLEE=dontcare)") in new stack
    -- Executing [[email protected]:6] GotoIf("SIP/260-0000ff0c", "0?callee") in new stack
    -- Executing [[email protected]:7] GotoIf("SIP/260-0000ff0c", "1?caller") in new stack
    -- Goto (sub-record-check,exten,13)
    -- Executing [[email protected]:13] Set("SIP/260-0000ff0c", "RECMODE=dontcare") in new stack
    -- Executing [[email protected]ord-check:14] ExecIf("SIP/260-0000ff0c", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [[email protected]:15] ExecIf("SIP/260-0000ff0c", "1?Set(RECMODE=dontcare)") in new stack
    -- Executing [[email protected]:16] Gosub("SIP/260-0000ff0c", "recordcheck,1(dontcare,internal,398)") in new stack
    -- Executing [[email protected]:1] NoOp("SIP/260-0000ff0c", "Starting recording check against dontcare") in new stack
    -- Executing [[email protected]:2] Goto("SIP/260-0000ff0c", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [[email protected]:3] Return("SIP/260-0000ff0c", "") in new stack
    -- Executing [[email protected]:17] Return("SIP/260-0000ff0c", "") in new stack
    -- Executing [[email protected]:20] GotoIf("SIP/260-0000ff0c", "1?skipdring") in new stack
    -- Goto (followme-sub,398,23)
    -- Executing [[email protected]:23] Set("SIP/260-0000ff0c", "STRATEGY=ringallv2-prim") in new stack
    -- Executing [[email protected]:24] Set("SIP/260-0000ff0c", "__RVOL=") in new stack
    -- Executing [[email protected]:25] GotoIf("SIP/260-0000ff0c", "1?skipsimple") in new stack
    -- Goto (followme-sub,398,28)
    -- Executing [[email protected]:28] Set("SIP/260-0000ff0c", "RingGroupMethod=ringallv2-prim") in new stack
    -- Executing [[email protected]:29] Set("SIP/260-0000ff0c", "_FMGRP=398") in new stack
    -- Executing [[email protected]:30] GotoIf("SIP/260-0000ff0c", "1?DIALGRP") in new stack
    -- Goto (followme-sub,398,34)
    -- Executing [[email protected]:34] ExecIf("SIP/260-0000ff0c", "1?Set(DOPTS=TtrI):Set(DOPTS=m(Ring)TtI)") in new stack
    -- Executing [[email protected]:35] GotoIf("SIP/260-0000ff0c", "0?doconfirm") in new stack
    -- Executing [[email protected]:36] GotoIf("SIP/260-0000ff0c", "1?ringallv21") in new stack
    -- Goto (followme-sub,398,39)
    -- Executing [[email protected]:39] Macro("SIP/260-0000ff0c", "dial,20,TtrI,5555551234#") in new stack
    -- Executing [[email protected]:1] NoOp("SIP/260-0000ff0c", "Blind Transfer: , Attended Transfer: , User: 260, Alert Info: ") in new stack
    -- Executing [[email protected]:2] Set("SIP/260-0000ff0c", "__CRM_SOURCE=260") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/260-0000ff0c", "1?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:4] ExecIf("SIP/260-0000ff0c", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:5] ExecIf("SIP/260-0000ff0c", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:6] ExecIf("SIP/260-0000ff0c", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [[email protected]: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 [[email protected]:10] NoOp("SIP/260-0000ff0c", "Returned from dialparties with groups to dial") in new stack
    -- Executing [[email protected]:11] Set("SIP/260-0000ff0c", "LOOPCNT=2") in new stack
    -- Executing [[email protected]:12] Set("SIP/260-0000ff0c", "ITER=1") in new stack
    -- Executing [[email protected]:13] Set("SIP/260-0000ff0c", "EXTTOCALL=398") in new stack
    -- Executing [[email protected]:14] NoOp("SIP/260-0000ff0c", "Working with 398") in new stack
    -- Executing [[email protected]:15] ExecIf("SIP/260-0000ff0c", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [[email protected]:16] ExecIf("SIP/260-0000ff0c", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [[email protected]:17] Set("SIP/260-0000ff0c", "ITER=2") in new stack
    -- Executing [[email protected]:18] GotoIf("SIP/260-0000ff0c", "1?ndloopbegin") in new stack
    -- Goto (macro-dial,s,13)
    -- Executing [[email protected]:13] Set("SIP/260-0000ff0c", "EXTTOCALL=5555551234") in new stack
    -- Executing [[email protected]:14] NoOp("SIP/260-0000ff0c", "Working with 5555551234") in new stack
    -- Executing [[email protected]:15] ExecIf("SIP/260-0000ff0c", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [[email protected]:16] ExecIf("SIP/260-0000ff0c", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [[email protected]:17] Set("SIP/260-0000ff0c", "ITER=3") in new stack
    -- Executing [[email protected]:18] GotoIf("SIP/260-0000ff0c", "0?ndloopbegin") in new stack
    -- Executing [[email protected]:19] Macro("SIP/260-0000ff0c", "dial-ringall-predial-hook,") in new stack
    -- Executing [[email protected]:1] MacroExit("SIP/260-0000ff0c", "") in new stack
    -- Executing [[email protected]:20] Dial("SIP/260-0000ff0c", "Local/[email protected]&Local/FMGL-5555551234#@from-internal,22,TtrIM(auto-blkvm)b(func-apply-sipheaders^s^1),") in new stack
    -- Local/[email protected];1 Internal Gosub(func-apply-sipheaders,s,1) start
    -- Executing [[email protected]:1] ExecIf("Local/[email protected];1", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
    -- Executing [[email protected]:2] NoOp("Local/[email protected];1", "Applying SIP Headers to channel") in new stack
    -- Executing [[email protected]:3] Set("Local/[email protected];1", "SIPHEADERKEYS=") in new stack
    -- Executing [[email protected]:4] While("Local/[email protected];1", "0") in new stack
    -- Jumping to priority 8
    -- Executing [[email protected]:9] Return("Local/[email protected];1", "") in new stack
  == Spawn extension (from-internal, 398, 1) exited non-zero on 'Local/[email protected];1'
    -- Local/[email protected];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 [[email protected]:1] ExecIf("Local/FMGL-5555551234#@from-internal-000010e3;1", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
    -- Executing [[email protected]:2] NoOp("Local/FMGL-5555551234#@from-internal-000010e3;1", "Applying SIP Headers to channel") in new stack
    -- Executing [[email protected]:3] Set("Local/FMGL-5555551234#@from-internal-000010e3;1", "SIPHEADERKEYS=") in new stack
    -- Executing [[email protected]:4] While("Local/FMGL-5555551234#@from-internal-000010e3;1", "0") in new stack
    -- Jumping to priority 8
    -- Executing [[email protected]: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/[email protected]
    -- Executing [[email protected]:1] Set("Local/[email protected];2", "CDR_PROP(disable)=true") in new stack
    -- Executing [[email protected]:2] Set("Local/[email protected];2", "RingGroupMethod=") in new stack
    -- Executing [[email protected]:3] Set("Local/[email protected];2", "USE_CONFIRMATION=") in new stack
    -- Executing [[email protected]:4] Set("Local/[email protected];2", "RINGGROUP_INDEX=") in new stack
    -- Called Local/FMGL-5555551234#@from-internal
    -- Executing [[email protected]:5] Macro("Local/[email protected];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 [[email protected]:1] Set("Local/[email protected];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 [[email protected]:2] Set("Local/[email protected];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 [[email protected]:3] Set("Local/[email protected];2", "CFUEXT=") in new stack
    -- Executing [[email protected]:4] Set("Local/[email protected];2", "CFBEXT=") in new stack
    -- Executing [[email protected]:5] Set("Local/[email protected];2", "CWI_TMP=") in new stack
    -- Executing [[email protected]:6] Macro("Local/[email protected];2", "dial-one,2,Ttr,398") in new stack
    -- Executing [[email protected]:1] Set("Local/[email protected];2", "DEXTEN=398") in new stack
    -- Executing [[email protected]:2] Set("Local/[email protected];2", "__CRM_SOURCE=260") in new stack
    -- Executing [[email protected]:3] ExecIf("Local/[email protected];2", "0?Set(EXTTOCALL=398)") in new stack
    -- Executing [[email protected]:4] Set("Local/[email protected];2", "DIALSTATUS_CW=") in new stack
    -- Executing [[email protected]:5] GosubIf("Local/[email protected];2", "0?screen,1()") in new stack
    -- Executing [[email protected]:6] GosubIf("Local/[email protected];2", "0?cf,1()") in new stack
    -- Executing [[email protected]:7] GotoIf("Local/[email protected];2", "1?skip1") in new stack
    -- Goto (macro-dial-one,s,10)
    -- Executing [[email protected]:10] GotoIf("Local/[email protected];2", "0?nodial") in new stack
    -- Executing [[email protected]:11] GotoIf("Local/[email protected];2", "0?continue") in new stack
    -- Executing [[email protected]:12] Set("Local/[email protected];2", "EXTHASCW=ENABLED") in new stack
    -- Executing [[email protected]:13] GotoIf("Local/[email protected];2", "0?next1:cwinusebusy") in new stack
    -- Goto (macro-dial-one,s,25)
    -- Executing [[email protected]:25] GotoIf("Local/[email protected];2", "0?next3:continue") in new stack
    -- Goto (macro-dial-one,s,27)
    -- Executing [[email protected]:27] GotoIf("Local/[email protected];2", "0?nodial") in new stack
    -- Executing [[email protected]:28] GosubIf("Local/[email protected];2", "1?dstring,1():dlocal,1()") in new stack
    -- Executing [[email protected]:1] Set("Local/[email protected];2", "DSTRING=") in new stack
    -- Executing [[email protected]:2] Set("Local/[email protected];2", "DEVICES=398") in new stack
    -- Executing [[email protected]:3] ExecIf("Local/[email protected];2", "0?Return()") in new stack
    -- Executing [[email protected]:4] ExecIf("Local/[email protected];2", "0?Set(DEVICES=98)") in new stack
    -- Executing [[email protected]:5] Set("Local/[email protected];2", "LOOPCNT=1") in new stack
    -- Executing [[email protected]:6] Set("Local/[email protected];2", "ITER=1") in new stack
    -- Executing [[email protected]:7] Set("Local/[email protected];2", "THISDIAL=") in new stack
    -- Executing [[email protected]:8] GosubIf("Local/[email protected];2", "1?zap2dahdi,1()") in new stack
    -- Executing [[email protected]:1] ExecIf("Local/[email protected];2", "1?Return()") in new stack
    -- Executing [[email protected]:9] GotoIf("Local/[email protected];2", "1?docheck") in new stack
    -- Goto (macro-dial-one,dstring,14)
    -- Executing [[email protected]:14] GotoIf("Local/[email protected];2", "1?skipset") in new stack
    -- Goto (macro-dial-one,dstring,16)
    -- Executing [[email protected]:16] Set("Local/[email protected];2", "ITER=2") in new stack
    -- Executing [[email protected]:17] GotoIf("Local/[email protected];2", "0?begin") in new stack
    -- Executing [[email protected]:18] ExecIf("Local/[email protected];2", "1?Return()") in new stack
    -- Executing [[email protected]:29] GotoIf("Local/[email protected];2", "1?nodial") in new stack
    -- Goto (macro-dial-one,s,57)
    -- Executing [[email protected]:57] ExecIf("Local/[email protected];2", "1?Set(DIALSTATUS=NOANSWER)") in new stack
    -- Executing [[email protected]:58] NoOp("Local/[email protected];2", "Returned from dial-one with nothing to call and DIALSTATUS: NOANSWER") in new stack
    -- Executing [[email protected]:59] MacroExit("Local/[email protected];2", "") in new stack
    -- Executing [[email protected]:7] Set("Local/[email protected];2", "__CWIGNORE=") in new stack
    -- Executing [[email protected]:8] Set("Local/[email protected];2", "PR_DIALSTATUS=NOANSWER") in new stack
    -- Executing [[email protected]:9] GosubIf("Local/[email protected];2", "0?docfu,1()") in new stack
    -- Executing [[email protected]:10] GosubIf("Local/[email protected];2", "0?docfb,1()") in new stack
    -- Executing [[email protected]:11] Set("Local/[email protected];2", "DIALSTATUS=NOANSWER") in new stack
    -- Executing [[email protected]:12] Goto("Local/[email protected];2", "s-NOANSWER,1") in new stack
    -- Goto (macro-simple-dial,s-NOANSWER,1)
    -- Executing [[email protected]:1] NoOp("Local/[email protected];2", "Extension is reporting s-NOANSWER") in new stack
    -- Executing [[email protected]:6] ExecIf("Local/[email protected];2", "0?Set(SHARED(FM_DND,SIP/260-0000ff0c)=DND)") in new stack
    -- Executing [[email protected]:7] Hangup("Local/[email protected];2", "") in new stack
  == Spawn extension (from-internal, FMPR-398, 7) exited non-zero on 'Local/[email protected];2'
    -- Executing [[email protected]:1] Macro("Local/[email protected];2", "hangupcall") in new stack
    -- Executing [[email protected]:1] GotoIf("Local/[email protected];2", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [[email protected]:3] ExecIf("Local/[email protected];2", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [[email protected]:4] Hangup("Local/[email protected];2", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Local/[email protected];2' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'Local/[email protected];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 [[email protected]:1] NoOp("Local/FMGL-5555551234#@from-internal-000010e3;2", "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
    -- Executing [[email protected]:2] Set("Local/FMGL-5555551234#@from-internal-000010e3;2", "__CRM_SOURCE=260") in new stack
    -- Executing [[email protected]:3] ExecIf("Local/FMGL-5555551234#@from-internal-000010e3;2", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:4] ExecIf("Local/FMGL-5555551234#@from-internal-000010e3;2", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:5] ExecIf("Local/FMGL-5555551234#@from-internal-000010e3;2", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [[email protected]:6] ExecIf("Local/FMGL-5555551234#@from-internal-000010e3;2", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [[email protected]: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 [[email protected]:10] NoOp("Local/FMGL-5555551234#@from-internal-000010e3;2", "Returned from dialparties with groups to dial") in new stack
    -- Executing [[email protected]:11] Set("Local/FMGL-5555551234#@from-internal-000010e3;2", "LOOPCNT=1") in new stack
    -- Executing [[email protected]:12] Set("Local/FMGL-5555551234#@from-internal-000010e3;2", "ITER=1") in new stack
    -- Executing [[email protected]:13] Set("Local/FMGL-5555551234#@from-internal-000010e3;2", "EXTTOCALL=5555551234") in new stack
    -- Executing [[email protected]:14] NoOp("Local/FMGL-5555551234#@from-internal-000010e3;2", "Working with 5555551234") in new stack
    -- Executing [[email protected]:15] ExecIf("Local/FMGL-5555551234#@from-internal-000010e3;2", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [[email protected]:16] ExecIf("Local/FMGL-5555551234#@from-internal-000010e3;2", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [[email protected]:17] Set("Local/FMGL-5555551234#@from-internal-000010e3;2", "ITER=2") in new stack
    -- Executing [[email protected]:18] GotoIf("Local/FMGL-5555551234#@from-internal-000010e3;2", "0?ndloopbegin") in new stack
    -- Executing [[email protected]:19] Macro("Local/FMGL-5555551234#@from-internal-000010e3;2", "dial-ringall-predial-hook,") in new stack
    -- Executing [[email protected]:1] MacroExit("Local/FMGL-5555551234#@from-internal-000010e3;2", "") in new stack
    -- Executing [[email protected]:20] Dial("Local/FMGL-5555551234#@from-internal-000010e3;2", "Local/[email protected]/n,20,TtrM(auto-blkvm)b(func-apply-sipheaders^s^1),") in new stack
    -- Local/[email protected];1 Internal Gosub(func-apply-sipheaders,s,1) start
    -- Executing [[email protected]:1] ExecIf("Local/555[email protected];1", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
    -- Executing [[email protected]:2] NoOp("Local/[email protected];1", "Applying SIP Headers to channel") in new stack
    -- Executing [[email protected]:3] Set("Local/[email protected];1", "SIPHEADERKEYS=") in new stack
    -- Executing [[email protected]:4] While("Local/[email protected];1", "0") in new stack
    -- Jumping to priority 8
    -- Executing [[email protected]:9] Return("Local/[email protected];1", "") in new stack
  == Spawn extension (from-internal, FMGL-5555551234#, 1) exited non-zero on 'Local/[email protected];1'
    -- Local/[email protected];1 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
    -- Called Local/[email protected]/n
    -- Local/FMGL-5555551234#@from-internal-000010e3;1 is ringing
    -- Executing [[email protected]:1] Macro("Local/[email protected];2", "user-callerid,LIMIT") in new stack
    -- Executing [[email protected]:1] Set("Local/[email protected];2", "TOUCH_MONITOR=1496867038.122491") in new stack
    -- Executing [[email protected]:2] Set("Local/[email protected];2", "AMPUSER=260") in new stack
    -- Executing [[email protected]:3] GotoIf("Local/[email protected];2", "0?report") in new stack
    -- Executing [[email protected]:4] ExecIf("Local/[email protected];2", "1?Set(REALCALLERIDNUM=260)") in new stack
    -- Executing [[email protected]:5] Set("Local/[email protected];2", "AMPUSER=260") in new stack
    -- Executing [[email protected]:6] GotoIf("Local/[email protected];2", "0?limit") in new stack
    -- Executing [[email protected]:7] Set("Local/[email protected];2", "AMPUSERCIDNAME=John Smith") in new stack
    -- Executing [[email protected]:8] GotoIf("Local/[email protected];2", "0?report") in new stack
    -- Executing [[email protected]:9] Set("Local/[email protected];2", "AMPUSERCID=260") in new stack
    -- Executing [[email protected]:10] Set("Local/[email protected];2", "__DIAL_OPTIONS=Ttr") in new stack
    -- Executing [[email protected]:11] Set("Local/[email protected];2", "CALLERID(all)="John Smith" <260>") in new stack
    -- Executing [[email protected]:12] GotoIf("Local/[email protected];2", "0?limit") in new stack
    -- Executing [[email protected]:13] ExecIf("Local/[email protected];2", "1?Set(GROUP(concurrency_limit)=260)") in new stack
    -- Executing [[email protected]:14] ExecIf("Local/[email protected];2", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [[email protected]:15] GotoIf("Local/[email protected];2", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,29)
    -- Executing [[email protected]:29] Set("Local/[email protected];2", "CALLERID(number)=260") in new stack
    -- Executing [[email protected]:30] Set("Local/[email protected];2", "CALLERID(name)=John Smith") in new stack
    -- Executing [[email protected]:31] GotoIf("Local/[email protected];2", "0?cnum") in new stack
    -- Executing [[email protected]:32] Set("Local/[email protected];2", "CDR(cnam)=John Smith") in new stack
    -- Executing [[email protected]:33] Set("Local/[email protected];2", "CDR(cnum)=260") in new stack
    -- Executing [[email protected]:34] Set("Local/[email protected];2", "CHANNEL(language)=en") in new stack
    -- Executing [[email protected]:2] Set("Local/[email protected];2", "ROUTEUSER=260") in new stack
    -- Executing [[email protected]:3] Set("Local/[email protected];2", "ROUTEUSER=260") in new stack
    -- Executing [[email protected]:4] GotoIf("Local/[email protected];2", "1?notblind") in new stack
    -- Goto (from-internal,5555551234,7)
    -- Executing [[email protected]:7] GotoIf("Local/[email protected];2", "1?restrictedroute-453e406dcee4d18174d4ff623f52dcd8,5555551234,2:outbound-allroutes,5555551234,2") in new stack
    -- Goto (restrictedroute-453e406dcee4d18174d4ff623f52dcd8,5555551234,2)
    -- Executing [[email protected]:2] Gosub("Local/[email protected];2", "sub-record-check,s,1(out,5555551234,dontcare)") in new stack
    -- Executing [[email protected]:1] GotoIf("Local/[email protected];2", "3?initialized") in new stack
    -- Goto (sub-record-check,s,10)
    -- Executing [[email protected]:10] NoOp("Local/[email protected];2", "Recordings initialized") in new stack
    -- Executing [[email protected]:11] ExecIf("Local/[email protected];2", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [[email protected]:12] Set("Local/[email protected];2", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [[email protected]:13] ExecIf("Local/[email protected];2", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [[email protected]:14] GotoIf("Local/[email protected];2", "3?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [[email protected]:17] GotoIf("Local/[email protected];2", "1?sub-record-check,out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [[email protected]:1] NoOp("Local/[email protected];2", "Outbound Recording Check from 260 to 5555551234") in new stack
    -- Executing [[email protected]:2] Set("Local/[email protected];2", "RECMODE=dontcare") in new stack
    -- Executing [[email protected]:3] ExecIf("Local/[email protected];2", "1?Goto(routewins)") in new stack
    -- Goto (sub-record-check,out,7)
    -- Executing [[email protected]:7] Gosub("Local/[email protected];2", "recordcheck,1(dontcare,out,5555551234)") in new stack
    -- Executing [[email protected]:1] NoOp("Local/[email protected];2", "Starting recording check against dontcare") in new stack
    -- Executing [[email protected]:2] Goto("Local/[email protected];2", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [[email protected]:3] Return("Local/[email protected];2", "") in new stack
    -- Executing [[email protected]:8] Return("Local/[email protected];2", "") in new stack
    -- Executing [[email protected]:3] ExecIf("Local/[email protected];2", "0 ?Set(CDR(accountcode)=)") in new stack
    -- Executing [[email protected]:4] Set("Local/[email protected];2", "MOHCLASS=default") in new stack
    -- Executing [[email protected]:5] ExecIf("Local/[email protected];2", "0?Set(TRUNKCIDOVERRIDE=5559876543)") in new stack
    -- Executing [[email protected]:6] Set("Local/[email protected];2", "_NODEST=") in new stack
    -- Executing [[email protected]:7] Macro("Local/[email protected];2", "dialout-trunk,2,5555551234,,off") in new stack
    -- Executing [[email protected]:1] Set("Local/[email protected];2", "DIAL_TRUNK=2") in new stack
    -- Executing [[email protected]:2] GosubIf("Local/[email protected];2", "0?sub-pincheck,s,1()") in new stack
    -- Executing [[email protected]:3] GotoIf("Local/[email protected];2", "0?disabletrunk,1") in new stack
    -- Executing [[email protected]:4] Set("Local/[email protected];2", "DIAL_NUMBER=5555551234") in new stack
    -- Executing [[email protected]:5] Set("Local/[email protected];2", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
    -- Executing [[email protected]:6] Set("Local/[email protected];2", "OUTBOUND_GROUP=OUT_2") in new stack
    -- Executing [[email protected]:7] GotoIf("Local/[email protected];2", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [[email protected]:9] GotoIf("Local/[email protected];2", "0?skipoutcid") in new stack
    -- Executing [[email protected]:10] Set("Local/[email protected];2", "DIAL_TRUNK_OPTIONS=Tt") in new stack
    -- Executing [[email protected]:11] Macro("Local/[email protected];2", "outbound-callerid,2") in new stack
    -- Executing [[email protected]:1] ExecIf("Local/[email protected];2", "0?Set(CALLERPRES(name-pres)=)") in new stack
    -- Executing [[email protected]:2] ExecIf("Local/[email protected];2", "0?Set(CALLERPRES(num-pres)=)") in new stack
    -- Executing [[email protected]:3] ExecIf("Local/[email protected];2", "0?Set(REALCALLERIDNUM=260)") in new stack
    -- Executing [[email protected]:4] GotoIf("Local/[email protected];2", "0?normcid") in new stack
    -- Executing [[email protected]:5] Set("Local/[email protected];2", "USEROUTCID=260") in new stack
    -- Executing [[email protected]:6] GotoIf("Local/[email protected];2", "0?bypass") in new stack
    -- Executing [[email protected]:7] Set("Local/[email protected];2", "USEROUTCID=") in new stack
    -- Executing [[email protected]:8] Set("Local/[email protected];2", "EMERGENCYCID=6572172960") in new stack
    -- Executing [[email protected]:9] Set("Local/[email protected];2", "TRUNKOUTCID=") in new stack
    -- Executing [[email protected]:10] GotoIf("Local/[email protected];2", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,15)
    -- Executing [[email protected]:15] ExecIf("Local/[email protected];2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [[email protected]:16] ExecIf("Local/[email protected];2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [[email protected]:17] ExecIf("Local/[email protected];2", "1?Set(CALLERID(all)=123)") in new stack
    -- Executing [[email protected]:18] ExecIf("Local/[email protected];2", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [[email protected]:19] ExecIf("Local/[email protected];2", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [[email protected]:20] Set("Local/[email protected];2", "CDR(outbound_cnum)=123") in new stack
    -- Executing [[email protected]:21] Set("Local/[email protected];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 [[email protected]:12] GosubIf("Local/[email protected];2", "0?sub-flp-2,s,1()") in new stack
    -- Executing [[email protected]:13] Set("Local/[email protected];2", "OUTNUM=5555551234") in new stack
    -- Executing [[email protected]:14] Set("Local/[email protected];2", "custom=SIP/fpbx-1-ASdFgHJkLzXCV") in new stack
    -- Executing [[email protected]:15] ExecIf("Local/[email protected];2", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
    -- Executing [[email protected]:16] ExecIf("Local/[email protected];2", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
    -- Executing [[email protected]:17] Macro("Local/[email protected];2", "dialout-trunk-predial-hook,") in new stack
    -- Executing [[email protected]:1] MacroExit("Local/[email protected];2", "") in new stack
    -- Executing [[email protected]:18] GotoIf("Local/[email protected];2", "0?skipcrm") in new stack
    -- Executing [[email protected]:19] Set("Local/[email protected];2", "__CRM_DIRECTION=OUTBOUND") in new stack
    -- Executing [[email protected]:20] Set("Local/[email protected];2", "__CRM_DESTINATION=5555551234") in new stack
    -- Executing [[email protected]:21] Set("Local/[email protected];2", "__CRM_SOURCE=260") in new stack
    -- Executing [[email protected]:22] AGI("Local/[email protected];2", "sangomacrm.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
    -- <Local/[email protected];2>AGI Script sangomacrm.agi completed, returning 0
    -- Executing [[email protected]:23] Set("Local/[email protected];2", "CHANNEL(hangup_handler_push)=crm-hangup,s,1") in new stack
    -- Executing [[email protected]:24] NoOp("Local/[email protected];2", "CRM Finished") in new stack
    -- Executing [[email protected]:25] GotoIf("Local/[email protected];2", "0?bypass,1") in new stack
    -- Executing [[email protected]:26] ExecIf("Local/[email protected];2", "1?Set(CONNECTEDLINE(num,i)=5555551234)") in new stack
    -- Executing [[email protected]:27] ExecIf("Local/[email protected];2", "1?Set(CONNECTEDLINE(name,i)=CID:123)") in new stack
    -- Executing [[email protected]:28] ExecIf("Local/[email protected];2", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)123)") in new stack
    -- Executing [[email protected]:29] GotoIf("Local/[email protected];2", "0?customtrunk") in new stack
    -- Executing [[email protected]:30] Dial("Local/[email protected];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/[email protected];2
    -- Local/[email protected];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.