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

SourceForge.net noreply at sourceforge.net
Wed Jun 20 02:14:38 CEST 2007


Patches item #1740051, was opened at 2007-06-19 17:14
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Kobi Eshun (ekobi)
Assigned to: Nobody/Anonymous (nobody)
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


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

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