瀏覽代碼

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

Carsten Bock 13 年之前
父節點
當前提交
ac97e3a86d
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      modules/rtpproxy/rtpproxy.c

+ 4 - 0
modules/rtpproxy/rtpproxy.c

@@ -2320,6 +2320,8 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int offer, int forc
 						LM_ERR("out of pkg memory\n");
 						FORCE_RTP_PROXY_RET (-1);
 					}
+					/* Only execute once */
+					autobridge_ipv4v6 = 0;
 				}
 				if (append_opts(&opts, '6') == -1) {
 					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
 					/* We need to update the pointers and the length here, it has changed. */
 					v[1].iov_base = opts.s.s;
 					v[1].iov_len = opts.oidx;
+					/* Only execute once */
+					autobridge_ipv4v6 = 0;
 				}
 			}