Colin Jordan wrote:
# attemt handoff to PSTN
if (uri=~"^sip:9[0-9] *(a)gaco.co.za") {
log ("Forwarding to PSTN\n");
t_relay_to_udp("217.15.11.87","5060");
t_relay_to_tcp("217.15.11.87","5060");
break;
};
Hm? Both UDP and TCP?
Try:
if (uri=~"^sip:9[0-9] *(a)gaco.co.za") {
log ("Forwarding to PSTN\n");
prefix("666#");
t_relay_to_udp("217.15.11.87","5060");
break;
};
I'm not sure about the "#" and if it's parsed correctly or if it's
treated as start of a comment, haven't ever tried that.
Andy