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/[EMAIL PROTECTED])

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/[EMAIL PROTECTED]") in new stack
-- Executing Dial("SIP/160-e769", "MGCP/aaln/[EMAIL PROTECTED]|20|t") in new stack
-- MGCP mgcp_request(aaln/[EMAIL PROTECTED])
-- MGCP cw: -1, dnd: 0, so: 0, sno: 0
-- MGCP mgcp_new(MGCP/aaln/[EMAIL PROTECTED]) created in state: Down
-- Called aaln/[EMAIL PROTECTED]
-- MGCP/aaln/[EMAIL PROTECTED] 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, [EMAIL PROTECTED]

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


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

Reply via email to