Anton Yurchenko wrote:

Eric Wieling wrote:

Anton Yurchenko wrote:

Hello,

Can such thing be done through dialplan , that say I transfer a call to an extension but it is busy, so that this call returns back to me.



exten => 123,1,Dial(Zap/5,30) ; ring Zap/5 for 30 seconds exten => 123,2,VoiceMailMain(u123) ; No answer voicemail exten => 123,102,Wait(2) exten => 123,103,Dial(Local/$(CALLERIDNUM})

yeah but think that the call should return to the number that is trying to transfer the call. Is there a variable for such a case?

I`m trying this trick in dialplan:

exten => 100,1,DBPut(TEST/test=${EXTEN})
exten => 100,2,Dial(MGCP/aaln/[EMAIL PROTECTED],,t)

exten => 160,1,Dial(SIP/160,,t)
exten => 160,102,Wait(5)
exten => 160,103,DBget(a=TEST/test)
exten => 160,104,Dial(Local/${a})

I call from other phone extension 100, then from this phone I transfer it to a busy 160, and immedeatly hangup 100. but I get only this on console:

   -- Executing Wait("MGCP/aaln/[EMAIL PROTECTED]", "10") in new stack
   -- Endpoint 'aaln/[EMAIL PROTECTED]' observed 'hu'
   -- MGCP handle_request(aaln/[EMAIL PROTECTED]) ast_channel already destroyed
   -- MGCP handle_request(aaln/[EMAIL PROTECTED]) set vmwi(-)
   -- Executing DBget("MGCP/aaln/[EMAIL PROTECTED]", "a=TEST/test") in new stack
   -- DBget: varname=a, family=TEST, key=test
   -- DBget: set variable a to 100
   -- Executing Dial("MGCP/aaln/[EMAIL PROTECTED]", "Local/100") in new stack
 == Everyone is busy at this time

the exten 100 is mgcp/aaln/4 and the calling channel is mgcp/aaln/3

why is it busy?

You can also do FLASH, dial number, if it's busy FLASH twice, if it's not hang up. This is for Zap channels.


_______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users





--

Anton Yurchenko<[EMAIL PROTECTED]>
Digital Generation


_______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to