[sr-dev] git:kamailio_3.0: pua(k): : set callback type for local requests

Daniel-Constantin Mierla miconda at gmail.com
Fri Nov 6 12:33:28 CET 2009


Module: sip-router
Branch: kamailio_3.0
Commit: ab31636c85552d48610c65d65afd4eaa126cf6a0
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ab31636c85552d48610c65d65afd4eaa126cf6a0

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Fri Nov  6 12:30:18 2009 +0100

pua(k): : set callback type for local requests

- type has to be TMCB_LOCAL_COMPLETED to execute transaction callback

---

 modules_k/pua/pua.c            |    8 ++++----
 modules_k/pua/send_publish.c   |    4 ++--
 modules_k/pua/send_subscribe.c |    8 ++++----
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/modules_k/pua/pua.c b/modules_k/pua/pua.c
index 3efaaac..3706200 100644
--- a/modules_k/pua/pua.c
+++ b/modules_k/pua/pua.c
@@ -660,8 +660,8 @@ int update_pua(ua_pres_t* p, unsigned int hash_code)
 			goto error;
 		}	
 		
-		set_uac_req(&uac_r, &met, str_hdr, 0, 0, 0, publ_cback_func, 
-					(void*)cb_param);
+		set_uac_req(&uac_r, &met, str_hdr, 0, 0, TMCB_LOCAL_COMPLETED,
+				publ_cback_func, (void*)cb_param);
 
 		result= tmb.t_request(&uac_r,
 				p->pres_uri,					/* Request-URI */
@@ -705,8 +705,8 @@ int update_pua(ua_pres_t* p, unsigned int hash_code)
 
 		}	
 
-		set_uac_req(&uac_r, &met, str_hdr, 0, td, 0, subs_cback_func, 
-					(void*)cb_param);
+		set_uac_req(&uac_r, &met, str_hdr, 0, td, TMCB_LOCAL_COMPLETED,
+				subs_cback_func, (void*)cb_param);
 		
 		result= tmb.t_request_within(&uac_r);
 		if(result< 0)
diff --git a/modules_k/pua/send_publish.c b/modules_k/pua/send_publish.c
index a1d45f9..3523cbc 100644
--- a/modules_k/pua/send_publish.c
+++ b/modules_k/pua/send_publish.c
@@ -551,8 +551,8 @@ send_publish:
 	if(body && body->len && body->s )
 		LM_DBG("body:\n%.*s\n ", body->len, body->s);
 
-	set_uac_req(&uac_r, &met, str_hdr, body, 0, 0, publ_cback_func,
-				(void*)cb_param);
+	set_uac_req(&uac_r, &met, str_hdr, body, 0, TMCB_LOCAL_COMPLETED,
+			publ_cback_func, (void*)cb_param);
 	result= tmb.t_request(&uac_r,
 			publ->pres_uri,			/*! Request-URI */
 			publ->pres_uri,			/*! To */
diff --git a/modules_k/pua/send_subscribe.c b/modules_k/pua/send_subscribe.c
index 656030a..93ae42a 100644
--- a/modules_k/pua/send_subscribe.c
+++ b/modules_k/pua/send_subscribe.c
@@ -885,8 +885,8 @@ insert:
 		}
 		hentity->flag= flag;
 
-		set_uac_req(&uac_r, &met, str_hdr, 0, 0, 0,subs_cback_func, 
-					(void*)hentity);
+		set_uac_req(&uac_r, &met, str_hdr, 0, 0, TMCB_LOCAL_COMPLETED,
+				subs_cback_func, (void*)hentity);
 		result= tmb.t_request
 			(&uac_r,						  /* Type of the message */
 		subs->remote_target?subs->remote_target:subs->pres_uri,/* Request-URI*/
@@ -971,8 +971,8 @@ insert:
 	//	hentity->flag= flag;
 		LM_DBG("event parameter: %d\n", hentity->event);	
 
-		set_uac_req(&uac_r, &met, str_hdr, 0, td, 0,subs_cback_func, 
-					(void*)hentity);
+		set_uac_req(&uac_r, &met, str_hdr, 0, td, TMCB_LOCAL_COMPLETED,
+				subs_cback_func, (void*)hentity);
 		result= tmb.t_request_within(&uac_r);
 		if(result< 0)
 		{




More information about the sr-dev mailing list