Explorar o código

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

Carsten Bock %!s(int64=13) %!d(string=hai) anos
pai
achega
ac97e3a86d
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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;
 				}
 			}