I need to send a prefix of 666# followed by full intl number without leading
0's.
eg. 666#442071016211
-----Original Message-----
From: Andreas Granig [mailto:andreas.granig@inode.info]
Sent: Tuesday, September 20, 2005 10:50 AM
To: Colin Jordan
Cc: serusers(a)lists.iptel.org; serusers-request(a)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] *(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
DISCLAIMER: The information in this message is confidential and is legally
privileged. It is intended solely for the addressee. Access to this message by
anyone else is unauthorized.If receiving in error please accept our apologies
and notify the sender immediately. You must also delete the original
message from your machine. If you are not the intended recipient, any use,
disclosure, copying, distribution or action taken in reliance of it, is prohibited
and maybe
unlawful.