[Users] Getting Started - Basic Proxy

Glenn Dalgliesh glenn at routerboy.com
Fri Mar 10 15:26:36 CET 2006


yes, at least in my case I have only used gateways that auth by IP
  ----- Original Message ----- 
  From: Roberto Pereyra 
  To: Glenn Dalgliesh 
  Cc: Robert Kennedy ; users at openser.org 
  Sent: Friday, March 10, 2006 8:49 AM
  Subject: Re: [Users] Getting Started - Basic Proxy


  Hi

  Where I write the sip server (pstn gateway) username and password ?

  Or the gateway must  allow per IP or host logins ?

  roberto


  2006/3/10, Glenn Dalgliesh <glenn at routerboy.com>:
    You most likely need to add a section in the correct location in the cfg to change the dst based on the dialed digits such as below. You need to keep in mind where you put this in the script. Keep in mind that you don't want to step on the lookup for locally registered contacts. 

      
                    if (uri=~"^sip:1[0-9]{10}@") || (uri=~"^sip:[0-9]{10}@") || (uri=~"^sip:011[0-9]+ at .*") {
                            if (uri=~"^sip:[0-9]{10}@") {
                                    prefix("1"); # if sip provider require leading 1
                            };
                            rewritehostport("192.168.1.1:5060"); # to you sip provider
                            
                            route(1); # send to t_relay route section
                            return;
                    };


      ----- Original Message ----- 
      From: Robert Kennedy 
      To: users at openser.org 
      Sent: Friday, March 10, 2006 7:29 AM
      Subject: [Users] Getting Started - Basic Proxy


      Im currently learning OpenSer and have accomplished the following:

      Installed: Centos 4.2
      OpenSer: V1.0.1

      I have 2 x-lite client registering and calling each other.


      Question: How do I proxy on SIP requests to a 3rd part SIP Provider. eg. Sipgate

      xlite --->  Ser ---> Sipgate

      Im just getting confused on how to configure the next hop routing?

      Currently as expected im getting a 404 Not Found unless I call one of the x-lite phones. I want to be able to terminate out to a SIP-to-PSTN provider.

      Regards

      Rob.


--------------------------------------------------------------------------


      _______________________________________________
      Users mailing list
      Users at openser.org
      http://openser.org/cgi-bin/mailman/listinfo/users



    _______________________________________________
    Users mailing list
    Users at openser.org
    http://openser.org/cgi-bin/mailman/listinfo/users






  -- 
  Ing. Roberto Pereyra
  ContenidosOnline
  Servidores BSD, Solaris y Linux
  Soporte técnico ISPs
  Jabber ID: rpereyra at lugmen.org.ar

  For reliable and professional DNS, use DNS Made Easy!
              http://www.dnsmadeeasy.com/u/14989 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20060310/64ab942e/attachment.htm>


More information about the sr-users mailing list