[asterisk-users] Macro when calling cellphone (GSM) + silence when connecting
Jonas Kellens
jonas.kellens at telenet.be
Mon Sep 6 09:23:46 CDT 2010
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/20100906/24eb1e0f/attachment.htm
More information about the asterisk-users
mailing list