<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>I can't reproduce this error now. What a kick in the teeth.</div><div><br></div><div>I'm using dialog flags , not scripting flags, to indicate whether media proxy is in use. Would there be any delay involved here that might cause the flag to be missed further in the script? I feel like I'm grasping at straws here. I may rewrite the script to use a script flag internally, reading the dialog flag into the script flag on ingress and exporting the script flag's value to the dialog flag on egress. Could this give any possible advantage?</div><div><br></div><div><br></div><div>- Jeff</div><div><br></div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> Jeff Pyle <<a href="mailto:jpyle@fidelityvoice.com">jpyle@fidelityvoice.com</a>><br><span style="font-weight:bold">Reply-To: </span> OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br><span style="font-weight:bold">Date: </span> Thu, 21 Apr 2011 17:14:05 -0400<br><span style="font-weight:bold">To: </span> OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br><span style="font-weight:bold">Subject: </span> Re: [OpenSIPS-Users] doubled-up connection IP with use_media_proxy()<br></div><div><br></div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>I went over my config and I think the logic is sound. I'll verify it on a dev box tonight once traffic is low.</div><div><br></div><div>The call flow is serial forking from one carrier gateway to another when the first sends a 503.</div><ul><li>load prefs for first gateway</li><li>use_media_proxy()</li><li>t_relay() INVITE to first gateway</li><li>receive 503</li><li>end_media_session() in failure_route[]</li><li>load carrier prefs for second gateway</li><li>use_media_proxy()</li><li>t_relay() INVITE to second gateway</li><li>receive 400 (because of jacked up c= line)</li><li>end_media_session()</li></ul><div>The dispatcher log seems to jive with this. I've got a "remove" command from the end_media_session() after the first gateway, and the subsequent stats (all 0s), and a "remove" command from the second end_media_session() and more stats. I think the commands are hitting correctly.</div><div><br></div><div>Is it not correct to use(), end(), use(), end()? Once I use(), is it impossible to end()?*</div><div><br></div><div><br></div><div>- Jeff</div><div><br></div><div><br></div><div><br></div><div>* not referring to a substance abuse issue. really.</div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> Duane Larson <<a href="mailto:duane.larson@gmail.com">duane.larson@gmail.com</a>><br><span style="font-weight:bold">Reply-To: </span> OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br><span style="font-weight:bold">Date: </span> Thu, 21 Apr 2011 16:02:30 -0400<br><span style="font-weight:bold">To: </span> OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br><span style="font-weight:bold">Subject: </span> Re: [OpenSIPS-Users] doubled-up connection IP with use_media_proxy()<br></div><div><br></div>I have called Mediaproxy more than once by config error in my setup and have seen it put the mediaproxy IP twice. Looks like you might have the same issue.<br><br><div class="gmail_quote">On Thu, Apr 21, 2011 at 3:00 PM, Jeff Pyle <span dir="ltr"><<a href="mailto:jpyle@fidelityvoice.com">jpyle@fidelityvoice.com</a>></span> wrote:<br><blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><div style="FONT-FAMILY: Calibri, sans-serif; WORD-WRAP: break-word; COLOR: rgb(0,0,0); FONT-SIZE: 14px"><div>Hi list,</div><div><br></div><div>I ended up with a very strange connection IP in the SDP after using use_media_proxy():</div><div> c=IN IP4 65.64.63.365.64.63.2</div><div><br></div><div>where 65.64.63.2 and 65.64.63.3 are my obfuscated media relay IP addresses.</div><div><br></div><div>Could this have been caused by calling use_media_proxy() twice in the same request? Or is that operation benign, and I should be looking for another problem?</div><div><br></div><div><br></div><div>- Jeff</div><div><br></div></div><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--<br></span></div></div></span></body></html>