Dialing chan_local. Was: [Asterisk-Users] return of the transfer
to a busy number
Olle E. Johansson
oej at edvina.net
Tue Dec 30 14:57:07 MST 2003
Anton Yurchenko wrote:
> Philipp von Klitzing wrote:
>
>> Hi!
>>
>>
>>
>>>>> 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.
>>>>>
>>
>>
>> How about
>>
>> - you store a temporary variable using SetVar() with the name of the
>> callerid
>> and the value of the initially called extension when the first
>> "contact" is
>> made
>> - modify your dialplan so that in the event of BUSY you check if the
>> above
>> variable exists, and if the initial extension differs from the current
>> one
>> - if yes, dial a local channel, if no do nothing
>>
>>
>>
> What could that be I have the following in my dialplan:
>
> exten => 153,1,Macro(stdexten,153,MGCP/aaln/3 at dg104s)
>
> exten => 161,1,Dial(Local/153,,t)
>
>
> but when I dial 161 I get that it is busy, dialing 153 directly works.
> here is except form my console:
>
> -- Executing Dial("SIP/160-43fa", "Local/153||t") in new stack
> == Everyone is busy at this time
>
> -- Executing Macro("SIP/160-e769", "stdexten|153|MGCP/aaln/3 at dg104s")
> in new stack
> -- Executing Dial("SIP/160-e769", "MGCP/aaln/3 at dg104s|20|t") in new
> stack
> -- MGCP mgcp_request(aaln/3 at dg104s)
> -- MGCP cw: -1, dnd: 0, so: 0, sno: 0
> -- MGCP mgcp_new(MGCP/aaln/3 at dg104s-1) created in state: Down
> -- Called aaln/3 at dg104s
> -- MGCP/aaln/3 at dg104s-1 is ringing
> == Spawn extension (macro-stdexten, s, 1) exited non-zero on
> 'SIP/160-e769' in macro 'stdexten'
> == Spawn extension (icg, s, 1) exited non-zero on 'SIP/160-e769'
>
>
> What am I doing wrong
>
Can't comment on what you're doing wrong, just add an observation:
the message "Everyone is busy at this time" seems to appear in situations
when something else is wrong. Is it possible to change this message or
add more informative information?
Anyone knows when this message is generated?
/O
--
*** Olle E. Johansson, oej at edvina.net
Mobile +46 70 593 68 51, Edvina AB, http://www.edvina.net
Runbovägen 10, 192 48 Sollentuna, Sweden
Phone: +46 8 594 78 810, Fax: +46 8 594 78 820
More information about the asterisk-users
mailing list