Re: [Asterisk-java-users] Auto Answer with OriginateAction
Brought to you by:
srt
From: Wayne M. <way...@th...> - 2013-08-08 15:21:34
|
Apologies, was using the wrong reference to the channel variable. For anyone who is interested, assuming you have an auto answer context set up (and a phone that supports it), simply using Local/extension as the channel instead of SIP/extension will sort out the problem. Wayne Merricks The Voice Asia On 08/08/13 14:08, Wayne Merricks wrote: > Hi all, > > I amended my dial plan so that the SIP auto-answer header is added to > each call to specific extensions (50XX). Testing works fine between > between phones however I get slightly unexpected behaviour if I use: > > AsteriskServer.originateToExtensionAsync("SIP/5001", "from-internal", "5002", 1, 30000L, this); > > The phone 5001 rings which I didn't want to happen. Once I pick up 5002 > auto answers and everything is fine. > > I've tried adding vars to the same line such as: > > vars.put("ALERTINFO", "Alert-Info: Ring Answer"); > vars.put("CALLINFO", "Call-Info: \\;answer-after=0"); > > > Then calling originateToExtensionAsync with the vars and CallerId > objects too but that made no difference. > > As far as I can tell no events are generated until the initial pickup so > I'm not sure what to track/change to make this happen. > > What do I have to do to get the initial ring to auto answer as well? > Any ideas or hints would be appreciated. > > Cheers, > |