I do something similar to this.. Here's how... 1. Make a new table of IP to route group. 2. On opensips startup, have it load that key value pair into memcache 3. when a call comes in, toss $si (or $fD or whatever) against the memcache key/value pair to return a route group and then pass THAT to do_routing.
Actually, I think the newer builds you can do something similar to that in concept with the address table in the permissions module. Check that out. -Brett On Tue, Mar 30, 2010 at 9:50 AM, Andrew Pogrebennyk < [email protected]> wrote: > On 26.03.2010 12:30, Bogdan-Andrei Iancu wrote: > > the module extracts the FROM uri from the original message, so it will > > not "see" your change on the from hdr. > > Interesting.. I will have to re-check it but I think that it worked for > me in the past for a similar purpose: > > # validate based on the packet IP address > $var(from) = "sip:" + $fU + "@" + $si; > uac_replace_from("","$var(from)"); > > -- > Sincerely, > Andrew Pogrebennyk > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
