[OpenSIPS-Users] doubled-up connection IP with use_media_proxy()

Jeff Pyle jpyle at fidelityvoice.com
Fri Apr 22 03:18:17 CEST 2011


I can't reproduce this error now.  What a kick in the teeth.

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?


- Jeff


From: Jeff Pyle <jpyle at fidelityvoice.com<mailto:jpyle at fidelityvoice.com>>
Reply-To: OpenSIPS users mailling list <users at lists.opensips.org<mailto:users at lists.opensips.org>>
Date: Thu, 21 Apr 2011 17:14:05 -0400
To: OpenSIPS users mailling list <users at lists.opensips.org<mailto:users at lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] doubled-up connection IP with use_media_proxy()

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.

The call flow is serial forking from one carrier gateway to another when the first sends a 503.

 *   load prefs for first gateway
 *   use_media_proxy()
 *   t_relay() INVITE to first gateway
 *   receive 503
 *   end_media_session() in failure_route[]
 *   load carrier prefs for second gateway
 *   use_media_proxy()
 *   t_relay() INVITE to second gateway
 *   receive 400 (because of jacked up c= line)
 *   end_media_session()

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.

Is it not correct to use(), end(), use(), end()?  Once I use(), is it impossible to end()?*


- Jeff



* not referring to a substance abuse issue.  really.

From: Duane Larson <duane.larson at gmail.com<mailto:duane.larson at gmail.com>>
Reply-To: OpenSIPS users mailling list <users at lists.opensips.org<mailto:users at lists.opensips.org>>
Date: Thu, 21 Apr 2011 16:02:30 -0400
To: OpenSIPS users mailling list <users at lists.opensips.org<mailto:users at lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] doubled-up connection IP with use_media_proxy()

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.

On Thu, Apr 21, 2011 at 3:00 PM, Jeff Pyle <jpyle at fidelityvoice.com<mailto:jpyle at fidelityvoice.com>> wrote:
Hi list,

I ended up with a very strange connection IP in the SDP after using use_media_proxy():
  c=IN IP4 65.64.63.365.64.63.2

where 65.64.63.2 and 65.64.63.3 are my obfuscated media relay IP addresses.

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?


- Jeff


_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




--
--
*--*--*--*--*--*
Duane
*--*--*--*--*--*
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110421/613274d8/attachment-0001.htm>


More information about the Users mailing list