Greg,
 
I use prefix before sending on to the PSTN gateway. For example
prefix("61");
rewritehost("202.173.179.228");
forward (uri:host, uri:port);
break;
 
Neill......;o)
-----Original Message-----
From: serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Mr Greg Plater
Sent: 17 October 2005 01:06
To: serusers@lists.iptel.org
Subject: [Serusers] Changeing a number dialed for pstn

Hi

 

Does anyone know how I can make a change in my ser.cfg file to change a number dialed

 

 

Example:

 

Someone dials 738211234

 

And I wish to send the number out to pstn as 61738211234

 

 

I use the following to send out 61738211234 but I would rather shorten the numbers dialed by a user and have the 61 auto added.

 

 

 

if (uri=~"^sip:[0-9]{11}@") {    # Domestic PSTN Australia wide

    route(4);

    break;

    };

 

 

 

 

    # -----------------------------------------------------------------

    # PSTN Handler

    # -----------------------------------------------------------------

 

 

    rewritehost("202.173.179.228"); # PSTN GATEWAY IP ADDRESS Asterisk Bridge

 

    avp_write("i:45", "inv_timeout");

 

    route(5);

    route(1);

}

 

route[5] {




avast! Antivirus: Outbound message clean.

Virus Database (VPS): 0541-2, 13/10/2005
Tested on: 17/10/2005 02:38:14
avast! - copyright (c) 1988-2004 ALWIL Software.