[OpenSIPS-Users] drouting question
Brett Nemeroff
brett at nemeroff.com
Tue Mar 30 16:58:24 CEST 2010
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 <
andrew.pogrebennyk at portaone.com> 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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100330/a5b0846f/attachment.htm
More information about the Users
mailing list