My reply inline.

On 4/9/07, Jaroslav Libák <[EMAIL PROTECTED]> wrote:

In sipxtapi.cpp in function sipxConfigSubscribe
there is
int subscriptionPeriod = 3600;

and then we call

pInst->pSubscribeClient->addSubscription(resourceId,
szEventType,                                                              
szAcceptType,                                                                
fromField,
toField,                                                                
contactField,                                                                
subscriptionPeriod,                                                             
   (void*)*phSub,                                                              
sipxSubscribeClientSubCallback,
sipxSubscribeClientNotifyCallback,                                                 
           *(subscriptionData->pDialogHandle)))

Try changing subscriptionPeriod to lower value than 300. It seems this
period is not automatically detected from response.



<SNIP>
    I tried that and it looks like it is working . It does re-subscribe
before the  expiry now. i have set expires to 200.
</SNIP>

Also look in SipSubscribeClient.cpp . When it receives response to
subscription, it should change subscription refresh time which is initiated
in mpRefreshMgr->initiateRefresh(subscriptionRequest, in
SipSubscribeClient::addSubscription.


<SNIP>
        Jaraslov, I'm quite new here , could you point me to the code which
receives the 202 Accepted message. i would try to fix this bug.
</SNIP>

thanks for your help.

best,
Amith


I don't have an account at a VoIP provider that supports subscribe so I
can't fix this.

Jaroslav Libak

>

_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to