<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Hello all,<BR>
&nbsp;<BR>
I have a problem when I try to cancel an invite, <BR>
because I have modified the invite method. <BR>
&nbsp;<BR>
In my ser.cfg:<BR>
&nbsp;<BR>
if ((method=="INVITE")&amp;&amp;(!lookup("location"))) {<BR>&nbsp;&nbsp; exec_msg("printenv SRCIP; /bin/bash /usr/local/ser_snapshot/sbin/sms");<BR>&nbsp;&nbsp; sl_send_reply("100", "Trying");<BR>&nbsp;&nbsp; exec_msg("sleep 10");<BR>
&nbsp;&nbsp; if (!lookup("location")){<BR>&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply("100", "Trying");<BR>&nbsp;&nbsp;&nbsp;&nbsp; exec_msg("sleep 10");<BR>&nbsp;&nbsp; } else {<BR>&nbsp;&nbsp;&nbsp;&nbsp; t_relay();<BR>&nbsp;&nbsp;&nbsp;&nbsp; break;<BR>&nbsp;&nbsp; }<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; if (!lookup("location")){<BR>&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply("100", "Trying");<BR>&nbsp;&nbsp;&nbsp;&nbsp; exec_msg("sleep 10");<BR>&nbsp;&nbsp; } else {<BR>&nbsp;&nbsp;&nbsp;&nbsp; t_relay();<BR>&nbsp;&nbsp;&nbsp;&nbsp; break;<BR>&nbsp;&nbsp; }<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp; if (!lookup("location")){<BR>&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply("404", "Not on-line");<BR>&nbsp;&nbsp;&nbsp;&nbsp; break;<BR>&nbsp;&nbsp; } else {<BR>&nbsp;&nbsp;&nbsp;&nbsp; t_relay();<BR>&nbsp;&nbsp;&nbsp;&nbsp; break;<BR>&nbsp;&nbsp; }<BR>&nbsp; };<BR>
&nbsp;<BR>
If I send an INVITE to user2, who is off-line, SER sends a SMS to this user2 and meanwhile<BR>
, sends TRYINGS to me, until user2 sends a REGISTER.<BR>
&nbsp;<BR>
I have a problem, because If I send a CANCEL, SER still sends TRYINGS <BR>
to me and SER doesn`t send "487 Request Terminated" and <BR>
SER doesn´t associate CANCEL and INVITE.<BR>
&nbsp;<BR>
How can I solve this? any idea?<BR>
&nbsp;<BR>
I think that maybe, If I use a mysql table to save CSEQ of CANCEL, <BR>
and before SER sends TRYINGS, SER checks if CSEQ is into table but <BR>
I don´t know if SER can save CANCEL information in a mysql table.<BR>
&nbsp;<BR>
Could someone help me, please?<BR>
&nbsp;<BR>
Thank you very much.<BR>
&nbsp;<BR>
<BR>&nbsp;<BR><br /><hr />Prueba algunos de los nuevos servicios en línea que te ofrece Windows Live Ideas: tan nuevos que ni siquiera se han publicado oficialmente todavía. <a href='http://ideas.live.com' target='_new'>Pruébalo</a></body>
</html>