[Serusers] Changeing a number dialed for pstn

Neill Wilkinson neill.wilkinson at btinternet.com
Mon Oct 17 03:38:14 CEST 2005


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 at iptel.org [mailto:serusers-bounces at lists.iptel.org] On
Behalf Of Mr Greg Plater
Sent: 17 October 2005 01:06
To: serusers at 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.
http://www.avast.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20051017/0295fcc2/attachment.htm>


More information about the sr-users mailing list