[asterisk-users] Macro when calling cellphone (GSM) + silence when connecting

Jonas Kellens jonas.kellens at telenet.be
Tue Sep 7 11:14:11 CDT 2010


Hello list,

is their a way to keep having a dialtone for the calling party when the 
macro is executed ?! Or not ?!



Kind regards,
Jonas.

-------- Original Message --------
Subject: 	Macro when calling cellphone (GSM) + silence when connecting
Date: 	Mon, 06 Sep 2010 16:23:46 +0200
From: 	Jonas Kellens <jonas.kellens at telenet.be>
To: 	Asterisk Users Mailing List - Non-Commercial Discussion 
<asterisk-users at lists.digium.com>



Hello list,

I'm using the following macro when calling an external callphone/GSM 
number :

[macro-press1]
exten => s,1,NoOp()
exten => s,n,Playback(/var/lib/asterisk/sounds/prompts/press1)
exten => s,n,Read(INPUT,,1,1,1)
exten => s,n,NoOp(input : ${INPUT})
exten => s,n,GoToIf($["${INPUT}"=="1"]?exit:hangup)
exten => s,n(exit),NoOp(call accepted)
exten => s,n,MacroExit()
exten => s,n(hangup),Set(MACRO_RESULT=CONTINUE)
exten => s,n,NoOp(macro_result in macro : ${MACRO_RESULT})
exten => s,n,MacroExit()

The dialplan :

exten => s,n,Dial(${TRUNKOUT}/${TEL},,M(press1))


So the calling party and the called party are only connected together 
when the called party presses "1" to accept the call.

When playing the prompt "Press 1 to accept the call", the calling party 
here's a silence (ringtone stops).

How can I have the "ringtone" be played untill the calling party and the 
called party are effectively connected together ?!

I guess by calling the Playback-command, the call is answered. But that 
means that the "ringtone" stops. While the called party still needs to 
acknowledge the call.


Anyone has a solution ?!


Kind regards,

Jonas.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100907/e7786af7/attachment.htm 


More information about the asterisk-users mailing list