[reSIProcate] (DUM) Question about having user-specified end reasons

Francis Joanis francis.joanis at gmail.com
Wed Mar 2 12:34:37 CST 2011


Hi,

Thanks for the quick replies guys :).

I'm thinking it would make sense to have the API support it. I'll give it
some more thoughts but we could have a UserDefined reason in the enum that
would end up using a dedicated user string rather than the compiled-in ones.

The workaround is a good one since it doesn't get too much in the way (code
wise), but it ends up eating a little more CPU cycles on all INVITE-related
outgoing messages (which I would like to avoid).

Regards,
Francis

On Wed, Mar 2, 2011 at 1:22 PM, Aron Rosenberg <arosenberg at logitech.com>wrote:

> virtual void onReadyToSend(resip::InviteSessionHandle ish,
> resip::SipMessage &m)
> {
> if(m.header(h_RequestLine).getMethod()==resip::BYE))
>  m.header(h_Reasons).push_back("blahblah");
> }
>
>
> On Wed, Mar 2, 2011 at 9:49 AM, Francis Joanis <francis.joanis at gmail.com>wrote:
>
>> Hi again,
>>
>> Is there a way in DUM to have a user-specified reason when ending an
>> InviteSession? It looks like all the reasons have to be hard defined in the
>> code (EndReasons).
>>
>> Thanks a lot,
>> Francis
>>
>> _______________________________________________
>> resiprocate-devel mailing list
>> resiprocate-devel at resiprocate.org
>> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20110302/361765d2/attachment.htm>


More information about the resiprocate-devel mailing list