Hi Kenny,
you have a script problem.
First, which is the error trigger, is the missing "exit" after t_relay()
in the "if" where you process the BYE and CANCEL. Without the exit, the
script will call twice t_relay() for same request.
Second, BYE is an within the dialog request so you need to do
loose_route() for it, Just relaying it based on RURI is not correct at all.
regards,
bogdan
Kenny Chua wrote:
I'm currently having this problem:
SPA 3000 calls UA(xlite). The call goes through and everything is fine.
When SPA 3000 hangs up. UA never hangs up. Seems like its not
receiving the BYE.
However, if the UA hangs up, everything is fine.
This is some error I get:
localhost /usr/local/sbin/openser[3236]: ERROR: t_newtran: transaction
already in process 0xb62f1980
Jun 23 23:07:43 localhost /usr/local/sbin/openser[3236]: ERROR:
sl_reply_error used: I'm terribly sorry, server error occurred (1/SL)
This is how I handle my BYE in openser.cfg:
if (method=="BYE" || method=="CANCEL") {
unforce_rtp_proxy();
t_relay();
};
if (loose_route()) {
if ((method=="INVITE" || method=="REFER") && !has_totag()) {
sl_send_reply("403", "Forbidden");
return;
};
if (method=="INVITE") {
if (!proxy_authorize("","subscriber")) {
proxy_challenge("","0");
return;
} else if (!check_from()) {
sl_send_reply("403", "Use From=ID");
return;
};
consume_credentials();
if (nat_uac_test("19")) {
setflag(6);
force_rport();
fix_nated_contact();
};
force_rtp_proxy("l");
};
t_relay();
route(1);
return;
};
I'm using rtpproxy on the same system. Any ideas how to fix this
issue? Also, I was wondering how do I set rtpproxy to start on
startup? Thank you
------------------------------------------------------------------------
Yahoo! Groups gets better. Check out the new email design.
<http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=41142/*http://groups.yahoo.com/local/newemail.html>
Plus there’s much more to come.
------------------------------------------------------------------------
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users