Diff of /branches/1.8/modules/pua_dialoginfo/pua_dialoginfo.c [r10413] .. [r10414]  Maximize  Restore

  Switch to side-by-side view

--- a/branches/1.8/modules/pua_dialoginfo/pua_dialoginfo.c
+++ b/branches/1.8/modules/pua_dialoginfo/pua_dialoginfo.c
@@ -1,5 +1,5 @@
 /*
- * $Id: pua_dialoginfo.c 10140 2013-08-02 15:40:43Z opensipsrelease $
+ * $Id: pua_dialoginfo.c 10414 2014-03-12 17:19:21Z opensipsrelease $
  *
  * pua_dialoginfo module - publish dialog-info from dialog module
  *
@@ -314,13 +314,16 @@
 			dialog_publish("terminated", &peer_to_body, &from, &(dlg->callid), 0, 0, 0, 0);
 		break;
 	case DLGCB_RESPONSE_WITHIN:
-                if (get_cseq(msg)->method_id==METHOD_INVITE || get_cseq(msg)->method_id==METHOD_INVITE) {
-                  if (msg->flags & nopublish_flag) {
-                    LM_DBG("nopublish flag was set for this INVITE\n");
-                    break;
-                  }
-                  LM_DBG("nopublish flag not set for this INVITE, will publish\n");
-                }
+		if (get_cseq(msg)->method_id==METHOD_INVITE) {
+			if (msg->flags & nopublish_flag) {
+				LM_DBG("nopublish flag was set for this INVITE\n");
+				break;
+			}
+			LM_DBG("nopublish flag not set for this INVITE, will publish\n");
+		} else {
+			/* no publish for non-INVITEs */
+			break;
+		}
 	case DLGCB_CONFIRMED:
 		LM_DBG("dialog confirmed, from=%.*s\n", dlg->from_uri.len, dlg->from_uri.s);
 		if(flag == DLG_PUB_AB || flag == DLG_PUB_A)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks