Hello,
I have a strange problem. Sometimes a user is calling to a PSTN Gateway (prefix 00) and ser is routing it correctly, but sometimes ser sends back a "NOT FOUND" to the user before forwarding the call to the Gateway... then the gateway sends back many "OK" messages that never reaches the caller.
Why does that happen? Is ser too slow for the caller (I use a database for the routing)??
Thanks for your answer!!!
Sebastian Kühner wrote:
I have a strange problem. Sometimes a user is calling to a PSTN Gateway (prefix 00) and ser is routing it correctly, but sometimes ser sends back a "NOT FOUND" to the user before forwarding the call to the Gateway... then the gateway sends back many "OK" messages that never reaches the caller.
Maybe you've forgotten a "break;" somewhere after routing to PSTN?
Andy
Hi!
At the end of the PSTN-routing (route(3)) I make:
if (!t_relay()) { sl_reply_error(); break; };
Isn't that enough?
Well, at the end of all routings I put sl_send_reply("404", "Not Found");
...but this is after
# Numbers with more that 6 Numbers (until 30) are forwarded to the PSTN - Gateway if (uri=~"sip:[0-9]{6,30}@.*") { route(3); break; };
...so ser never shouldn't reach this code.
Thanks!
Sebastian
----- Original Message ----- From: "Andreas Granig" andreas.granig@inode.info To: "Sebastian Kühner" skuehner@veraza.com Cc: serusers@lists.iptel.org Sent: Monday, August 08, 2005 3:36 PM Subject: Re: [Serusers] Not found
Sebastian Kühner wrote:
I have a strange problem. Sometimes a user is calling to a PSTN Gateway (prefix 00) and ser is routing it correctly, but sometimes ser sends
back a
"NOT FOUND" to the user before forwarding the call to the Gateway...
then
the gateway sends back many "OK" messages that never reaches the caller.
Maybe you've forgotten a "break;" somewhere after routing to PSTN?
Andy
Hello,
What do I have to respond to a NOTIFY message?
I need something like this:
if (method=="NOTIFY") { ...do something };
Thanks!
Sebastian
if (method=="NOTIFY") { sl_send_reply(200,"Whuut"); break;
};
--Atle
* Sebastian K?hner skuehner@veraza.com [050808 23:34]:
Hello,
What do I have to respond to a NOTIFY message?
I need something like this:
if (method=="NOTIFY") { ...do something };
Thanks!
Sebastian
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers