Patrick Fortin
2007-May-23 12:28 UTC
[asterisk-users] - SOLVED - stream file not working but get data and exec background work
Hi While testing I found a solution to my problem. I don't understand it maybe someone here can explain it. In my script, if I call a Playback just before my stream file then everything works ok. Without the playback then the digits are not captured I will playback a silence to patch my scripts. Patrick ==========================Hi I have a strange problem. I use the agi command stream file for my vertical services like *98 If the call comes from a sip phone with dtmfmode=inband in sip.conf then it works. But if I call the same script from an external line the stream file doesn't work properly The audio is played but the digits are not captured. I tested with get data and it works I tested with exec background and it works The calls from the exterior use RFC2833. If I use inband, none of the 3 work. Why would stream file behave like this Here is the setup Pri SIP Gateway(Patton) - Asterisk (ztdummy) - SIP Phone Thanks Patrick
Eric "ManxPower" Wieling
2007-May-24 08:38 UTC
[asterisk-users] - SOLVED - stream file not working but get data and exec background work
Patrick Fortin wrote:> Hi > > While testing I found a solution to my problem. I don't understand it > maybe someone here can explain it. > > In my script, > if I call a Playback just before my stream file then everything works ok. > > Without the playback then the digits are not captured > > I will playback a silence to patch my scripts.Playback will issue an Answer before playing the audio. Without the line being answered, you can't receive audio (or inband digits).