On Mon, Mar 29, 2010 at 7:24 AM, Scott Lawrence <[email protected]> wrote: > On Sun, 2010-03-28 at 21:13 -0400, M. Ranganathan wrote: >> I want to write a service which depends upon the From header of the >> sip request sent to the proxy however, Sipx does prefix based based on >> request URI of the request. So I propose to do the following: >> >> Write a registrar redirector plugin that works as follows: >> >> 1. Examine the From header. If the From header does not match >> criterion then do nothing. Otherwise step 2. >> 2. Add a prefix to the request URI >> 3. Define a gateway to which requests are routed based upon the prefix >> defined in step 2. >> >> >> Would this be the best way to accomplish what I am trying to do? > > Prefixes are for humans - there's no reason to use them from > redirectors. A redirector can just push a Route onto the contact and do > the whole operation in one (conditional) step.
I do not completely understand the processing hence please help me understand something. Let us say I want to run a service which is a user agent ( generically ). My impression was: If a route is pushed, then the service is visited before the request leaves the proxy. If I put a prefix and let the proxy route to the service as a gateway, then all proxy plugins will run before the service is visited. Is this a correct impression? Thank you in advance. Regards, Ranga. > > > -- M. Ranganathan _______________________________________________ sipx-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-dev Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev sipXecs IP PBX -- http://www.sipfoundry.org/
