< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] crash during handling of SUBSCRIBE response


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@xxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
>