<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=203373108-29102007>Hello 
all,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=203373108-29102007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=203373108-29102007>I am running into a 
strange problem with message (or transaction) flags. I set a message flag while 
processing the INVITE, but this flag does not appear in any messages that belong 
to the same transaction. I discovered&nbsp;this while trying to resolved an 
issue with Re-INVITEs. Now I am testing it with a simple INVITE-CANCEL senario 
and I see that again the flag does not appear when processing the CANCEL. My 
script is pretty basic, at least for the CANCEL processing. The debug output is 
at the end of the email.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=203373108-29102007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=203373108-29102007>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if 
(is_method("CANCEL")) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if (!t_check_trans()) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
# Must be a CANCEL for a transaction that has not been 
established.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
# Drop it and the client will resend 
it.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
exit;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
else xlog("L_ERR","$rm: tran found flags=0x$mF 
bflags=0x$bF\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
....</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=203373108-29102007>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
t_relay();</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=203373108-29102007>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR></DIV></SPAN></FONT>
<DIV><FONT face=Arial size=2><SPAN class=203373108-29102007>Searching on the 
internet I came across this</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=203373108-29102007><A 
href="http://openser.org/dokuwiki/doku.php/modules:1.2.x:t_check_trans_comments">http://openser.org/dokuwiki/doku.php/modules:1.2.x:t_check_trans_comments</A></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><A 
href="http://caravan5.webcrossing.com/People/emin-gabrielyan/public/070413-openser-transactions/">http://caravan5.webcrossing.com/People/emin-gabrielyan/public/070413-openser-transactions/</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=203373108-29102007><FONT face=Arial size=2>So what is the 
story? Am I doing something wrong?</FONT></SPAN></DIV>
<DIV><SPAN class=203373108-29102007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=203373108-29102007><FONT face=Arial size=2>thank you for any 
help</FONT></SPAN></DIV>
<DIV><SPAN class=203373108-29102007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=203373108-29102007><FONT face=Arial 
size=2>George</FONT></SPAN></DIV>
<DIV><SPAN class=203373108-29102007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=203373108-29102007></SPAN><SPAN 
class=203373108-29102007></SPAN><SPAN class=203373108-29102007></SPAN><SPAN 
class=203373108-29102007></SPAN><SPAN class=203373108-29102007></SPAN><SPAN 
class=203373108-29102007></SPAN><SPAN class=203373108-29102007></SPAN><FONT 
face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;1(18475) SIP Request:<BR>&nbsp;1(18475)&nbsp; 
method:&nbsp; &lt;CANCEL&gt;<BR>&nbsp;1(18475)&nbsp; 
uri:&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;sip:2116872933@altecnet.gr;user=phone&gt;<BR>&nbsp;1(18475)&nbsp; version: 
&lt;SIP/2.0&gt;<BR>&nbsp;1(18475) parse_headers: flags=2<BR>&nbsp;1(18475) Found 
param type 232, &lt;branch&gt; = &lt;z9hG4bK-mcodgtqb0696&gt;; 
state=6<BR>&nbsp;1(18475) Found param type 235, &lt;rport&gt; = &lt;n/a&gt;; 
state=17<BR>&nbsp;1(18475) end of header reached, state=5<BR>&nbsp;1(18475) 
parse_headers: Via found, flags=2<BR>&nbsp;1(18475) parse_headers: this is the 
first via<BR>&nbsp;1(18475) After parse_msg...<BR>&nbsp;1(18475) preparing to 
run routing scripts...<BR>&nbsp;1(18475) parse_headers: 
flags=100<BR>&nbsp;1(18475) DEBUG:parse_to:end of header reached, 
state=10<BR>&nbsp;1(18475) DBUG:parse_to: display={}, 
ruri={sip:2116872933@altecnet.gr;user=phone}<BR>&nbsp;1(18475) DEBUG: 
get_hdr_field: &lt;To&gt; [41]; uri=[sip:2116872933@altecnet.gr;user=phone] 
<BR>&nbsp;1(18475) DEBUG: to body 
[&lt;sip:2116872933@altecnet.gr;user=phone&gt;<BR>]<BR>&nbsp;1(18475) 
get_hdr_field: cseq &lt;CSeq&gt;: &lt;2&gt; &lt;CANCEL&gt;<BR>&nbsp;1(18475) 
DEBUG:maxfwd:is_maxfwd_present: value = 70 <BR>&nbsp;1(18475) 
DBG:maxfwd:process_maxfwd_header: value 70 decreased to 10<BR>&nbsp;1(18475) 
check_via_address(213.5.17.236, 213.5.17.236, 0)<BR>&nbsp;1(18475) 
parse_headers: flags=80<BR>&nbsp;1(18475) DEBUG: add_param: 
tag=b59u54s6kf<BR>&nbsp;1(18475) DEBUG:parse_to:end of header reached, 
state=29<BR>&nbsp;1(18475) DBUG:parse_to: display={"snom"}, 
ruri={sip:demo2@altecnet.gr}<BR>&nbsp;1(18475) parse_headers: 
flags=200<BR>&nbsp;1(18475) DEBUG: get_hdr_body : 
content_length=0<BR>&nbsp;1(18475) found end of header<BR>&nbsp;1(18475) 
find_first_route: No Route headers found<BR>&nbsp;1(18475) loose_route: There is 
no Route HF<BR>&nbsp;1(18475) grep_sock_info - checking if host==us: 11==10 
&amp;&amp;&nbsp; [altecnet.gr] == [213.5.43.4]<BR>&nbsp;1(18475) grep_sock_info 
- checking if port 5060 matches port 5060<BR>&nbsp;1(18475) grep_sock_info - 
checking if host==us: 11==10 &amp;&amp;&nbsp; [altecnet.gr] == 
[213.5.43.7]<BR>&nbsp;1(18475) grep_sock_info - checking if port 5060 matches 
port 5060<BR>&nbsp;1(18475) grep_sock_info - checking if host==us: 11==10 
&amp;&amp;&nbsp; [altecnet.gr] == [213.5.43.8]<BR>&nbsp;1(18475) grep_sock_info 
- checking if port 5060 matches port 5060<BR>&nbsp;1(18475) grep_sock_info - 
checking if host==us: 11==10 &amp;&amp;&nbsp; [altecnet.gr] == 
[213.5.43.9]<BR>&nbsp;1(18475) grep_sock_info - checking if port 5060 matches 
port 5060<BR>&nbsp;1(18475) grep_sock_info - checking if host==us: 11==12 
&amp;&amp;&nbsp; [altecnet.gr] == [172.31.100.5]<BR>&nbsp;1(18475) 
grep_sock_info - checking if port 5060 matches port 5060<BR>&nbsp;1(18475) 
parse_headers: flags=78<BR>&nbsp;1(18475) DEBUG: t_lookupOriginalT: searching on 
hash entry 13236<BR>&nbsp;1(18475) DEBUG: RFC3261 transaction matched, 
tid=-mcodgtqb0696<BR>&nbsp;1(18475) DEBUG: t_lookupOriginalT: canceled 
transaction found (0xb616b3d8)! <BR>&nbsp;1(18475) DEBUG:tm:REF_UNSAFE: after is 
1<BR>&nbsp;1(18475) DEBUG: t_lookupOriginalT completed<BR>&nbsp;1(18475) CANCEL: 
tran found flags=0x00000000 bflags=0x00000000<BR>&nbsp;1(18475) route9: CANCEL 
sip:2116872933@altecnet.gr;user=phone &lt;null&gt; fl=0x00000000 bfl=0x00000000 
branch_id=0<BR>&nbsp;1(18475) DEBUG: t_newtran:&nbsp; T on 
entrance=0xffffffff<BR>&nbsp;1(18475) parse_headers: 
flags=ffffffffffffffff<BR>&nbsp;1(18475) parse_headers: 
flags=78<BR>&nbsp;1(18475) t_lookup_request: start searching: hash=13236, 
isACK=0<BR>&nbsp;1(18475) DEBUG: RFC3261 transaction matching 
failed<BR>&nbsp;1(18475) DEBUG: t_lookup_request: no transaction 
found<BR>&nbsp;1(18475) DBG: trans=0xb616fc50, callback type 1, id 0 
entered<BR>&nbsp;1(18475) check_via_address(213.5.17.236, 213.5.17.236, 
0)<BR>&nbsp;1(18475) DEBUG:tm:set_timer: relative timeout is 
1000000<BR>&nbsp;1(18475) DEBUG: add_to_tail_of_timer[4]: 0xb616fd9c 
(5200000)<BR>&nbsp;1(18475) DEBUG:tm:set_timer: relative timeout is 
3<BR>&nbsp;1(18475) DEBUG: add_to_tail_of_timer[0]: 0xb616fdb8 
(7)<BR>&nbsp;1(18475) DEBUG: e2e_cancel: e2e cancel proceeding<BR>&nbsp;1(18475) 
parse_headers: flags=ffffffffffffffff<BR>&nbsp;1(18475) 
check_via_address(213.5.17.236, 213.5.17.236, 0)<BR>&nbsp;1(18475) 
WARNING:vqm_resize: resize(0) called<BR>&nbsp;1(18475) DEBUG:tm:_reply_light: 
reply sent out. buf=0x817a358: SIP/2.0 2..., shmem=0xb6171780: SIP/2.0 
2<BR>&nbsp;1(18475) DEBUG:tm:_reply_light: finished<BR>&nbsp;1(18475) 
DEBUG:tm:t_relay_to: new transaction fwd'ed<BR>&nbsp;1(18475) 
DEBUG:tm:UNREF_UNSAFE: after is 0<BR>&nbsp;1(18475) DEBUG:tm:UNREF_UNSAFE: after 
is 0<BR>&nbsp;1(18475) DEBUG:destroy_avp_list: destroying list 
(nil)<BR>&nbsp;1(18475) receive_msg: cleaning up<BR></FONT></DIV></BODY><!--[object_id=#altectelecoms.gr#]--><FONT face=Tahoma size=2><FONT color=#0000ff>
<H1><FONT face="Arial Greek" color=#c0c0c0 size=2><SPAN lang=EN-GB>Disclaimer</SPAN></FONT></H1>
<P class=MsoNormal style="MARGIN: 5pt 0cm; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-US; mso-fareast-language: EN-US">The information in this e-mail and any attachments is confidential. It is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or person responsible for delivering this information to the intended recipient, please notify the sender immediately. Unless you are </SPAN><SPAN lang=EN-GB style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-GB; mso-fareast-language: EN-US">the</SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-US; mso-fareast-language: EN-US"> intended recipient or his/her representative you are not authorized to, and must not, read, copy, distribute, use or retain this message or any part of it. E-mail transmission cannot be</SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-GB; mso-fareast-language: EN-US"> </SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-US; mso-fareast-language: EN-US">guaranteed to be secure or error-free as information could be</SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-GB; mso-fareast-language: EN-US"> </SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-US; mso-fareast-language: EN-US">intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.</SPAN><SPAN lang=EN-GB style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-GB; mso-fareast-language: EN-US"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P></FONT></FONT></HTML>