Re: [Opalvoip-devel] How to hold a call directly after establishing
Brought to you by:
csoutheren,
rjongbloed
From: Robert J. <ro...@vo...> - 2013-01-30 23:03:50
|
There are many "timing" things in OPAL. I would prefer it that OnEstablishedCall() was after all possible negotiations, but the protocols, and the code logic, make that difficult. Not going to happen any time soon is what I am really saying. Also, I suppose if a call to Hold() is made while the call is still being set up, it should do something different internally. That would make sense, but also, is not going to happen any time soon! For now, I would suggest firing a timer and calling hold after a second or two. BTW, gotta ask what the callers "experience" is going like being put on hold with no "please wait" or something beforehand? Dunno the details of your use case, so might make sense, but seems ... odd. *Robert Jongbloed* /OPAL/OpenH323/PTLib Architect and Co-founder./ Commercial support at http://www.voxlucida.com.au On 31/01/2013 2:30 AM, Etienne Venot wrote: > Hello, > > I manage a SoftPhone with two lines using Opal. > When there is a call on the first line and a second call is > establishing, I want to accept it but set it on hold. > > Fow now I override the method OnEstablishedCall(OpalCall & call) of > OpalManager and if it's the second line, I call the "Hold" method on the > call object pass it parameters. > Some times it's working and some times not. After investigation I see > that there is a race condition : sometimes the > SIPConnection::GarbageCollection is called before the Reinvite sending > and so the pendingInvite is cleared. > > So I assume that OnEstablishedCall is not the right place to perform > this but I don't which other methods I have to override to do this. Any > advice will be greatly appreciate ! > > Kind regards > > Etienne Venot > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_jan > _______________________________________________ > Opalvoip-devel mailing list > Opa...@li... > https://lists.sourceforge.net/lists/listinfo/opalvoip-devel |