[OpenSIPS-Users] Static Routes in OpenSIPS proxy

andrea a.tani at unifi.it
Thu Nov 18 11:48:08 CET 2010


Hello Bogdan,

Thanks for the reply.
I've already implemented my static routing in a different way, as follows:

 # account only INVITEs
        if (is_method("INVITE")) {
                setflag(1); # do accounting
              if (uri=~"^sip:56[0-9][0-9]@.*") {
                      rewritehostport("150.217.4.23:5060");
                      route(1);
                      return;
               }

Because the incoming requested uri was 56XX at ip_address_proxy, i perform the
check .
Then set the correct host destination with rewritehost, setting the host of
the Pbx where the users 56XX were registered.
The implementation  works fine, what do you think about it?

Regards,
Andrea
 
-- 
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Re-Static-Routes-in-OpenSIPS-proxy-tp5663203p5751151.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.



More information about the Users mailing list