From: Steve K. <st...@st...> - 2004-01-23 23:19:40
|
Michael Van Donselaar wrote: >On Fri, 23 Jan 2004 16:26:15 -0600, Steven Sokol <ss...@so...> >wrote: > > > >>I have also added a nifty little hold/unhold function that adds two >>functions to iaxClient and one to libiax2. The libiax2 function allows for >>quelch/unquelch with an optional MOH IE appended to the command request. >>This allows you to place a call on hold and to "recall" the call without >>having to switch to a different appearance (call). It also gives you a way >>to provide MOH to the other active-but-held calls when you _do_ switch to >>another appearance. >> >>It's working fine in early testing now. It may appear as a feature in IAX >>Phone this weekend. >> >>Do you guys want it as a standard part of the lib? Is there a way to create >>an IE and send it in a command message w/o requiring changes to >>libiax2/iax.c? >> >> > >You can already do that by > >iaxc_select_call(-1); > >I have a local change to iaxclient_lib.c that sends a message unselecting the >selected call. It's missing from the CVS source. I've been meaning to update >it for two days. > >My solution was a kludge. A new function may be more elegant. > > Steve V, I think that Steve S' solution might be better or more correct, because it tells the other side the call is on hold, and they get music and whatnot. (I don't use this stuff, so I don't know how it works, really). What I'd suggest for implementing this, though, is to use Steve V's API (selecting -1), but change the library such that all calls on hold (active but unselected) get the quelch/MOH treatment. As to Steve S' second question (about sending an IE along without modifying libiax2), I don't know, but I'd prefer not to have to modify libiax2 more than necessary. Also, as a note: I'll be away next week, but I'll read e-mail occasionally. -SteveK |