[Serusers] Handoff to PSTN with a set prefix

Andreas Granig andreas.granig at inode.info
Tue Sep 20 10:49:43 CEST 2005


Colin Jordan wrote:
> 	# attemt handoff to PSTN
> 	if (uri=~"^sip:9[0-9] *@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] *@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




More information about the sr-users mailing list