<!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.2737.800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Trebuchet MS" size=2>When the caller to the offline user 
(connected to SEMS) hungup first the BYE message must be sent to SEMS for 
release the call.</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2>How i can send the BYE to SEMS only if the 
user that hungup are talking to SEMS ?</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2>Ex:</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2>if ( BYE or CANCEL ) {</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2>&nbsp;&nbsp; if (for established SEMS 
session) {</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2>&nbsp;&nbsp;&nbsp; 
vm("/tmp/am_fifo","bye")</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2>&nbsp;&nbsp; } else {</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2>&nbsp;&nbsp;&nbsp; 
end_media_session();</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2>&nbsp;&nbsp;&nbsp; t_relay();</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2>&nbsp;&nbsp; };</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2>break;</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2>};</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2>Thanks</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2>Ezequiel 
Colombo</FONT></DIV></BODY></HTML>