[Serusers] Handoff to PSTN with a set prefix

Colin Jordan cjordan at econetwireless.com
Tue Sep 20 12:19:12 CEST 2005


I need to send a prefix of 666# followed by full intl number without leading
0's. 
eg. 666#442071016211

The PSTN are connecting me to a Cisco SIP Proxy server, which uses
Tech-prefixes eg 123# to separate and authenticate the calls into different
domains.

Can you please help me?

-----Original Message-----
From: Andreas Granig [mailto:andreas.granig at inode.info] 
Sent: Tuesday, September 20, 2005 10:50 AM
To: Colin Jordan
Cc: serusers at lists.iptel.org; serusers-request at lists.iptel.org
Subject: Re: [Serusers] Handoff to PSTN with a set prefix

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