[asterisk-commits] pcadach: branch pcadach/chan_h323-live r42964 - /team/pcadach/chan_h323-live/...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Sep 14 21:27:28 MST 2006


Author: pcadach
Date: Thu Sep 14 23:27:27 2006
New Revision: 42964

URL: http://svn.digium.com/view/asterisk?rev=42964&view=rev
Log:
Don't use buggy h323_set_id

Modified:
    team/pcadach/chan_h323-live/channels/chan_h323.c

Modified: team/pcadach/chan_h323-live/channels/chan_h323.c
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/channels/chan_h323.c?rev=42964&r1=42963&r2=42964&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/channels/chan_h323.c (original)
+++ team/pcadach/chan_h323-live/channels/chan_h323.c Thu Sep 14 23:27:27 2006
@@ -1653,13 +1653,17 @@
 		host++;
 		ext = tmp;
 	} else {
+		ext = strchr(tmp, '/');
+		if (ext)
+			*ext++ = '\0';
 		host = tmp;
-		ext = NULL;
-	}
-	strtok_r(host, "/", &(h323id));		
+	}
+#if 0
+	strtok_r(host, "/", &(h323id));
 	if (!ast_strlen_zero(h323id)) {
 		h323_set_id(h323id);
 	}
+#endif
 	if (ext) {
 		strncpy(pvt->exten, ext, sizeof(pvt->exten) - 1);
 	}



More information about the asterisk-commits mailing list