The reqular expression is not correct, it should be something like this:
if (uri =~ "^sip:1.*")
Jan.
On 07-06 09:15, gc wrote:
I am having problem using PSTN(AS5300). I have a VOCAL
setup on the same machine and PSTN works fine with VOCAL. Now I want to test SER on the
same machine. I shut down VOCAL and start SER. I can make SIP to SIP calls but can not
make SIP to PSTN call. In my ser.cfg, I redirect all the calls starting with 1 to the PSTN
like this:
if (uri=~"^1.*"){
log(1,"Forwarding to PSTN\n");
record_reoute();
rewritehostport("PSTN IP:PORT");
};
Do I need any specific module for PSTN to work? How can I debug this?
Gary
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers