[Serusers] Changeing a number dialed for pstn

Mr Greg Plater gplater at da-bratz.com
Mon Oct 17 02:05:32 CEST 2005


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] {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20051017/d52c7cba/attachment.htm>


More information about the sr-users mailing list