Alexander Heinz
2009-Nov-26 11:47 UTC
[asterisk-users] app_read does not seem to work with SIP early media (it answers the channel)
Hello! I am trying to come up with a way to read a digit *before* the call is answered. My Asterisk version is 1.6.2.0-rc6 SIP early media works fine (I can receive and transmit audio before the call is answered), but as soon as I start the read application, Asterisk answers the call which is not what I want. Here is how to reproduce the problem: send incoming calls from a SIP provider that supports early media to the context sip-in [sip-in] exten => 123,1,Progress exten => 123,n,Ringing exten => 123,n,Wait(3) exten => 123,n,Playback(hello-world,noanswer) ;plays fine w/o answering the call exten => 123,n,Ringing exten => 123,n,Wait(2) exten => 123,n,Read(digitin,,1,,,10) exten => 123,n,NoOp(we have read digit ${digitin}) exten => 123,n,Wait(10) exten => 123,n,Playback(demo-echodone,noanswer) exten => 123,n,Congestion exten => 123,n,Busy Is this a bug in the app_read? Do you know a workaround? I have already tried some tricks with Chanspy but I did not succeed. Thank you! Best regards, Alex
Tilghman Lesher
2009-Nov-26 17:29 UTC
[asterisk-users] app_read does not seem to work with SIP early media (it answers the channel)
On Thursday 26 November 2009 05:47:47 Alexander Heinz wrote:> I am trying to come up with a way to read a digit *before* the call is > answered. My Asterisk version is 1.6.2.0-rc6 > > SIP early media works fine (I can receive and transmit audio before the > call is answered), but as soon as I start the read application, Asterisk > answers the call which is not what I want.Read the application help. It's really as simple as that. -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org