Commit f3f343c3 authored by Simon Morlat's avatar Simon Morlat
Browse files

allow refresher to process subscribe in transcient transactions

parent 138e85a4
......@@ -590,15 +590,6 @@ belle_sip_refresher_t* belle_sip_refresher_new(belle_sip_client_transaction_t* t
belle_sip_request_t* request = belle_sip_transaction_get_request(BELLE_SIP_TRANSACTION(transaction));
int is_register=strcmp("REGISTER",belle_sip_request_get_method(request))==0;
if ( !is_register && strcmp("PUBLISH",belle_sip_request_get_method(request))!=0
&& state!=BELLE_SIP_TRANSACTION_TERMINATED
&& state!=BELLE_SIP_TRANSACTION_COMPLETED) {
belle_sip_error("Invalid state [%s] for %s transaction [%p], should be BELLE_SIP_TRANSACTION_COMPLETED/BELLE_SIP_TRANSACTION_TERMINATED"
,belle_sip_transaction_state_to_string(belle_sip_transaction_get_state(BELLE_SIP_TRANSACTION(transaction)))
,belle_sip_request_get_method(request)
,transaction);
return NULL;
}
refresher = (belle_sip_refresher_t*)belle_sip_object_new(belle_sip_refresher_t);
refresher->transaction=transaction;
refresher->state=stopped;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment