[asterisk-users] app_read does not seem to work with SIP early media (it answers the channel)
Alexander Heinz
mailsanmich at gmx.li
Thu Nov 26 05:47:47 CST 2009
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
More information about the asterisk-users
mailing list