Hello Philippe,
Now I’ve the correct thing of call parking features, thanks for your explain.
I want that worked exactly as you described as "which is primarily Asterisk functionality " without change.
So, I want that “first trying the extension that parked them”.
In the following CLI trace the scene is:
105, 106, 107, 108 are extension, with CW enabled.
Call park timeout is 45 seconds.
108 is destination for orphaned parked call.
106 call 105, 105 response
106 digit ##70 and park 105 to 71
106 call 107, 107 response
call park timeout… you can see in the cli that 108 isn’t mentioned.
Thanks in advance for any idea.
-- Executing [105@from-internal:1] Macro("SIP/106-08278a70", "exten-vm|105|105") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/106-08278a70", "user-callerid") in new stack
-- Executing [s@macro-user-callerid:1] NoOp("SIP/106-08278a70", "user-callerid: device 106") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/106-08278a70", "AMPUSER=106") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/106-08278a70", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/106-08278a70", "1|Set|REALCALLERIDNUM=106") in new stack
-- Executing [s@macro-user-callerid:5] NoOp("SIP/106-08278a70", "REALCALLERIDNUM is 106") in new stack
-- Executing [s@macro-user-callerid:6] Set("SIP/106-08278a70", "AMPUSER=106") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/106-08278a70", "AMPUSERCIDNAME=Davide 106") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/106-08278a70", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/106-08278a70", "AMPUSERCID=106") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/106-08278a70", "CALLERID(all)="Davide 106" <106>") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/106-08278a70", "REALCALLERIDNUM=106") in new stack
-- Executing [s@macro-user-callerid:12] ExecIf("SIP/106-08278a70", "1|Set|CHANNEL(language)=it") in new stack
-- Executing [s@macro-user-callerid:13] NoOp("SIP/106-08278a70", "TTL: ARG1: 105") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("SIP/106-08278a70", "0?continue") in new stack
-- Executing [s@macro-user-callerid:15] Set("SIP/106-08278a70", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:16] GotoIf("SIP/106-08278a70", "1?continue") in new stack
-- Goto (macro-user-callerid,s,23)
-- Executing [s@macro-user-callerid:23] NoOp("SIP/106-08278a70", "Using CallerID "Davide 106" <106>") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/106-08278a70", "FROMCONTEXT=exten-vm") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/106-08278a70", "VMBOX=105") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/106-08278a70", "EXTTOCALL=105") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/106-08278a70", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("SIP/106-08278a70", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("SIP/106-08278a70", "RT=35") in new stack
-- Executing [s@macro-exten-vm:8] Macro("SIP/106-08278a70", "record-enable|105|IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/106-08278a70", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/106-08278a70", "recordingcheck|20080604-211115|1212606675.6") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20080604-211115|1212606675.6: Inbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing [s@macro-record-enable:5] NoOp(“SIP/106-08278a70”, “No recording needed”) in new stack
– Executing [s@macro-exten-vm:9] Macro(“SIP/106-08278a70”, “dial|35|Ttr|105”) in new stack
– Executing [s@macro-dial:1] GotoIf(“SIP/106-08278a70”, “1?dial”) in new stack
– Goto (macro-dial,s,3)
– Executing [s@macro-dial:3] AGI(“SIP/106-08278a70”, “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
== Parsing ‘/etc/asterisk/manager_additional.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
dialparties.agi: Caller ID name is ‘Davide 106’ number is '106’
dialparties.agi: Methodology of ring is ‘none’
– dialparties.agi: Added extension 105 to extension map
– dialparties.agi: Extension 105 cf is disabled
– dialparties.agi: Extension 105 do not disturb is disabled
– dialparties.agi: dbset CALLTRACE/105 to 106
– dialparties.agi: Filtered ARG3: 105
== Manager ‘admin’ logged off from 127.0.0.1
– AGI Script dialparties.agi completed, returning 0
– Executing [s@macro-dial:7] Dial(“SIP/106-08278a70”, “SIP/105|35|Ttr”) in new stack
– Called 105
– SIP/105-08277068 is ringing
– SIP/105-08277068 answered SIP/106-08278a70
– Started music on hold, class ‘default’, on SIP/105-08277068
– <SIP/106-08278a70> Playing ‘pbx-transfer’ (language ‘it’)
– Stopped music on hold on SIP/105-08277068
– Started music on hold, class ‘default’, on SIP/105-08277068
== Parked SIP/105-08277068 on 71@parkedcalls. Will timeout back to extension [from-internal] , 1 in 45 seconds
– <SIP/106-08278a70> Playing ‘digits/7’ (language ‘it’)
– <SIP/106-08278a70> Playing ‘digits/1’ (language ‘it’)
– Added extension ‘71’ priority 1 to parkedcalls
== Spawn extension (macro-dial, s, 7) exited non-zero on ‘SIP/106-08278a70’ in macro ‘dial’
== Spawn extension (macro-dial, s, 7) exited non-zero on ‘SIP/106-08278a70’ in macro ‘exten-vm’
== Spawn extension (macro-dial, s, 7) exited non-zero on ‘SIP/106-08278a70’
– Executing [h@macro-dial:1] Macro(“SIP/106-08278a70”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] ResetCDR(“SIP/106-08278a70”, “w”) in new stack
– Executing [s@macro-hangupcall:2] NoCDR(“SIP/106-08278a70”, “”) in new stack
– Executing [s@macro-hangupcall:3] GotoIf(“SIP/106-08278a70”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing [s@macro-hangupcall:6] GotoIf(“SIP/106-08278a70”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] GotoIf(“SIP/106-08278a70”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,11)
– Executing [s@macro-hangupcall:11] Hangup(“SIP/106-08278a70”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘SIP/106-08278a70’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘SIP/106-08278a70’
– Got SIP response 405 “Method Not Allowed” back from 192.168.6.11
– Got SIP response 405 “Method Not Allowed” back from 192.168.6.9
– Got SIP response 405 “Method Not Allowed” back from 192.168.6.7
– Executing [107@from-internal:1] Macro(“SIP/106-0827a498”, “exten-vm|107|107”) in new stack
– Executing [s@macro-exten-vm:1] Macro(“SIP/106-0827a498”, “user-callerid”) in new stack
– Executing [s@macro-user-callerid:1] NoOp(“SIP/106-0827a498”, “user-callerid: device 106”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/106-0827a498”, “AMPUSER=106”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/106-0827a498”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“SIP/106-0827a498”, “1|Set|REALCALLERIDNUM=106”) in new stack
– Executing [s@macro-user-callerid:5] NoOp(“SIP/106-0827a498”, “REALCALLERIDNUM is 106”) in new stack
– Executing [s@macro-user-callerid:6] Set(“SIP/106-0827a498”, “AMPUSER=106”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/106-0827a498”, “AMPUSERCIDNAME=Davide 106”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“SIP/106-0827a498”, “0?report”) in new stack
– Executing [s@macro-user-callerid:9] Set(“SIP/106-0827a498”, “AMPUSERCID=106”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/106-0827a498”, “CALLERID(all)=“Davide 106” <106>”) in new stack
– Executing [s@macro-user-callerid:11] Set(“SIP/106-0827a498”, “REALCALLERIDNUM=106”) in new stack
– Executing [s@macro-user-callerid:12] ExecIf(“SIP/106-0827a498”, “1|Set|CHANNEL(language)=it”) in new stack
– Executing [s@macro-user-callerid:13] NoOp(“SIP/106-0827a498”, “TTL: ARG1: 107”) in new stack
– Executing [s@macro-user-callerid:14] GotoIf(“SIP/106-0827a498”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:15] Set(“SIP/106-0827a498”, “__TTL=64”) in new stack
– Executing [s@macro-user-callerid:16] GotoIf(“SIP/106-0827a498”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,23)
– Executing [s@macro-user-callerid:23] NoOp(“SIP/106-0827a498”, “Using CallerID “Davide 106” <106>”) in new stack
– Executing [s@macro-exten-vm:2] Set(“SIP/106-0827a498”, “FROMCONTEXT=exten-vm”) in new stack
– Executing [s@macro-exten-vm:3] Set(“SIP/106-0827a498”, “VMBOX=107”) in new stack
– Executing [s@macro-exten-vm:4] Set(“SIP/106-0827a498”, “EXTTOCALL=107”) in new stack
– Executing [s@macro-exten-vm:5] Set(“SIP/106-0827a498”, “CFUEXT=”) in new stack
– Executing [s@macro-exten-vm:6] Set(“SIP/106-0827a498”, “CFBEXT=”) in new stack
– Executing [s@macro-exten-vm:7] Set(“SIP/106-0827a498”, “RT=35”) in new stack
– Executing [s@macro-exten-vm:8] Macro(“SIP/106-0827a498”, “record-enable|107|IN”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“SIP/106-0827a498”, “0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] AGI(“SIP/106-0827a498”, “recordingcheck|20080604-211150|1212606710.8”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20080604-211150|1212606710.8: Inbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing [s@macro-record-enable:5] NoOp(“SIP/106-0827a498”, “No recording needed”) in new stack
– Executing [s@macro-exten-vm:9] Macro(“SIP/106-0827a498”, “dial|35|Ttr|107”) in new stack
– Executing [s@macro-dial:1] GotoIf(“SIP/106-0827a498”, “1?dial”) in new stack
– Goto (macro-dial,s,3)
– Executing [s@macro-dial:3] AGI(“SIP/106-0827a498”, “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
== Parsing ‘/etc/asterisk/manager_additional.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
dialparties.agi: Caller ID name is ‘Davide 106’ number is '106’
dialparties.agi: Methodology of ring is ‘none’
– dialparties.agi: Added extension 107 to extension map
– dialparties.agi: Extension 107 cf is disabled
– dialparties.agi: Extension 107 do not disturb is disabled
– dialparties.agi: dbset CALLTRACE/107 to 106
– dialparties.agi: Filtered ARG3: 107
== Manager ‘admin’ logged off from 127.0.0.1
– AGI Script dialparties.agi completed, returning 0
– Executing [s@macro-dial:7] Dial(“SIP/106-0827a498”, “SIP/107|35|Ttr”) in new stack
– Called 107
– SIP/107-082877c0 is ringing
– SIP/107-082877c0 answered SIP/106-0827a498
– Stopped music on hold on SIP/105-08277068
– Added extension ‘SIP/106’ priority 1 to park-dial
== Timeout for SIP/105-08277068 parked on 71. Returning to park-dial,SIP/106,1
– Executing [SIP/106@park-dial:1] Dial(“SIP/105-08277068”, “SIP/106||t”) in new stack
– Called 106
– Got SIP response 486 “Busy Here” back from 192.168.6.7
– SIP/106-0827e438 is busy
== Everyone is busy/congested at this time (1:1/0/0)
== Auto fallthrough, channel ‘SIP/105-08277068’ status is ‘BUSY’
== Spawn extension (macro-dial, s, 7) exited non-zero on ‘SIP/106-0827a498’ in macro ‘dial’
== Spawn extension (macro-dial, s, 7) exited non-zero on ‘SIP/106-0827a498’ in macro ‘exten-vm’
== Spawn extension (macro-dial, s, 7) exited non-zero on ‘SIP/106-0827a498’
– Executing [h@macro-dial:1] Macro(“SIP/106-0827a498”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] ResetCDR(“SIP/106-0827a498”, “w”) in new stack
– Executing [s@macro-hangupcall:2] NoCDR(“SIP/106-0827a498”, “”) in new stack
– Executing [s@macro-hangupcall:3] GotoIf(“SIP/106-0827a498”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing [s@macro-hangupcall:6] GotoIf(“SIP/106-0827a498”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] GotoIf(“SIP/106-0827a498”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,11)
– Executing [s@macro-hangupcall:11] Hangup(“SIP/106-0827a498”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘SIP/106-0827a498’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/106-0827a498’
trixbox1*CLI>