Re: [reSIProcate] Cancelling before onNewSession
You have two choices.
1) use the DialogUsageManager to do it. e.g.
SipMessage& msg = dum.makeInviteSession(...);
dum.send(msg);
// do stuff
dum.end(DialogSetId(msg)); // this will send the cancel
2) Use the AppDialogSet
If you used the AppDialogSet, you can just call end on it and it will
send the cancel.
On 6/3/05, Jeff Knighton <jeff.knighton@xxxxxxxxxxxxxx> wrote:
>
> Hi,
> I have a quick question. Using DUM, if I call makeInviteSession, send the
> INVITE and then decide that I really don't want to be calling right now,
> what's the appropriate way to send a CANCEL request, and clean things up if
> I haven't received an onNewSession yet? I understand that once I have
> received an onNewSession, I can take the InviteSessionHandle and just call
> the "end" method.
>
> Thanks,
> Jeff Knighton
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel@xxxxxxxxxxxxxxxxxxx
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
>
>