Browse code

b/f: When the shortcut "x" is used, only add IE/EI once

Carsten Bock authored on 08/11/2012 16:56:41
Showing 1 changed files
... ...
@@ -2320,6 +2320,8 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int offer, int forc
2320 2320
 						LM_ERR("out of pkg memory\n");
2321 2321
 						FORCE_RTP_PROXY_RET (-1);
2322 2322
 					}
2323
+					/* Only execute once */
2324
+					autobridge_ipv4v6 = 0;
2323 2325
 				}
2324 2326
 				if (append_opts(&opts, '6') == -1) {
2325 2327
 					LM_ERR("out of pkg memory\n");
... ...
@@ -2337,6 +2339,8 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int offer, int forc
2337 2339
 					/* We need to update the pointers and the length here, it has changed. */
2338 2340
 					v[1].iov_base = opts.s.s;
2339 2341
 					v[1].iov_len = opts.oidx;
2342
+					/* Only execute once */
2343
+					autobridge_ipv4v6 = 0;
2340 2344
 				}
2341 2345
 			}
2342 2346