[Serusers] Handoff to PSTN
Star Bravo
star.bravo at gmail.com
Wed Sep 21 09:50:31 CEST 2005
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]*@gaco.co.za <http://gaco.co.za/>") {
log ("Forwarding to PSTN\n");
t_relay_to_udp("217.15.11.87 <http://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 at 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 at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050921/5d5e6e75/attachment.htm>
More information about the sr-users
mailing list