<!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> </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 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> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=203373108-29102007> if
(is_method("CANCEL"))
{<BR>
if (!t_check_trans())
{<BR>
# Must be a CANCEL for a transaction that has not been
established.<BR>
# Drop it and the client will resend
it.<BR>
exit;<BR>
}<BR>
else xlog("L_ERR","$rm: tran found flags=0x$mF
bflags=0x$bF\n");<BR>
....</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=203373108-29102007>
t_relay();</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=203373108-29102007>
}<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> </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> </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> </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> </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> </DIV>
<DIV><FONT face=Arial size=2> 1(18475) SIP Request:<BR> 1(18475)
method: <CANCEL><BR> 1(18475)
uri:
<sip:2116872933@altecnet.gr;user=phone><BR> 1(18475) version:
<SIP/2.0><BR> 1(18475) parse_headers: flags=2<BR> 1(18475) Found
param type 232, <branch> = <z9hG4bK-mcodgtqb0696>;
state=6<BR> 1(18475) Found param type 235, <rport> = <n/a>;
state=17<BR> 1(18475) end of header reached, state=5<BR> 1(18475)
parse_headers: Via found, flags=2<BR> 1(18475) parse_headers: this is the
first via<BR> 1(18475) After parse_msg...<BR> 1(18475) preparing to
run routing scripts...<BR> 1(18475) parse_headers:
flags=100<BR> 1(18475) DEBUG:parse_to:end of header reached,
state=10<BR> 1(18475) DBUG:parse_to: display={},
ruri={sip:2116872933@altecnet.gr;user=phone}<BR> 1(18475) DEBUG:
get_hdr_field: <To> [41]; uri=[sip:2116872933@altecnet.gr;user=phone]
<BR> 1(18475) DEBUG: to body
[<sip:2116872933@altecnet.gr;user=phone><BR>]<BR> 1(18475)
get_hdr_field: cseq <CSeq>: <2> <CANCEL><BR> 1(18475)
DEBUG:maxfwd:is_maxfwd_present: value = 70 <BR> 1(18475)
DBG:maxfwd:process_maxfwd_header: value 70 decreased to 10<BR> 1(18475)
check_via_address(213.5.17.236, 213.5.17.236, 0)<BR> 1(18475)
parse_headers: flags=80<BR> 1(18475) DEBUG: add_param:
tag=b59u54s6kf<BR> 1(18475) DEBUG:parse_to:end of header reached,
state=29<BR> 1(18475) DBUG:parse_to: display={"snom"},
ruri={sip:demo2@altecnet.gr}<BR> 1(18475) parse_headers:
flags=200<BR> 1(18475) DEBUG: get_hdr_body :
content_length=0<BR> 1(18475) found end of header<BR> 1(18475)
find_first_route: No Route headers found<BR> 1(18475) loose_route: There is
no Route HF<BR> 1(18475) grep_sock_info - checking if host==us: 11==10
&& [altecnet.gr] == [213.5.43.4]<BR> 1(18475) grep_sock_info
- checking if port 5060 matches port 5060<BR> 1(18475) grep_sock_info -
checking if host==us: 11==10 && [altecnet.gr] ==
[213.5.43.7]<BR> 1(18475) grep_sock_info - checking if port 5060 matches
port 5060<BR> 1(18475) grep_sock_info - checking if host==us: 11==10
&& [altecnet.gr] == [213.5.43.8]<BR> 1(18475) grep_sock_info
- checking if port 5060 matches port 5060<BR> 1(18475) grep_sock_info -
checking if host==us: 11==10 && [altecnet.gr] ==
[213.5.43.9]<BR> 1(18475) grep_sock_info - checking if port 5060 matches
port 5060<BR> 1(18475) grep_sock_info - checking if host==us: 11==12
&& [altecnet.gr] == [172.31.100.5]<BR> 1(18475)
grep_sock_info - checking if port 5060 matches port 5060<BR> 1(18475)
parse_headers: flags=78<BR> 1(18475) DEBUG: t_lookupOriginalT: searching on
hash entry 13236<BR> 1(18475) DEBUG: RFC3261 transaction matched,
tid=-mcodgtqb0696<BR> 1(18475) DEBUG: t_lookupOriginalT: canceled
transaction found (0xb616b3d8)! <BR> 1(18475) DEBUG:tm:REF_UNSAFE: after is
1<BR> 1(18475) DEBUG: t_lookupOriginalT completed<BR> 1(18475) CANCEL:
tran found flags=0x00000000 bflags=0x00000000<BR> 1(18475) route9: CANCEL
sip:2116872933@altecnet.gr;user=phone <null> fl=0x00000000 bfl=0x00000000
branch_id=0<BR> 1(18475) DEBUG: t_newtran: T on
entrance=0xffffffff<BR> 1(18475) parse_headers:
flags=ffffffffffffffff<BR> 1(18475) parse_headers:
flags=78<BR> 1(18475) t_lookup_request: start searching: hash=13236,
isACK=0<BR> 1(18475) DEBUG: RFC3261 transaction matching
failed<BR> 1(18475) DEBUG: t_lookup_request: no transaction
found<BR> 1(18475) DBG: trans=0xb616fc50, callback type 1, id 0
entered<BR> 1(18475) check_via_address(213.5.17.236, 213.5.17.236,
0)<BR> 1(18475) DEBUG:tm:set_timer: relative timeout is
1000000<BR> 1(18475) DEBUG: add_to_tail_of_timer[4]: 0xb616fd9c
(5200000)<BR> 1(18475) DEBUG:tm:set_timer: relative timeout is
3<BR> 1(18475) DEBUG: add_to_tail_of_timer[0]: 0xb616fdb8
(7)<BR> 1(18475) DEBUG: e2e_cancel: e2e cancel proceeding<BR> 1(18475)
parse_headers: flags=ffffffffffffffff<BR> 1(18475)
check_via_address(213.5.17.236, 213.5.17.236, 0)<BR> 1(18475)
WARNING:vqm_resize: resize(0) called<BR> 1(18475) DEBUG:tm:_reply_light:
reply sent out. buf=0x817a358: SIP/2.0 2..., shmem=0xb6171780: SIP/2.0
2<BR> 1(18475) DEBUG:tm:_reply_light: finished<BR> 1(18475)
DEBUG:tm:t_relay_to: new transaction fwd'ed<BR> 1(18475)
DEBUG:tm:UNREF_UNSAFE: after is 0<BR> 1(18475) DEBUG:tm:UNREF_UNSAFE: after
is 0<BR> 1(18475) DEBUG:destroy_avp_list: destroying list
(nil)<BR> 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>