Forward Call and Direct SIP call

Sorry but i don’t exactly know if this post comes here. I have a very simple problem but i can’t found the solution. I tried different things
but all the time i have the same problem:

The situation:

  1. I have 2 extensions working OK making and receiving calls (for example extension 501 and 1097)
  2. I made the following dial-plan in extensions_custom.conf:

[custom-1099]
exten => 1099,1(carlosrose2),Playback(tt-weasels)
exten => 1099,n,WaitExten(3)
exten => 1099,n,goto(carlosrose2)

The problem:

  1. If I call 1099 from extension 501 or from 1097 all is working ok, i got the tt-weasels
  2. If I make a FOLLOW-ME for extension 1097 to extension 1099 doesn’t work

The debug is:

-- Executing [1097@from-internal:1] GotoIf("SIP/501-30a17aa0", "0?ext-local|1097|1") in new stack
-- Executing [1097@from-internal:2] Macro("SIP/501-30a17aa0", "user-callerid|") in new stack
-- Executing [s@macro-user-callerid:1] NoOp("SIP/501-30a17aa0", "user-callerid: device 501") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/501-30a17aa0", "AMPUSER=501") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/501-30a17aa0", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] GotoIf("SIP/501-30a17aa0", "0?start") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/501-30a17aa0", "REALCALLERIDNUM=501") in new stack
-- Executing [s@macro-user-callerid:6] NoOp("SIP/501-30a17aa0", "REALCALLERIDNUM is 501") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/501-30a17aa0", "AMPUSER=501") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/501-30a17aa0", "AMPUSERCIDNAME=Charly USA") in new stack
-- Executing [s@macro-user-callerid:9] GotoIf("SIP/501-30a17aa0", "0?report") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/501-30a17aa0", "AMPUSERCID=501") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/501-30a17aa0", "CALLERID(all)="Charly USA" <501>") in new stack
-- Executing [s@macro-user-callerid:12] Set("SIP/501-30a17aa0", "REALCALLERIDNUM=501") in new stack
-- Executing [s@macro-user-callerid:13] NoOp("SIP/501-30a17aa0", "TTL:  ARG1: ") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("SIP/501-30a17aa0", "0?continue") in new stack
-- Executing [s@macro-user-callerid:15] Set("SIP/501-30a17aa0", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:16] GotoIf("SIP/501-30a17aa0", "1?continue") in new stack
-- Goto (macro-user-callerid,s,23)
-- Executing [s@macro-user-callerid:23] NoOp("SIP/501-30a17aa0", "Using CallerID "Charly USA" <501>") in new stack
-- Executing [1097@from-internal:3] GotoIf("SIP/501-30a17aa0", "1?skipdb") in new stack
-- Goto (from-internal,1097,5)
-- Executing [1097@from-internal:5] Set("SIP/501-30a17aa0", "__NODEST=") in new stack
-- Executing [1097@from-internal:6] Set("SIP/501-30a17aa0", "__BLKVM_OVERRIDE=BLKVM/1097/SIP/501-30a17aa0") in new stack
-- Executing [1097@from-internal:7] Set("SIP/501-30a17aa0", "__BLKVM_BASE=1097") in new stack
-- Executing [1097@from-internal:8] Set("SIP/501-30a17aa0", "DB(BLKVM/1097/SIP/501-30a17aa0)=TRUE") in new stack
-- Executing [1097@from-internal:9] Set("SIP/501-30a17aa0", "RRNODEST=") in new stack
-- Executing [1097@from-internal:10] Set("SIP/501-30a17aa0", "__NODEST=1097") in new stack
-- Executing [1097@from-internal:11] Set("SIP/501-30a17aa0", "RecordMethod=Group") in new stack
-- Executing [1097@from-internal:12] Macro("SIP/501-30a17aa0", "record-enable|1099|Group") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/501-30a17aa0", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/501-30a17aa0", "recordingcheck|20071022-001012|1193026212.208") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck

