[reSIProcate] crash during handling of SUBSCRIBE response
Jason Fischl
jason at counterpath.com
Fri Nov 11 11:49:05 CST 2005
You are receiving a 200 to a SUBSCRIBE without a Contact? What
endpoint is sending you this? What do people think we should do in
this case? I'm not sure what is the right thing to do here. Certainly,
we should catch the exception and not leak any state. If there is no
Contact, how can we refresh the subscription? I guess we could do
something if the expires=0 on the subscription.
Jason
On 11/11/05, Patel Parag <papatel at varaha.com> wrote:
> hi ,
>
> I am facing one problem during handling of 200 ok response of SUBSCRIBE
> Request. I try to explain flow of response handling for SUBSCRIBE.
>
> 1)DialogUsageManager::processResponce()
> 2)DialogSet::dispatch()
> there is Dialog not found so, DUM create new Dialog for Subscription
>
> if (dialog == 0)
> {
> dialog = new Dialog(mDum, msg, *this);
> }
>
> but, problem is, response doesn't contain contact field so throw
> exception.
>
> if (response.exists(h_Contacts) && response.header(h_Contacts).size() ==
> 1)
> {
> }
> else
> {
> // control will come here ... and throw exception.
> }
> please any buddy give me right direction...
>
> regards,
> parag Patel
>
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at list.sipfoundry.org
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
>
More information about the resiprocate-devel
mailing list