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:
- I have 2 extensions working OK making and receiving calls (for example extension 501 and 1097)
- 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:
- If I call 1099 from extension 501 or from 1097 all is working ok, i got the tt-weasels
- If I make a FOLLOW-ME for extension 1097 to extension 1099 doesn’t work
The debug is:
-- Executing [[email protected]:1] GotoIf("SIP/501-30a17aa0", "0?ext-local|1097|1") in new stack
-- Executing [[email protected]:2] Macro("SIP/501-30a17aa0", "user-callerid|") in new stack
-- Executing [[email protected]:1] NoOp("SIP/501-30a17aa0", "user-callerid: device 501") in new stack
-- Executing [[email protected]:2] Set("SIP/501-30a17aa0", "AMPUSER=501") in new stack
-- Executing [[email protected]:3] GotoIf("SIP/501-30a17aa0", "0?report") in new stack
-- Executing [[email protected]:4] GotoIf("SIP/501-30a17aa0", "0?start") in new stack
-- Executing [[email protected]:5] Set("SIP/501-30a17aa0", "REALCALLERIDNUM=501") in new stack
-- Executing [[email protected]:6] NoOp("SIP/501-30a17aa0", "REALCALLERIDNUM is 501") in new stack
-- Executing [[email protected]:7] Set("SIP/501-30a17aa0", "AMPUSER=501") in new stack
-- Executing [[email protected]:8] Set("SIP/501-30a17aa0", "AMPUSERCIDNAME=Charly USA") in new stack
-- Executing [[email protected]:9] GotoIf("SIP/501-30a17aa0", "0?report") in new stack
-- Executing [[email protected]:10] Set("SIP/501-30a17aa0", "AMPUSERCID=501") in new stack
-- Executing [[email protected]:11] Set("SIP/501-30a17aa0", "CALLERID(all)="Charly USA" <501>") in new stack
-- Executing [[email protected]:12] Set("SIP/501-30a17aa0", "REALCALLERIDNUM=501") in new stack
-- Executing [[email protected]:13] NoOp("SIP/501-30a17aa0", "TTL: ARG1: ") in new stack
-- Executing [[email protected]:14] GotoIf("SIP/501-30a17aa0", "0?continue") in new stack
-- Executing [[email protected]:15] Set("SIP/501-30a17aa0", "__TTL=64") in new stack
-- Executing [[email protected]:16] GotoIf("SIP/501-30a17aa0", "1?continue") in new stack
-- Goto (macro-user-callerid,s,23)
-- Executing [[email protected]:23] NoOp("SIP/501-30a17aa0", "Using CallerID "Charly USA" <501>") in new stack
-- Executing [[email protected]:3] GotoIf("SIP/501-30a17aa0", "1?skipdb") in new stack
-- Goto (from-internal,1097,5)
-- Executing [[email protected]:5] Set("SIP/501-30a17aa0", "__NODEST=") in new stack
-- Executing [[email protected]:6] Set("SIP/501-30a17aa0", "__BLKVM_OVERRIDE=BLKVM/1097/SIP/501-30a17aa0") in new stack
-- Executing [[email protected]:7] Set("SIP/501-30a17aa0", "__BLKVM_BASE=1097") in new stack
-- Executing [[email protected]:8] Set("SIP/501-30a17aa0", "DB(BLKVM/1097/SIP/501-30a17aa0)=TRUE") in new stack
-- Executing [[email protected]:9] Set("SIP/501-30a17aa0", "RRNODEST=") in new stack
-- Executing [[email protected]:10] Set("SIP/501-30a17aa0", "__NODEST=1097") in new stack
-- Executing [[email protected]:11] Set("SIP/501-30a17aa0", "RecordMethod=Group") in new stack
-- Executing [[email protected]:12] Macro("SIP/501-30a17aa0", "record-enable|1099|Group") in new stack
-- Executing [[email protected]:1] GotoIf("SIP/501-30a17aa0", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [[email protected]: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 [[email protected]:5] NoOp(“SIP/501-30a17aa0”, “No recording needed”) in new stack
– Executing [[email protected]:13] Set(“SIP/501-30a17aa0”, “RingGroupMethod=ringallv2”) in new stack
– Executing [[email protected]:14] Set(“SIP/501-30a17aa0”, “_FMGRP=1097”) in new stack
– Executing [[email protected]:15] GotoIf(“SIP/501-30a17aa0”, “0?doconfirm”) in new stack
– Executing [[email protected]:16] Macro(“SIP/501-30a17aa0”, “dial|20|tr|1099”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/501-30a17aa0”, “1?dial”) in new stack
– Goto (macro-dial,s,3)
– Executing [[email protected]: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 [[email protected]:10] Dial(“SIP/501-30a17aa0”, “Local/[email protected]&Local/[email protected]|22|trM(auto-blkvm)”) in new stack
– Called [email protected]
– Called [email protected]
– Executing [[email protected]:1] NoOp(“Local/[email protected],2”, “In FMPR 1097 with 1097”) 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
– Executing [[email protected]:5] Macro(“Local/[email protected],2”, “simple-dial|1097|2”) in new stack
– Executing [[email protected]:1] Macro(“Local/[email protected],2”, “user-callerid|SKIPTTL”) in new stack
– Executing [[email protected]:1] NoOp(“Local/[email protected],2”, “user-callerid: Charly USA 501”) in new stack
– Executing [[email protected]:2] Set(“Local/[email protected],2”, “AMPUSER=501”) in new stack
– Executing [[email protected]:3] GotoIf(“Local/[email protected],2”, “1?report”) in new stack
– Goto (macro-user-callerid,s,13)
– Executing [[email protected]:13] NoOp(“Local/[email protected],2”, “TTL: 64 ARG1: SKIPTTL”) in new stack
– Executing [[email protected]:14] GotoIf(“Local/[email protected],2”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,23)
– Executing [[email protected]:23] NoOp(“Local/[email protected],2”, “Using CallerID “Charly USA” <501>”) in new stack
– Executing [[email protected]:2] Set(“Local/[email protected],2”, “EXTTOCALL=1097”) in new stack
– Executing [[email protected]:3] Set(“Local/[email protected],2”, “RT=2”) in new stack
– Executing [[email protected]:4] Set(“Local/[email protected],2”, “CFUEXT=”) in new stack
– Executing [[email protected]:5] Set(“Local/[email protected],2”, “CFBEXT=”) in new stack
– Executing [[email protected]:6] Macro(“Local/[email protected],2”, “record-enable|1097|IN”) in new stack
– Executing [[email protected]:1] GotoIf(“Local/[email protected],2”, “0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [[email protected]:4] AGI(“Local/[email protected],2”, “recordingcheck|20071022-001012|1193026212.210”) in new stack
– Executing [[email protected]:1] NoOp(“Local/[email protected],2”, “In FMGL 1097 with 1099”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
– Executing [[email protected]:2] GotoIf(“Local/[email protected],2”, “0?dodnd”) in new stack
– Executing [[email protected]:3] Wait(“Local/[email protected],2”, “1”) in new stack
recordingcheck|20071022-001012|1193026212.210: Inbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing [[email protected]:5] NoOp(“Local/[email protected],2”, “No recording needed”) in new stack
– Executing [[email protected]:7] Macro(“Local/[email protected],2”, “dial|2|tr|1097”) in new stack
– Executing [[email protected]:1] GotoIf(“Local/[email protected],2”, “1?dial”) in new stack
– Goto (macro-dial,s,3)
– Executing [[email protected]:3] AGI(“Local/[email protected],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 [[email protected]:10] Dial(“Local/[email protected],2”, “SIP/1097|2|trM(auto-blkvm)”) in new stack
– Called 1097
– Local/[email protected],1 is ringing
– SIP/1097-101d7e00 is ringing
– Executing [[email protected]:4] GotoIf(“Local/[email protected],2”, “0?dodnd”) in new stack
– Executing [[email protected]:5] Wait(“Local/[email protected],2”, “1”) in new stack
– Executing [[email protected]:6] GotoIf(“Local/[email protected],2”, “0?dodnd”) in new stack
– Executing [[email protected]:7] Wait(“Local/[email protected],2”, “0”) in new stack
– Executing [[email protected]:8] GotoIf(“Local/[email protected],2”, “0?dodnd”) in new stack
– Executing [[email protected]:9] DBdel(“Local/[email protected],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 [[email protected]:10] Macro(“Local/[email protected],2”, “dial|20|tr|1099”) in new stack
– Executing [[email protected]:1] GotoIf(“Local/[email protected],2”, “1?dial”) in new stack
– Goto (macro-dial,s,3)
– Executing [[email protected]:3] AGI(“Local/[email protected],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 [[email protected]:4] NoOp(“Local/[email protected],2”, “Returned from dialparties with no extensions to call and DIALSTATUS: NOANSWER”) in new stack
– Executing [[email protected]:11] NoOp(“Local/[email protected],2”, “Ending FMGL 1097 with 1099 and dialstatus NOANSWER”) in new stack
– Executing [[email protected]:12] Hangup(“Local/[email protected],2”, “”) in new stack
== Spawn extension (from-internal, FMGL-1099, 12) 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] ResetCDR(“Local/[email protected],2”, “w”) in new stack
– Executing [[email protected]:2] NoCDR(“Local/[email protected],2”, “”) in new stack
– Executing [[email protected]:3] GotoIf(“Local/[email protected],2”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing [[email protected]:6] GotoIf(“Local/[email protected],2”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [[email protected]:9] GotoIf(“Local/[email protected],2”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,11)
– Executing [[email protected]:11] Hangup(“Local/[email protected],2”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘Local/[email protected],2’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘Local/[email protected],2’
– Nobody picked up in 2000 ms
– Executing [[email protected]:11] Set(“Local/[email protected],2”, “DIALSTATUS=NOANSWER”) 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] GotoIf(“Local/[email protected],2”, “1?nodnd”) in new stack
– Goto (from-internal,FMPR-1097,8)
– Executing [[email protected]:8] NoOp(“Local/[email protected],2”, “Ending FMPR 1097 with 1097 and dialstatus NOANSWER”) in new stack
– Executing [[email protected]:9] Hangup(“Local/[email protected],2”, “”) in new stack
== Spawn extension (from-internal, FMPR-1097, 9) 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] ResetCDR(“Local/[email protected],2”, “w”) in new stack
> cdr_odbc: Query Successful!
– Executing [[email protected]:2] NoCDR(“Local/[email protected],2”, “”) in new stack
– Executing [[email protected]:3] GotoIf(“Local/[email protected],2”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing [[email protected]:6] GotoIf(“Local/[email protected],2”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [[email protected]:9] GotoIf(“Local/[email protected],2”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,11)
– Executing [[email protected]:11] Hangup(“Local/[email protected],2”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘Local/[email protected],2’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘Local/[email protected],2’
== Everyone is busy/congested at this time (2:0/0/2)
– Executing [[email protected]:11] Set(“SIP/501-30a17aa0”, “DIALSTATUS=CHANUNAVAIL”) in new stack
– Executing [[email protected]:17] Goto(“SIP/501-30a17aa0”, “nextstep”) in new stack
– Goto (from-internal,1097,19)
– Executing [[email protected]:19] Set(“SIP/501-30a17aa0”, “RingGroupMethod=”) in new stack
– Executing [[email protected]:20] GotoIf(“SIP/501-30a17aa0”, “0?nodest”) in new stack
– Executing [[email protected]:21] Set(“SIP/501-30a17aa0”, “__NODEST=”) in new stack
– Executing [[email protected]:22] DBdel(“SIP/501-30a17aa0”, “BLKVM/1097/SIP/501-30a17aa0”) in new stack
– DBdel: family=BLKVM, key=1097/SIP/501-30a17aa0
– Executing [[email protected]:23] Hangup(“SIP/501-30a17aa0”, “”) in new stack
== Spawn extension (from-internal, 1097, 23) exited non-zero on ‘SIP/501-30a17aa0’
– Executing [[email protected]:1] Macro(“SIP/501-30a17aa0”, “hangupcall”) in new stack
– Executing [[email protected]:1] ResetCDR(“SIP/501-30a17aa0”, “w”) in new stack
> cdr_odbc: Query Successful!
– Executing [[email protected]:2] NoCDR(“SIP/501-30a17aa0”, “”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/501-30a17aa0”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing [[email protected]:6] GotoIf(“SIP/501-30a17aa0”, “0?skipblkvm”) in new stack
– Executing [[email protected]:7] NoOp(“SIP/501-30a17aa0”, “Cleaning Up Block VM Flag: BLKVM/1097/SIP/501-30a17aa0”) in new stack
– Executing [[email protected]: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 [[email protected]:9] GotoIf(“SIP/501-30a17aa0”, “0?theend”) in new stack
– Executing [[email protected]: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 [[email protected]: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