Re: [Asterisk-java-users] Problem with UniqueId and originate command
Brought to you by:
srt
From: Ben H. <bra...@gm...> - 2005-05-12 21:01:53
|
On 5/12/05, Stefan Reuter <ste...@po...> wrote: > Hi Ben, >=20 > what interface do you use to send the originate action? AsteriskManager o= r AsteriskConnection? I got a ManagerConnection, then created an originate action, then did: originateResponse =3D managerConnection.sendAction(originateAction, 65000); I'm not sure which that counts as... :-) >=20 > The response to the OriginateAction is not sent until the first channel h= as been answered. So if the timeout Asterisk-Java uses to wait for the resp= onse is smaller than the time you need to pick up the phone, no response ha= s yet been received and your uniqueId will be null. Is that the 2nd param to sendAction or some * config? 65000 is the actual value I used, and the phone picks up after 2 rings. >=20 > Please verify this by picking up the phone immediately (I think the defau= lt timeout is 3 seconds, so within at least 3 seconds after sending the Ori= ginateAction). > If this works we have to adjust the timeout to a more sensible value. Where can I find the 3 second setting? I should also mention that this is going out on a VoIP channel, so there is a small added delay between the originate command and the time * actually gets the channel, perhaps at most a second. Thanks! Ben |