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.
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to