Using Progress didn't solve the problem. If I cannot find another way, I
will use your solution of recording the ring tone.
Le 23/08/2016 à 20:53, Israel Gottlieb a écrit :
Maybe try progress() instead of answer ()
בתאריך 23 באוג׳ 2016 7:19 PM, "Jean Aunis" <jean.au...@prescom.fr
<mailto:jean.au...@prescom.fr>> כתב:
Thank you, I just tried your suggestion. Strangely, the
announcement is played only if I try to dial a SIP peer which is
not available (not registered to be more precise). If the SIP peer
is available, I only get the ring tone, and never hear the
announcement. Here is the dialplan (I had to add an Answer()
before the Dial, otherwise the announcement is never played, even
in the first case) :
exten = 007,1,Answer()
same = n,Dial(SIP/foo&Local/s@playme,40)
[playme]
exten = s,1,Ringing()
same = n,Wait(10)
same = n,Playback(/var/lib/asterisk/sounddir/announce,noanswer)
When it is working, I can see the following output in the CLI,
which is not there otherwise :
-- SIP/xxxxxxxxx requested media update control 26, passing it to
Local/s@playme-000005be;1
Otherwise, no error message, Asterisk tells he is playing the
announcement but I don't hear it.
Best regards
Jean Aunis
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
http://www.asterisk.org/community/astricon-user-conference
New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users