Hi there
I have made the changes but it still gives me a 404 error. The PSTN is based in London, but what is confusing me is the interconnect dial example. What do you think?
Best regards,
Colin
_____
From: Nhadie [mailto:nhadie@cbcpworld.com] Sent: Wednesday, September 21, 2005 11:14 AM To: Colin Jordan Cc: serusers@lists.iptel.org Subject: Re: [Serusers] Handoff to PSTN
Hi Colin,
Based on your interconnection description you should send 666#country code + area code + tel no.
How do your users dial? Do they dial 9 + 00 + country code + area code + tel no. Or do they dial 9 + country code + area code + tel no.?
If it's the first one try this
# attemt handoff to PSTN if (uri=~"^sip:9[0-9]*@ http://gaco.co.za/ gaco.co.za") { log ("Forwarding to PSTN\n"); strip(3); prefix(666#); rewritehostport("217.15.11.87:5060"); t_relay_to_udp(" http://217.15.11.87/ 217.15.11.87","5060"); break; };
if it's the latter # attemt handoff to PSTN if (uri=~"^sip:9[0-9]*@ http://gaco.co.za/ gaco.co.za") { log ("Forwarding to PSTN\n"); strip(1); prefix(666#); rewritehostport("217.15.11.87:5060"); t_relay_to_udp(" http://217.15.11.87/ 217.15.11.87","5060"); break; }; HTH
Regards, Nhadie
Colin Jordan wrote:
I have done all of this, but it does not work. Can I perhaps send you the ser.cfg file?
_____
From: Star Bravo [mailto:star.bravo@gmail.com] Sent: Wednesday, September 21, 2005 9:51 AM To: Colin Jordan Cc: serusers@lists.iptel.org; serusers-request@lists.iptel.org Subject: Re: [Serusers] Handoff to PSTN
You aren't putting the handoff to PSTN part in the right place. It should be as follows;
if (uri==myself) {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication if (!www_authorize(" gaco.co.za http://gaco.co.za/ ", "subscriber")) { www_challenge("gaco.co.za http://gaco.co.za/ ", "0"); break; };
save("location"); break; };
# attemt handoff to PSTN if (uri=~"^sip:9[0-9]*@ http://gaco.co.za/ gaco.co.za") { log ("Forwarding to PSTN\n"); t_relay_to_udp(" http://217.15.11.87/ 217.15.11.87","5060"); break; };
# native SIP destinations are handled using our USRLOC DB if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; }; }; # forward to current uri now; use stateful forwarding; that # works reliably even if we forward from TCP to UDP if (!t_relay()) { sl_reply_error();
}; }
On 9/21/05, Colin Jordan cjordan@econetwireless.com wrote:
I have a big problem handing my call of to the PSTN, It give me a 404 error (not connected). What can I do to fix this?
My handoff script looks like this:
if (uri=~"^sip:9[0-9] *@ gaco.co.za http://gaco.co.za/ ") {
log ("Forwarding to PSTN\n");
prefix("666#");
t_relay_to_udp(" 217.15.11.87 http://217.15.11.87/ ","5060");
break;
};
The PSTN interconnect description:
1) I need to send a prefix of 666# followed by full intl number without leading 0's.
eg. 666#442071016211
2) 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.
What can I do to get it working?
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.
_______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
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.
_____
_______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
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.