Patches item #1740051, was opened at 2007-06-20 03:14 Message generated for change (Settings changed) made by bogdan_iancu 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: 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:[EMAIL PROTECTED],to:[EMAIL PROTECTED],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 _______________________________________________ Devel mailing list Devel@openser.org http://openser.org/cgi-bin/mailman/listinfo/devel