[OpenSER-Devel] [ openser-Patches-1740051 ] application-level configuration of mediaproxy domain

SourceForge.net noreply at sourceforge.net
Tue Jul 31 20:25:18 CEST 2007


Patches item #1740051, was opened at 2007-06-20 03:14
Message generated for change (Comment added) made by dan_pascu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743022&aid=1740051&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver 1.2.x
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Kobi Eshun (ekobi)
Assigned to: Dan (dan_pascu)
Summary: application-level configuration of mediaproxy domain

Initial Comment:
Hi,

Attached is a patch that facilitates explicit, per-call specification of the mediaproxy domain name.

Currently, the mediaproxy dispatcher automatically computes the "best" mediaproxy to use based on the domains extracted from the message headers. This patch provides a mechanism to directly specify which mediaproxy to use, based on the results of some arbitrary logic performed by the script (a stored-procedure call, for example).

There is a new module parameter, "mediaproxy_domain_avp," which defaults to "s:mediaproxy_domain". If that AVP is populated when use_media_proxy() is invoked, then the "info" portion of the dispatcher request will include a "mpxdomain:<blah-blah-blah>" attribute/value pair.

For example, the following script code:

    modparam ("mediaproxy", "mediaproxy_domain_avp","i:140")

    ...

    $avp(i:140)="domain://sip.sightspeed.org";
    use_media_proxy();

results in a request to the dispatcher with "info" like this:

    info=from:kobi.at.work at sip.sightspeed.org,to:kobi.at.work at sip.sightspeed.org,fromtag:0eb5e253,totag:,mproxydomain:domain://sip.sightspeed.org

There is a corresponding patch to the media proxy itself that I'll push out as soon as I've figured out where to send patches to. Cheers,
--
kobi


----------------------------------------------------------------------

>Comment By: Dan (dan_pascu)
Date: 2007-07-31 21:25

Message:
Logged In: YES 
user_id=1296758
Originator: NO

It was added with some slight modifications to trunk. Also present in the
mediaproxy server since version 1.9.0.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743022&aid=1740051&group_id=139143



More information about the Devel mailing list