<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2745.2800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>After I made my accounting up and working I've
changed something and it's not working now would you help me please.
</FONT></DIV>
<DIV><FONT face=Arial size=2>The problem is that when I forward the call to pstn
gateway when user closes the line the "BYE" request is not written </FONT></DIV>
<DIV><FONT face=Arial size=2>in the database - it exists but it's not written -
here it is</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> 3(17265) SIP Request:<BR> 3(17265)
method: <BYE><BR> 3(17265) uri:
<sip:pavel@192.168.2.111:19454><BR> 3(17265) version:
<SIP/2.0><BR> 3(17265) parse_headers: flags=1<BR> 3(17265)
get_hdr_field: cseq <CSeq>: <1> <BYE><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Here is part of my ser.cfg</DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>modparam("acc", "log_flag", 1)<BR>modparam("acc",
"log_fmt", "cdfimorstup")<BR>modparam("acc", "db_url",
"mysql://user:pass@192.168.2.113:3306/ser")<BR>modparam("acc", "db_flag",
1)<BR>modparam("acc", "db_missed_flag", 1)<BR>modparam("acc", "log_missed_flag",
1)<BR>#modparam("acc", "report_cancels", 1)<BR>modparam("acc", "report_ack",
1)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>.......</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> if
(uri=~"^sip:[0-9]*@sip.mydomain.com")
{<BR>
if (is_user_in("From",
"pstn")){<BR>
rewritehost("pstn_gw_ip");<BR>
append_branch("pstn_gw_ip");<BR>
setflag(1);<BR>
record_route();<BR>
force_rtp_proxy();<BR>
t_relay();<BR>
t_on_reply("1");</FONT></DIV>
<DIV><FONT face=Arial
size=2>
if (loose_route())
{<BR>
t_relay();<BR>
break;<BR>
};<BR>
break;<BR>
}<BR>
else
{<BR>
sl_send_reply("399", "Your account balance is
low!");<BR>
};<BR>
break;<BR>
};</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>What's is the problem please help me. </FONT></DIV>
<DIV><FONT face=Arial size=2>Thanks in advance!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Pavel Siderov</FONT></DIV></BODY></HTML>