2008/1/14 dim <dim_hatzi@yahoo.gr>:
hi..
I have attached my "running" ser.cfg...in which i want to include something
like :

if (uri =~ "sip:1.*@")  {
                       log("Forwarding to 5070");
                       rewritehostport("localhost:5070");
                       t_relay_to_udp("localhost","5070");
                       break;
}

... in order to uris start from 1 to be forwarded to my other ser (stack for
sems)..

Where exactly in my ser.cfg, should i put this ???

thank you very much...
 
its all depends what exactly trying to achieve
 
if you are looking some one dials 1XXXX and want to send to SEM , you can put them in route logic
 
ram