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

Jeff Pyle jpyle at fidelityvoice.com
Thu Aug 18 14:26:24 CEST 2011


Hi Saúl,

On Aug 18, 2011, at 4:03 AM, Saúl Ibarra Corretgé wrote:

> Calling route(x) from the failure route is not the same as getting a new message into the proxy. When you add headers to the message in the main route you can't remove them in the failure route, you need to use a branch route. Same case applies here. In the case you described above you would call use_media_proxy twice for the same message.

I'm not doing anything relay-related in the failure route.  If we land in the failure route due to a carrier's 503, we immediately return to the request route via the route[x] call to evaluate the next carrier, deciding at this point whether or not we need any relay functions based on the needs this time, and to some extent what happened last time.

> I think this would solve your problem: call use_media_proxy on a branch route and end_media_session on the failure route in case the gateway returns 503.

Hmm, in my mind this does the same thing I already have.  But then again, if my mind were able to fix this issue, I wouldn't be asking for help!  I'll give it a shot shortly.  :)


Regards,
Jeff



> 
> Regards,
> 
> --
> Saúl Ibarra Corretgé
> AG Projects



More information about the Users mailing list