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] {