[Asterisk-Users] return of the transfer to a busy number
Anton Yurchenko
phila at dg.net.ua
Fri Dec 26 04:39:29 MST 2003
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/4 at aaa,,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/3 at aaa-1", "10") in new stack
-- Endpoint 'aaln/4 at aaa-1' observed 'hu'
-- MGCP handle_request(aaln/4 at aaa-1) ast_channel already destroyed
-- MGCP handle_request(aaln/4 at aaa) set vmwi(-)
-- Executing DBget("MGCP/aaln/3 at aaa-1", "a=TEST/test") in new stack
-- DBget: varname=a, family=TEST, key=test
-- DBget: set variable a to 100
-- Executing Dial("MGCP/aaln/3 at aaa-1", "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
>> Asterisk-Users at lists.digium.com
>> http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>
>
--
Anton Yurchenko<phila at dg.net.ua>
Digital Generation
More information about the asterisk-users
mailing list