[solved]use LOCAL CLOSER to transfer incoming call, failed
Posted: Thu Feb 21, 2008 5:11 am
i tested to use LOCAL CLOSER transfer incoming call to my other local in-group, but failed.
i used a phone to dial 602 and then agent 6651 accepted it ,the following is the agent 6651 status:
STATUS: Incoming: (605)- Group- primary support line Fronter: support agent1 - 6651
agent1 6651 clicked the TRANSFER-CONF button and selected the salesline -group ,then
clicked the LOCAL CLOSER button. several seconds later, but the agent in salesline group couldn't accept the call .
here is the log as follows:
-- Executing AGI("SIP/mx8-in-0921f348", "agi-VDAD_ALL_inbound.agi|CIDLOOKUPRC-----LB-----SUPPORTLINE-----1171-----Closer-----park----------118-----9-----TEST_IN") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
-- Executing Goto("Local/192*168*001*100*78600051@default-b363,2", "default|78600051|1") in new stack
-- Goto (default,78600051,1)
-- Executing MeetMe("Local/192*168*001*100*78600051@default-b363,2", "8600051|q") in new stack
> Channel Local/192*168*001*100*78600051@default-b363,1 was answered.
== Starting Local/192*168*001*100*78600051@default-b363,1 at default,8304,1 failed so falling back to exten 's'
== Starting Local/192*168*001*100*78600051@default-b363,1 at default,s,1 still failed so falling back to context 'default'
-- Sent into invalid extension 's' in context 'default' on Local/192*168*001*100*78600051@default-b363,1
-- Executing Playback("Local/192*168*001*100*78600051@default-b363,1", "invalid") in new stack
-- Playing 'invalid' (language 'en')
Feb 21 04:33:18 WARNING[16322]: file.c:1045 ast_waitstream: Unexpected control subclass '-1'
-- AGI Script agi-VDAD_ALL_inbound.agi completed, returning 0
-- Executing Goto("SIP/mx8-in-0921f348", "default|8600051|1") in new stack
-- Goto (default,8600051,1)
-- Executing MeetMe("SIP/mx8-in-0921f348", "8600051|F") in new stack
== Manager 'sendcron' logged off from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Spawn extension (default, 990009*SALESLINE**62**605*6651*, 0) exited non-zero on 'SIP/mx8-in-0921f348'
-- Executing Answer("SIP/mx8-in-0921f348", "") in new stack
-- Executing AGI("SIP/mx8-in-0921f348", "agi-VDAD_ALL_inbound.agi|CLOSER-----LB-----SALESLINE-----1170-----Closer-----park----------117-----9-----TEST_IN") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi
== Manager 'sendcron' logged off from 127.0.0.1
-- Started music on hold, class 'default', on channel 'SIP/mx8-in-0921f348'
-- Stopped music on hold on SIP/mx8-in-0921f348
-- Timeout on Local/192*168*001*100*78600051@default-b363,1
== CDR updated on Local/192*168*001*100*78600051@default-b363,1
-- Executing Goto("Local/192*168*001*100*78600051@default-b363,1", "#|1") in new stack
i added or modified some dialplans as follows in extension.conf
exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses ... EBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME}))
exten => 1170,1,Ringing ;call ringing
exten => 1170,2,Wait(1) ; Wait 1 second for CID delivery from pri
exten => 1170,3,Answer;
exten => 1170,4,SayDigits(${CALLERID(num)})
exten => 1170,5,AGI(agi-VDAD_ALL_inbound.agi,CIDLOOKUPRC-----LB-----SALESLINE-----1170-----Closer-----park----------117-----9-----TEST_IN)
exten => 1170,6,Hangup
;for in-group support line test
exten => 1171,1,Ringing ;call ringing
exten => 1171,2,Wait(1) ; Wait 1 second for CID delivery from pri
exten => 1171,3,Answer;
exten => 1171,4,SayDigits(${CALLERID(num)})
exten => 1171,5,AGI(agi-VDAD_ALL_inbound.agi,CIDLOOKUPRC-----LB-----SUPPORTLINE-----1171-----Closer-----park----------118-----9-----TEST_IN)
exten => 1171,6,Hangup
exten => 1172,1,Ringing ;call ringing
exten => 1172,2,Wait(1) ; Wait 1 second for CID delivery from pri
exten => 1172,3,Answer;
exten => 1172,4,SayDigits(${CALLERID(num)})
exten => 1172,5,AGI(agi-VDAD_ALL_inbound.agi,CIDLOOKUPRC-----LB-----OTHERLINE-----1172-----Closer-----park----------119-----9-----TEST_IN)
exten => 1172,6,Hangup
exten => _192*168*001*100*8600XXX,1,Goto(default,${EXTEN:16},1)
exten => _192*168*001*100*8600XXX*.,1,Goto(default,${EXTEN:16},1)
exten => _192*168*001*100*78600XXX,1,Goto(default,${EXTEN:16},1)
exten => _192*168*001*100*78600XXX*.,1,Goto(default,${EXTEN:16},1)
exten => _8600XXX*.,1,AGI(agi-VDADfixCXFER.agi)
exten => _78600XXX*.,1,AGI(agi-VDADfixCXFER.agi)
exten => _90009.,1,Answer ; Answer the line
;exten => _90009.,2,AGI(agi-VDADcloser.agi,${EXTEN}-----START)
exten => _90009.,2,AGI(agi-VDAD_ALL_inbound.agi,CLOSER-----LB-----SALESLINE-----1170-----Closer-----park----------117-----9-----TEST_IN)
exten => _90009.,3,Hangup
exten => _990009.,1,Answer ; Answer the line
exten => _990009.,2,AGI(agi-VDAD_ALL_inbound.agi,CLOSER-----LB-----SALESLINE-----1170-----Closer-----park----------117-----9-----TEST_IN)
;exten => _990009.,2,AGI(agi-VDADcloser.agi,${EXTEN}-----START)
exten => _990009.,3,Hangup
what's the problem? any idea? thank you!
i used a phone to dial 602 and then agent 6651 accepted it ,the following is the agent 6651 status:
STATUS: Incoming: (605)- Group- primary support line Fronter: support agent1 - 6651
agent1 6651 clicked the TRANSFER-CONF button and selected the salesline -group ,then
clicked the LOCAL CLOSER button. several seconds later, but the agent in salesline group couldn't accept the call .
here is the log as follows:
-- Executing AGI("SIP/mx8-in-0921f348", "agi-VDAD_ALL_inbound.agi|CIDLOOKUPRC-----LB-----SUPPORTLINE-----1171-----Closer-----park----------118-----9-----TEST_IN") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
-- Executing Goto("Local/192*168*001*100*78600051@default-b363,2", "default|78600051|1") in new stack
-- Goto (default,78600051,1)
-- Executing MeetMe("Local/192*168*001*100*78600051@default-b363,2", "8600051|q") in new stack
> Channel Local/192*168*001*100*78600051@default-b363,1 was answered.
== Starting Local/192*168*001*100*78600051@default-b363,1 at default,8304,1 failed so falling back to exten 's'
== Starting Local/192*168*001*100*78600051@default-b363,1 at default,s,1 still failed so falling back to context 'default'
-- Sent into invalid extension 's' in context 'default' on Local/192*168*001*100*78600051@default-b363,1
-- Executing Playback("Local/192*168*001*100*78600051@default-b363,1", "invalid") in new stack
-- Playing 'invalid' (language 'en')
Feb 21 04:33:18 WARNING[16322]: file.c:1045 ast_waitstream: Unexpected control subclass '-1'
-- AGI Script agi-VDAD_ALL_inbound.agi completed, returning 0
-- Executing Goto("SIP/mx8-in-0921f348", "default|8600051|1") in new stack
-- Goto (default,8600051,1)
-- Executing MeetMe("SIP/mx8-in-0921f348", "8600051|F") in new stack
== Manager 'sendcron' logged off from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Spawn extension (default, 990009*SALESLINE**62**605*6651*, 0) exited non-zero on 'SIP/mx8-in-0921f348'
-- Executing Answer("SIP/mx8-in-0921f348", "") in new stack
-- Executing AGI("SIP/mx8-in-0921f348", "agi-VDAD_ALL_inbound.agi|CLOSER-----LB-----SALESLINE-----1170-----Closer-----park----------117-----9-----TEST_IN") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi
== Manager 'sendcron' logged off from 127.0.0.1
-- Started music on hold, class 'default', on channel 'SIP/mx8-in-0921f348'
-- Stopped music on hold on SIP/mx8-in-0921f348
-- Timeout on Local/192*168*001*100*78600051@default-b363,1
== CDR updated on Local/192*168*001*100*78600051@default-b363,1
-- Executing Goto("Local/192*168*001*100*78600051@default-b363,1", "#|1") in new stack
i added or modified some dialplans as follows in extension.conf
exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses ... EBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME}))
exten => 1170,1,Ringing ;call ringing
exten => 1170,2,Wait(1) ; Wait 1 second for CID delivery from pri
exten => 1170,3,Answer;
exten => 1170,4,SayDigits(${CALLERID(num)})
exten => 1170,5,AGI(agi-VDAD_ALL_inbound.agi,CIDLOOKUPRC-----LB-----SALESLINE-----1170-----Closer-----park----------117-----9-----TEST_IN)
exten => 1170,6,Hangup
;for in-group support line test
exten => 1171,1,Ringing ;call ringing
exten => 1171,2,Wait(1) ; Wait 1 second for CID delivery from pri
exten => 1171,3,Answer;
exten => 1171,4,SayDigits(${CALLERID(num)})
exten => 1171,5,AGI(agi-VDAD_ALL_inbound.agi,CIDLOOKUPRC-----LB-----SUPPORTLINE-----1171-----Closer-----park----------118-----9-----TEST_IN)
exten => 1171,6,Hangup
exten => 1172,1,Ringing ;call ringing
exten => 1172,2,Wait(1) ; Wait 1 second for CID delivery from pri
exten => 1172,3,Answer;
exten => 1172,4,SayDigits(${CALLERID(num)})
exten => 1172,5,AGI(agi-VDAD_ALL_inbound.agi,CIDLOOKUPRC-----LB-----OTHERLINE-----1172-----Closer-----park----------119-----9-----TEST_IN)
exten => 1172,6,Hangup
exten => _192*168*001*100*8600XXX,1,Goto(default,${EXTEN:16},1)
exten => _192*168*001*100*8600XXX*.,1,Goto(default,${EXTEN:16},1)
exten => _192*168*001*100*78600XXX,1,Goto(default,${EXTEN:16},1)
exten => _192*168*001*100*78600XXX*.,1,Goto(default,${EXTEN:16},1)
exten => _8600XXX*.,1,AGI(agi-VDADfixCXFER.agi)
exten => _78600XXX*.,1,AGI(agi-VDADfixCXFER.agi)
exten => _90009.,1,Answer ; Answer the line
;exten => _90009.,2,AGI(agi-VDADcloser.agi,${EXTEN}-----START)
exten => _90009.,2,AGI(agi-VDAD_ALL_inbound.agi,CLOSER-----LB-----SALESLINE-----1170-----Closer-----park----------117-----9-----TEST_IN)
exten => _90009.,3,Hangup
exten => _990009.,1,Answer ; Answer the line
exten => _990009.,2,AGI(agi-VDAD_ALL_inbound.agi,CLOSER-----LB-----SALESLINE-----1170-----Closer-----park----------117-----9-----TEST_IN)
;exten => _990009.,2,AGI(agi-VDADcloser.agi,${EXTEN}-----START)
exten => _990009.,3,Hangup
what's the problem? any idea? thank you!