Hi,

I guess the problem is that t_relay() has a built in mechanism to automatically send negative replies in case of internal error. So, if for some reasons, the relaying failed, the function will internally send a negative reply and return true into the routing script.

there is only one case it can return false: if sending a negative reply due a relying error fails too :)

regards,
bogdan

Daniel-Constantin Mierla wrote:

Hello,

could you run openser in debug mode and send the log messages? Also, please get the ngrep of the call to see which messages were sent on the network.

Cheers,
Daniel

On 08/10/06 17:02, Di-Shi Sun wrote:

Message body follows:

I forgot to mention that I had tried your suggestion.

if (t_relay()) {
  log(1,"SUCCESS .... for t_relay\n");
} else {
  log(1,"FAILED .... for t_relay\n");
}

In "route", if the destination is an empty IP, no any log, OpenSER hangups the call. In failure_route, if the destination is an empty IP, r_relay returns 1 and displays "SUCCESS .... for t_relay"

Thanks,

Di-Shi Sun.

--
This message has been sent to you, a registered SourceForge.net user,
by another site user, through the SourceForge.net site.  This message
has been delivered to your SourceForge.net mail alias.  You may reply
to this message using the "Reply" feature of your email client, or
using the messaging facility of SourceForge.net at:
https://sourceforge.net/sendmessage.php?touser=1470964




_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel



_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to