[Serusers] query about routing

Steve Blair blairs at isc.upenn.edu
Sat Jun 17 14:16:22 CEST 2006


Aman:

 I am not sure I completely understand your question. It sounds like you 
are asking how to relay the invite message to a gateway.  What follows 
is a basic template. I hope it helps.

-Steve

-----

     if (lookup("location") | lookup("aliases") )
     {
       xlog("L_INFO", "\n[SER]: [%Tf] Call to local proxy user: From: 
<%fu> To: <%tu>
         Method: <%rm> R-uri: <%ru> \n");
       t_relay();
       break;
     };

     #
     # send all local calls to gateway
     #
     if ( (uri=~"^sip:(9610|9215|9484|9267)[0-9]{7}@your-sip-domain-name") )
     {
       xlog("L_INFO", "\n[SER]: [Route0 %Tf] Outbound LOCAL call. Going 
to route block #3\n");
       route(3); <-- This can be any route block number.
       break;
     };

then in route block #3

route[3] {

  log(1, "[SER]: Forwarding Local call to gateway\n");
  rewritehostport("<gateway IP address>:5060");
  t_relay();
  break;
 };
-----

Aman Sachdeva wrote:

> sir,
>  I am aman sachdeva working in positive comsole on voip project. i am 
> using ur server(sip express router) for trial. sir i need ur help to  
> fulfill my requirement is that to add gateway, that means my client 
> call  using softphone and sip express  router server ,  route that 
> call to to x.x.x.x (ip). the server is install in other ip. such as
> clent---->dial a number using softphone(9891713625)----------->sip 
> express royter server is install on y.y.y.y,add prefix and routing 
> ip(xxxxx919891713625 at x.x.x.x 
> <mailto:xxxxx919891713625 at x.x.x.x>)-------->x.x.x.x(ip) server.
>
> i found a script file in ser0.9.6(scripts) folder serconf.sh and i run 
> this file with the parameter dominname and routing ip.
> but it dosenot route to x.x.x.x(routing ip).
>
> could u please tell me where i can change  in the source code or 
> script file so that my call is routing to other server.
> thanks
> Regards
> Aman Sachdeva
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Serusers mailing list
>Serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>  
>



More information about the sr-users mailing list