I have done all of this, but it does not work. Can I perhaps send you the ser.cfg file?

 


From: Star Bravo [mailto:star.bravo@gmail.com]
Sent: Wednesday, September 21, 2005 9:51 AM
To: Colin Jordan
Cc: serusers@lists.iptel.org; serusers-request@lists.iptel.org
Subject: Re: [Serusers] Handoff to PSTN

 

You aren't putting the handoff to PSTN part in the right place. It should be as follows;

 

if (uri==myself) {

               if (method=="REGISTER") {

# Uncomment this if you want to use digest authentication
       if (!www_authorize(" gaco.co.za", "subscriber")) {
       www_challenge("gaco.co.za", "0");
       break;
       };

                       save("location");
                       break;
               };
 

       # attemt handoff to PSTN
       if (uri=~"^sip:9[0-9]*@
gaco.co.za") {
          log ("Forwarding to PSTN\n");
          t_relay_to_udp("
217.15.11.87","5060");
          break;
          };

               # native SIP destinations are handled using our USRLOC DB
               if (!lookup("location")) {
                       sl_send_reply("404", "Not Found");
                       break;
               };
       };
       # forward to current uri now; use stateful forwarding; that
       # works reliably even if we forward from TCP to UDP
       if (!t_relay()) {
               sl_reply_error();

       };
}
 

 


 

On 9/21/05, Colin Jordan <cjordan@econetwireless.com> wrote:

I have a big problem handing my call of to the PSTN, It give me a 404 error (not connected). What can I do to fix this?

 

My handoff script looks like this:

 

if (uri=~"^sip:9[0-9] *@ gaco.co.za") {

         log ("Forwarding to PSTN\n");

         prefix("666#");

         t_relay_to_udp(" 217.15.11.87","5060");

         break;

         };

 

The PSTN interconnect description:

 

1) I need to send a prefix of 666# followed by full intl number without leading 0's.

eg. 666#442071016211

 

2) The PSTN are connecting me to a Cisco SIP Proxy server, which uses Tech-prefixes eg 123# to separate and authenticate the calls into different domains.

 

 

What can I do to get it working?

 

DISCLAIMER: The information in this message is confidential and is legally
privileged. It is intended solely for the addressee. Access to this message by
anyone else is unauthorized.If receiving in error please accept our apologies
and notify the sender immediately. You must also delete the original
message from your machine. If you are not the intended recipient, any use,
disclosure, copying, distribution or action taken in reliance of it, is prohibited
and maybe
unlawful.



_______________________________________________
Serusers mailing list
serusers@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers

 

DISCLAIMER: The information in this message is confidential and is legally
privileged. It is intended solely for the addressee. Access to this message by
anyone else is unauthorized.If receiving in error please accept our apologies
and notify the sender immediately. You must also delete the original
message from your machine. If you are not the intended recipient, any use,
disclosure, copying, distribution or action taken in reliance of it, is prohibited
and maybe
unlawful.