recordingcheck|20071022-001012|1193026212.208: No DB Entry AMPUSER/1099/recording - Not recording
– AGI Script recordingcheck completed, returning 0
– Executing [s@macro-record-enable:5] NoOp(“SIP/501-30a17aa0”, “No recording needed”) in new stack
– Executing [1097@from-internal:13] Set(“SIP/501-30a17aa0”, “RingGroupMethod=ringallv2”) in new stack
– Executing [1097@from-internal:14] Set(“SIP/501-30a17aa0”, “_FMGRP=1097”) in new stack
– Executing [1097@from-internal:15] GotoIf(“SIP/501-30a17aa0”, “0?doconfirm”) in new stack
– Executing [1097@from-internal:16] Macro(“SIP/501-30a17aa0”, “dial|20|tr|1099”) in new stack
– Executing [s@macro-dial:1] GotoIf(“SIP/501-30a17aa0”, “1?dial”) in new stack
– Goto (macro-dial,s,3)
– Executing [s@macro-dial:3] AGI(“SIP/501-30a17aa0”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
dialparties.agi: Caller ID name is ‘Charly USA’ number is '501’
dialparties.agi: USE_CONFIRMATION: 'FALSE’
dialparties.agi: RINGGROUP_INDEX: ''
dialparties.agi: Methodology of ring is ‘ringallv2’
– dialparties.agi: Added extension 1099 to extension map
> dialparties.agi: got fmgrp_prering: 2, fmgrp_grptime: 20
> dialparties.agi: fmgrp_totalprering: 22
> dialparties.agi: extension not in group list, ringging only during perring time
> dialparties.agi: ringallv2 ring times: REALPRERING: 2, PRERING: 2
– dialparties.agi: Extension 1097 cf is disabled
– dialparties.agi: Extension 1099 cf is disabled
– dialparties.agi: Extension 1097 do not disturb is disabled
– dialparties.agi: Extension 1099 do not disturb is disabled
> dialparties.agi: extnum 1097 has: cw: 1; hascfb: 0 [] hascfu: 0 []
– dialparties.agi: dbset CALLTRACE/1097 to 501
> dialparties.agi: extnum 1099 has: cw: 0; hascfb: 0 [] hascfu: 0 []
> dialparties.agi: ExtensionState: -1
dialparties.agi: Extension 1099 has ExtensionState: -1
– dialparties.agi: Checking CW and CFB status for extension 1099
– dialparties.agi: dbset CALLTRACE/1099 to 501
> dialparties.agi: NODEST: 1097 adding M(auto-blkvm) to dialopts: trM(auto-blkvm)
dialparties.agi: FMUNIQUE: SIP/501-30a17aa0, FMRERING: 0, FMREALPRERING: 2, FMGRPTIME: 20
> dialparties.agi: NODEST: 1097 blkvm enabled macro already in dialopts: trM(auto-blkvm)
== Manager ‘admin’ logged off from 127.0.0.1
– AGI Script dialparties.agi completed, returning 0
– Executing [s@macro-dial:10] Dial(“SIP/501-30a17aa0”, “Local/FMPR-1097@from-internal&Local/FMGL-1099@from-internal|22|trM(auto-blkvm)”) in new stack
– Called FMPR-1097@from-internal
– Called FMGL-1099@from-internal
– Executing [FMPR-1097@from-internal:1] NoOp(“Local/FMPR-1097@from-internal-6c13,2”, “In FMPR 1097 with 1097”) in new stack
– Executing [FMPR-1097@from-internal:2] Set(“Local/FMPR-1097@from-internal-6c13,2”, “RingGroupMethod=”) in new stack
– Executing [FMPR-1097@from-internal:3] Set(“Local/FMPR-1097@from-internal-6c13,2”, “USE_CONFIRMATION=”) in new stack
– Executing [FMPR-1097@from-internal:4] Set(“Local/FMPR-1097@from-internal-6c13,2”, “RINGGROUP_INDEX=”) in new stack
– Executing [FMPR-1097@from-internal:5] Macro(“Local/FMPR-1097@from-internal-6c13,2”, “simple-dial|1097|2”) in new stack
– Executing [s@macro-simple-dial:1] Macro(“Local/FMPR-1097@from-internal-6c13,2”, “user-callerid|SKIPTTL”) in new stack
– Executing [s@macro-user-callerid:1] NoOp(“Local/FMPR-1097@from-internal-6c13,2”, “user-callerid: Charly USA 501”) in new stack
– Executing [s@macro-user-callerid:2] Set(“Local/FMPR-1097@from-internal-6c13,2”, “AMPUSER=501”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“Local/FMPR-1097@from-internal-6c13,2”, “1?report”) in new stack
– Goto (macro-user-callerid,s,13)
– Executing [s@macro-user-callerid:13] NoOp(“Local/FMPR-1097@from-internal-6c13,2”, “TTL: 64 ARG1: SKIPTTL”) in new stack
– Executing [s@macro-user-callerid:14] GotoIf(“Local/FMPR-1097@from-internal-6c13,2”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,23)
– Executing [s@macro-user-callerid:23] NoOp(“Local/FMPR-1097@from-internal-6c13,2”, “Using CallerID “Charly USA” <501>”) in new stack
– Executing [s@macro-simple-dial:2] Set(“Local/FMPR-1097@from-internal-6c13,2”, “EXTTOCALL=1097”) in new stack
– Executing [s@macro-simple-dial:3] Set(“Local/FMPR-1097@from-internal-6c13,2”, “RT=2”) in new stack
– Executing [s@macro-simple-dial:4] Set(“Local/FMPR-1097@from-internal-6c13,2”, “CFUEXT=”) in new stack
– Executing [s@macro-simple-dial:5] Set(“Local/FMPR-1097@from-internal-6c13,2”, “CFBEXT=”) in new stack
– Executing [s@macro-simple-dial:6] Macro(“Local/FMPR-1097@from-internal-6c13,2”, “record-enable|1097|IN”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“Local/FMPR-1097@from-internal-6c13,2”, “0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] AGI(“Local/FMPR-1097@from-internal-6c13,2”, “recordingcheck|20071022-001012|1193026212.210”) in new stack
– Executing [FMGL-1099@from-internal:1] NoOp(“Local/FMGL-1099@from-internal-2999,2”, “In FMGL 1097 with 1099”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
– Executing [FMGL-1099@from-internal:2] GotoIf(“Local/FMGL-1099@from-internal-2999,2”, “0?dodnd”) in new stack
– Executing [FMGL-1099@from-internal:3] Wait(“Local/FMGL-1099@from-internal-2999,2”, “1”) in new stack
recordingcheck|20071022-001012|1193026212.210: Inbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing [s@macro-record-enable:5] NoOp(“Local/FMPR-1097@from-internal-6c13,2”, “No recording needed”) in new stack
– Executing [s@macro-simple-dial:7] Macro(“Local/FMPR-1097@from-internal-6c13,2”, “dial|2|tr|1097”) in new stack
– Executing [s@macro-dial:1] GotoIf(“Local/FMPR-1097@from-internal-6c13,2”, “1?dial”) in new stack
– Goto (macro-dial,s,3)
– Executing [s@macro-dial:3] AGI(“Local/FMPR-1097@from-internal-6c13,2”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
dialparties.agi: Caller ID name is ‘Charly USA’ number is '501’
dialparties.agi: USE_CONFIRMATION: 'FALSE’
dialparties.agi: RINGGROUP_INDEX: ''
dialparties.agi: Methodology of ring is ‘none’
– dialparties.agi: Added extension 1097 to extension map
– dialparties.agi: Extension 1097 cf is disabled
– dialparties.agi: Extension 1097 do not disturb is disabled
> dialparties.agi: extnum 1097 has: cw: 1; hascfb: 0 [] hascfu: 0 []
> dialparties.agi: ExtensionState: 8
– dialparties.agi: dbset CALLTRACE/1097 to 501
> dialparties.agi: NODEST: 1097 adding M(auto-blkvm) to dialopts: trM(auto-blkvm)
> dialparties.agi: NODEST: 1097 blkvm enabled macro already in dialopts: trM(auto-blkvm)
== Manager ‘admin’ logged off from 127.0.0.1
– AGI Script dialparties.agi completed, returning 0
– Executing [s@macro-dial:10] Dial(“Local/FMPR-1097@from-internal-6c13,2”, “SIP/1097|2|trM(auto-blkvm)”) in new stack
– Called 1097
– Local/FMPR-1097@from-internal-6c13,1 is ringing
– SIP/1097-101d7e00 is ringing
– Executing [FMGL-1099@from-internal:4] GotoIf(“Local/FMGL-1099@from-internal-2999,2”, “0?dodnd”) in new stack
– Executing [FMGL-1099@from-internal:5] Wait(“Local/FMGL-1099@from-internal-2999,2”, “1”) in new stack
– Executing [FMGL-1099@from-internal:6] GotoIf(“Local/FMGL-1099@from-internal-2999,2”, “0?dodnd”) in new stack
– Executing [FMGL-1099@from-internal:7] Wait(“Local/FMGL-1099@from-internal-2999,2”, “0”) in new stack
– Executing [FMGL-1099@from-internal:8] GotoIf(“Local/FMGL-1099@from-internal-2999,2”, “0?dodnd”) in new stack
– Executing [FMGL-1099@from-internal:9] DBdel(“Local/FMGL-1099@from-internal-2999,2”, “FM/DND/1097/SIP/501-30a17aa0”) in new stack
– DBdel: family=FM, key=DND/1097/SIP/501-30a17aa0
– DBdel: Error deleting key from database.
– Executing [FMGL-1099@from-internal:10] Macro(“Local/FMGL-1099@from-internal-2999,2”, “dial|20|tr|1099”) in new stack
– Executing [s@macro-dial:1] GotoIf(“Local/FMGL-1099@from-internal-2999,2”, “1?dial”) in new stack
– Goto (macro-dial,s,3)
– Executing [s@macro-dial:3] AGI(“Local/FMGL-1099@from-internal-2999,2”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
dialparties.agi: Caller ID name is ‘Charly USA’ number is '501’
dialparties.agi: USE_CONFIRMATION: 'FALSE’
dialparties.agi: RINGGROUP_INDEX: ''
dialparties.agi: Methodology of ring is ‘ringall’
– dialparties.agi: Added extension 1099 to extension map
– dialparties.agi: Extension 1099 cf is disabled
– dialparties.agi: Extension 1099 do not disturb is disabled
> dialparties.agi: extnum 1099 has: cw: 0; hascfb: 0 [] hascfu: 0 []
> dialparties.agi: ExtensionState: -1
dialparties.agi: Extension 1099 has ExtensionState: -1
– dialparties.agi: Checking CW and CFB status for extension 1099
– dialparties.agi: dbset CALLTRACE/1099 to 501
> dialparties.agi: NODEST: 1097 adding M(auto-blkvm) to dialopts: trM(auto-blkvm)
> dialparties.agi: NODEST: 1097 blkvm enabled macro already in dialopts: trM(auto-blkvm)
dialparties.agi: Setting default NOANSWER DIALSTATUS since no extensions available
== Manager ‘admin’ logged off from 127.0.0.1
– AGI Script dialparties.agi completed, returning 0
– Executing [s@macro-dial:4] NoOp(“Local/FMGL-1099@from-internal-2999,2”, “Returned from dialparties with no extensions to call and DIALSTATUS: NOANSWER”) in new stack
– Executing [FMGL-1099@from-internal:11] NoOp(“Local/FMGL-1099@from-internal-2999,2”, “Ending FMGL 1097 with 1099 and dialstatus NOANSWER”) in new stack
– Executing [FMGL-1099@from-internal:12] Hangup(“Local/FMGL-1099@from-internal-2999,2”, “”) in new stack
== Spawn extension (from-internal, FMGL-1099, 12) exited non-zero on ‘Local/FMGL-1099@from-internal-2999,2’
– Executing [h@from-internal:1] Macro(“Local/FMGL-1099@from-internal-2999,2”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] ResetCDR(“Local/FMGL-1099@from-internal-2999,2”, “w”) in new stack
– Executing [s@macro-hangupcall:2] NoCDR(“Local/FMGL-1099@from-internal-2999,2”, “”) in new stack
– Executing [s@macro-hangupcall:3] GotoIf(“Local/FMGL-1099@from-internal-2999,2”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing [s@macro-hangupcall:6] GotoIf(“Local/FMGL-1099@from-internal-2999,2”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] GotoIf(“Local/FMGL-1099@from-internal-2999,2”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,11)
– Executing [s@macro-hangupcall:11] Hangup(“Local/FMGL-1099@from-internal-2999,2”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘Local/FMGL-1099@from-internal-2999,2’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘Local/FMGL-1099@from-internal-2999,2’
– Nobody picked up in 2000 ms
– Executing [s@macro-dial:11] Set(“Local/FMPR-1097@from-internal-6c13,2”, “DIALSTATUS=NOANSWER”) in new stack
– Executing [s@macro-simple-dial:8] Set(“Local/FMPR-1097@from-internal-6c13,2”, “PR_DIALSTATUS=NOANSWER”) in new stack
– Executing [s@macro-simple-dial:9] GosubIf(“Local/FMPR-1097@from-internal-6c13,2”, “0?docfu|1”) in new stack
– Executing [s@macro-simple-dial:10] GosubIf(“Local/FMPR-1097@from-internal-6c13,2”, “0?docfb|1”) in new stack
– Executing [s@macro-simple-dial:11] Set(“Local/FMPR-1097@from-internal-6c13,2”, “DIALSTATUS=NOANSWER”) in new stack
– Executing [s@macro-simple-dial:12] Goto(“Local/FMPR-1097@from-internal-6c13,2”, “s-NOANSWER|1”) in new stack
– Goto (macro-simple-dial,s-NOANSWER,1)
– Executing [s-NOANSWER@macro-simple-dial:1] NoOp(“Local/FMPR-1097@from-internal-6c13,2”, “Extension is reporting s-NOANSWER”) in new stack
– Executing [FMPR-1097@from-internal:6] GotoIf(“Local/FMPR-1097@from-internal-6c13,2”, “1?nodnd”) in new stack
– Goto (from-internal,FMPR-1097,8)
– Executing [FMPR-1097@from-internal:8] NoOp(“Local/FMPR-1097@from-internal-6c13,2”, “Ending FMPR 1097 with 1097 and dialstatus NOANSWER”) in new stack
– Executing [FMPR-1097@from-internal:9] Hangup(“Local/FMPR-1097@from-internal-6c13,2”, “”) in new stack
== Spawn extension (from-internal, FMPR-1097, 9) exited non-zero on ‘Local/FMPR-1097@from-internal-6c13,2’
– Executing [h@from-internal:1] Macro(“Local/FMPR-1097@from-internal-6c13,2”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] ResetCDR(“Local/FMPR-1097@from-internal-6c13,2”, “w”) in new stack
> cdr_odbc: Query Successful!
– Executing [s@macro-hangupcall:2] NoCDR(“Local/FMPR-1097@from-internal-6c13,2”, “”) in new stack
– Executing [s@macro-hangupcall:3] GotoIf(“Local/FMPR-1097@from-internal-6c13,2”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing [s@macro-hangupcall:6] GotoIf(“Local/FMPR-1097@from-internal-6c13,2”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] GotoIf(“Local/FMPR-1097@from-internal-6c13,2”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,11)
– Executing [s@macro-hangupcall:11] Hangup(“Local/FMPR-1097@from-internal-6c13,2”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘Local/FMPR-1097@from-internal-6c13,2’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘Local/FMPR-1097@from-internal-6c13,2’
== Everyone is busy/congested at this time (2:0/0/2)
– Executing [s@macro-dial:11] Set(“SIP/501-30a17aa0”, “DIALSTATUS=CHANUNAVAIL”) in new stack
– Executing [1097@from-internal:17] Goto(“SIP/501-30a17aa0”, “nextstep”) in new stack
– Goto (from-internal,1097,19)
– Executing [1097@from-internal:19] Set(“SIP/501-30a17aa0”, “RingGroupMethod=”) in new stack
– Executing [1097@from-internal:20] GotoIf(“SIP/501-30a17aa0”, “0?nodest”) in new stack
– Executing [1097@from-internal:21] Set(“SIP/501-30a17aa0”, “__NODEST=”) in new stack
– Executing [1097@from-internal:22] DBdel(“SIP/501-30a17aa0”, “BLKVM/1097/SIP/501-30a17aa0”) in new stack
– DBdel: family=BLKVM, key=1097/SIP/501-30a17aa0
– Executing [1097@from-internal:23] Hangup(“SIP/501-30a17aa0”, “”) in new stack
== Spawn extension (from-internal, 1097, 23) exited non-zero on ‘SIP/501-30a17aa0’
– Executing [h@from-internal:1] Macro(“SIP/501-30a17aa0”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] ResetCDR(“SIP/501-30a17aa0”, “w”) in new stack
> cdr_odbc: Query Successful!
– Executing [s@macro-hangupcall:2] NoCDR(“SIP/501-30a17aa0”, “”) in new stack
– Executing [s@macro-hangupcall:3] GotoIf(“SIP/501-30a17aa0”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing [s@macro-hangupcall:6] GotoIf(“SIP/501-30a17aa0”, “0?skipblkvm”) in new stack
– Executing [s@macro-hangupcall:7] NoOp(“SIP/501-30a17aa0”, “Cleaning Up Block VM Flag: BLKVM/1097/SIP/501-30a17aa0”) in new stack
– Executing [s@macro-hangupcall:8] DBdel(“SIP/501-30a17aa0”, “BLKVM/1097/SIP/501-30a17aa0”) in new stack
– DBdel: family=BLKVM, key=1097/SIP/501-30a17aa0
– DBdel: Error deleting key from database.
– Executing [s@macro-hangupcall:9] GotoIf(“SIP/501-30a17aa0”, “0?theend”) in new stack
– Executing [s@macro-hangupcall:10] DBdel(“SIP/501-30a17aa0”, “FM/DND/1097/SIP/501-30a17aa0”) in new stack
– DBdel: family=FM, key=DND/1097/SIP/501-30a17aa0
– DBdel: Error deleting key from database.
– Executing [s@macro-hangupcall:11] Hangup(“SIP/501-30a17aa0”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘SIP/501-30a17aa0’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘SIP/501-30a17aa0’

Thank you for any help

because 1099 is not an extension. You might achieve you desired results if you put 1099# in your followme.

Philippe Lindheimer - FreePBX Project Lead
http//freepbx.org - IRC #freepbx