<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:v = "urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<STYLE>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</STYLE>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=TR vLink=purple link=blue bgColor=white>
<DIV>session.py will show if the session is active. Also when a call is put on 
hold, there will be no rtp stream. I don't know if your SBC handles that.</DIV>
<DIV>Or is your question something else?</DIV>
<DIV>g-)</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=hakan.yasti@teletek.net href="mailto:hakan.yasti@teletek.net">Hakan 
  YASTI</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=greger@teigre.com 
  href="mailto:greger@teigre.com">Greger V. Teigre</A> ; <A 
  title=serusers@lists.iptel.org 
  href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A> ; <A 
  title=ritesh.j@net4.in href="mailto:ritesh.j@net4.in">ritesh.j@net4.in</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, October 26, 2005 09:18 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Serusers] end the session 
  if no media</DIV>
  <DIV><BR></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi 
  Teigre,<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks for your reply 
  and kind suggestions. In fact, I am using a session controller for sip calls. 
  And it alerts me via email when a sessiıon is reached for about 60 minutes. At 
  that time,<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I check it manually 
  and kil the session if the session is abondened. By sending BYE messages to 
  both legs. From the PSTN side I get the reply what I assume ( 200 OK ) but 
  from the sip side I get No transaction exist.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Because the session 
  was ended before and session controller couldn’t get the BYE message for some 
  reasons. ( Network failure or something else ).<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">What I am looking for 
  that, from the media proxy, I see the active rtp session when I use media 
  proxy for the calls. And I assume that, when the call has finished and 
  couldn’t send or get BYE message, there will be no rtp stream going on. May be 
  I am wrong for this. If rtp session is still open when the a side hunp up and 
  couldn’t send bye , there is nothing to do except killing the session with 
  sending bye messages to both sides, because there is no way to understand the 
  call is active or not.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Best 
  Regards,<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hakan<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <DIV>
  <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
  face="Times New Roman" size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt">
  <HR tabIndex=-1 align=center width="100%" SIZE=2>
  </SPAN></FONT></DIV>
  <P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN lang=EN-US 
  style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT 
  face=Tahoma size=2><SPAN lang=EN-US 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> Greger V. Teigre 
  [mailto:greger@teigre.com] <BR><B><SPAN 
  style="FONT-WEIGHT: bold">Sent:</SPAN></B> Wednesday, October 26, 2005 10:00 
  AM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Hakan YASTI; 
  serusers@lists.iptel.org; ritesh.j@net4.in<BR><B><SPAN 
  style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [Serusers] end the session 
  if no media</SPAN></FONT><SPAN lang=EN-US><o:p></o:p></SPAN></P></DIV>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <DIV>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">Hakan and Ritesh,<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">It seems to me that you are both asking about the same 
  thing. This topic has been discussed many times on serusers. Search google 
  (site:mail.iptel.org) for "BYE stateful sipsak", I'm pretty sure you will get 
  some info.<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">Also, this FAQ could 
  help:<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"><A 
  href="http://www.onsip.org/modules/xoopsfaq/index.php?cat_id=3#q2">http://www.onsip.org/modules/xoopsfaq/index.php?cat_id=3#q2</A><o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">g-)<o:p></o:p></SPAN></FONT></P></DIV>
  <BLOCKQUOTE 
  style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0cm; MARGIN: 5pt 0cm 5pt 3.75pt; BORDER-LEFT: black 1.5pt solid; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none">
    <DIV>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">----- Original Message ----- 
    <o:p></o:p></SPAN></FONT></P></DIV>
    <DIV style="font-color: black">
    <P class=MsoNormal style="BACKGROUND: #e4e4e4"><B><FONT face=Arial 
    size=2><SPAN 
    style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">From:</SPAN></FONT></B><FONT 
    face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> <A 
    title=hyasti@teletek.net href="mailto:hyasti@teletek.net">Hakan YASTI</A> 
    <o:p></o:p></SPAN></FONT></P></DIV>
    <DIV>
    <P class=MsoNormal><B><FONT face=Arial size=2><SPAN 
    style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">To:</SPAN></FONT></B><FONT 
    face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> <A 
    title=serusers@lists.iptel.org 
    href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A> 
    <o:p></o:p></SPAN></FONT></P></DIV>
    <DIV>
    <P class=MsoNormal><B><FONT face=Arial size=2><SPAN 
    style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">Sent:</SPAN></FONT></B><FONT 
    face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> 
    Thursday, October 13, 2005 09:13 AM<o:p></o:p></SPAN></FONT></P></DIV>
    <DIV>
    <P class=MsoNormal><B><FONT face=Arial size=2><SPAN 
    style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">Subject:</SPAN></FONT></B><FONT 
    face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> 
    [Serusers] end the session if no media<o:p></o:p></SPAN></FONT></P></DIV>
    <DIV>
    <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
    style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P></DIV>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi,<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I wonder, is there any way, to 
    &nbsp;end the session when the media has ended. Sometimes, we have problem 
    at BYE message. For some reasons, the bye is not coming and may be it is 
    coming wrong.<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">At that time, the media is ended 
    but the call is seen as active.<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I am using ser and using media 
    proxy.<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Any suggestion for this issue 
    ?<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Best 
    Regards,<o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=MsoNormal 
    style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><FONT 
    face=Arial color=olive size=1><SPAN 
    style="FONT-SIZE: 7.5pt; COLOR: olive; FONT-FAMILY: Arial">Hakan 
    YASTI</SPAN></FONT><SPAN lang=IT><o:p></o:p></SPAN></P>
    <P class=MsoNormal 
    style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><FONT 
    face=Arial color=olive size=1><SPAN 
    style="FONT-SIZE: 7.5pt; COLOR: olive; FONT-FAMILY: Arial">NGN 
    Engineer</SPAN></FONT><o:p></o:p></P>
    <P class=MsoNormal 
    style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><FONT 
    face="Times New Roman" color=olive size=1><SPAN 
    style="FONT-SIZE: 7.5pt; COLOR: olive">Teletek Telekomünikasyon Hizmetleri 
    A.Þ.<BR>Ayazma Dere Cad. Akþit Plaza No:12<BR>Fulya, Beþiktaþ ISTANBUL - 
    TURKEY<BR><BR>Tel : +90 212 310 22 34<BR>Fax : +90 212 227 8700<BR>GSM : +90 
    533 669 06 84</SPAN></FONT><o:p></o:p></P>
    <P class=MsoNormal 
    style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><FONT 
    face="Times New Roman" color=olive size=1><SPAN 
    style="FONT-SIZE: 7.5pt; COLOR: olive">E-mail: <A 
    href="mailto:hakan.yasti@teletek.net"><SPAN 
    title=mailto:hakan.yasti@teletektelekom.com><SPAN 
    title=mailto:hakan.yasti@teletektelekom.com>hakan.yasti@teletek.net</A></SPAN></SPAN></SPAN></FONT><BR><FONT 
    color=olive size=1><SPAN style="FONT-SIZE: 7.5pt; COLOR: olive"><A 
    href="http://www.teletek.net">http://www.teletek.net</A></SPAN></FONT><o:p></o:p></P>
    <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
    style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
    face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
    <HR align=center width="100%" SIZE=2>
    </SPAN></FONT></DIV>
    <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
    style="FONT-SIZE: 12pt">_______________________________________________<BR>Serusers 
    mailing 
    list<BR>serusers@lists.iptel.org<BR>http://lists.iptel.org/mailman/listinfo/serusers<o:p></o:p></SPAN></FONT></P></BLOCKQUOTE></DIV>
  <P></P>
  <P>Disclaimer:<BR>This e-mail (including any attachments) may contain 
  confidential and/or privileged information. Copying, disclosure or 
  distribution of the material in this e-mail without our companys' authority is 
  strictly forbidden. If you are not the intended recipient (or have received 
  this e-mail in error), please notify the sender and delete it from your system 
  immediately. Our Company makes no warranty as to the accuracy or completeness 
  of any information contained in this message and hereby excludes any liability 
  of any kind for the information contained therein or for the information 
  transmission, reception, storage or use of such in any way whatsoever. Any 
  opinions expressed in this message are those of the author and may not 
  necessarily reflect the opinions of Our Company.<BR>Yasal Uyarı: <BR>Bu 
  e-posta'nin içerdigi bilgiler (ekleri de dahil olmak üzere) gizlidir. 
  Şirketimizin onayı olmaksızın içeriği kopyalanamaz, üçüncü kişilere 
  açıklanamaz veya iletilemez . Bu mesajın gönderilmek istendiği kişi değilseniz 
  (ya da bu e-posta’yı yanlışlıkla aldıysanız), lütfen yollayan kişiyi haberdar 
  ediniz ve mesajı sisteminizden derhal siliniz. Şirketimiz bu mesajın içerdigi 
  bilgilerin doğruluğu veya eksiksiz olduğu konusunda bir garanti vermemektedir. 
  Bu nedenle bilgilerin ne şekilde olursa olsun içeriğinden, iletilmesinden, 
  alınmasından, saklanmasından sorumlu değildir. Bu mesajın içeriği yazarına ait 
  olup, Şirketimizin görüşlerini içermeyebilir. </P></BLOCKQUOTE></BODY></HTML>