<!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.2800.1607" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face="Courier New" size=2>high.*! <BR><BR>i'm using openser v1.2 and 
am a bit confused about the scope of the flag. just for information about my 
setup: i use openser as gateway between OCSmediation server and asterisk. 
<BR><BR>i learned that the message flags are transaction persistent, which means 
that if i set some flags while processing the INVITE request, these flags must 
be visible also when we process all other requests and replies in scope of the 
same transaction. <BR><BR>and i also learned, that the flags which are set for 
INVITE are visible only when processing 100 (Trying), 180 (Ringing), and 487 
(Request Cancelled). however, the flags are not visible when processing CANCEL, 
200 (OK), and ACK. <BR>thats for the theory. <BR><BR>now i have two problems: 
<BR>first (as i mentioned above) i experienced, that 'my' flags are not that 
visible as they should be. means e.g. i set flag 3 in request route and print it 
out in onreply_route, where it seems not to be set. <BR>see my code below: 
</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>route {</FONT></DIV>
<DIV><SPAN class=874215710-16042008></SPAN><FONT face="Courier New"><FONT 
size=2>.<SPAN class=874215710-16042008>..</SPAN></FONT></FONT></DIV>
<DIV><SPAN class=874215710-16042008><FONT face="Courier New" 
size=2>&nbsp;&nbsp;&nbsp; if (src_ip == 172.xx.xx.xx) {<BR></FONT></SPAN><SPAN 
class=874215710-16042008><FONT face="Courier New" 
size=2>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; relay request to 
*<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
(!t_relay("udp:172.xx.xx.xx:5060")) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
sl_reply_error();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; else {<BR></FONT></SPAN><SPAN 
class=874215710-16042008><FONT face="Courier New" 
size=2>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; relay request to 
OCS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
(!t_relay("tcp:172.xx.xx.xx:5060")) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
sl_reply_error();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; if (method == INVITE) 
setsflag(3);<BR>&nbsp;&nbsp;&nbsp; xlog("L_INFO","$Cyb$rm: mf=$mf, bf=$bf, 
sf=$sf$Cxx\n");<BR>&nbsp;&nbsp;&nbsp; exit;<BR>}</FONT></SPAN></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=874215710-16042008><FONT face="Courier New" 
size=2>onreply_route {<BR>&nbsp;&nbsp;&nbsp; xlog("L_INFO","$Cyr$rs($rr): 
mf=$mf, bf=$bf, sf=$sf$Cxx\n");</FONT></SPAN></DIV>
<DIV><SPAN class=874215710-16042008><FONT face="Courier New" 
size=2>}</FONT></SPAN></DIV>
<DIV><SPAN class=874215710-16042008><FONT face="Courier New" 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2></FONT><BR><FONT face="Courier New" 
size=2>the output is the following<SPAN 
class=874215710-16042008>:</SPAN><BR></FONT></DIV>
<DIV><FONT face="Courier New" size=2>10(10569) INVITE: mf=0, bf=0, 
sf=8<BR>&nbsp;7(10566) 100(Trying): mf=0, bf=0, sf=0<BR>&nbsp;5(10564) 
180(Ringing): mf=0, bf=0, sf=0<BR>&nbsp;8(10567) 200(OK): mf=0, bf=0, 
sf=0<BR>10(10569) ACK: mf=0, bf=0, sf=0<BR>&nbsp;6(10565) BYE: mf=0, bf=0, 
sf=0<BR>11(10570) 200(OK): mf=0, bf=0, sf=0<BR></FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT><BR><FONT face="Courier New" 
size=2>as you can see the flag 3 is only set, while processing the INVITE but 
after this is stays reset. <BR><BR>any ideas which problem i'm facing here? 
<BR><BR><BR>my second problem is, that i need to identify the reply "200 OK" 
which is answered to the relayed INVITE message. as i mentioned above, this will 
not be covered by the flags scope anyways. <IMG alt=Sad 
src="http://www.voipuser.org/modules/PNphpBB2/images/smiles/icon_sad.gif" 
border=0> <BR>is there any possibility to have kind of (real) global variables 
in openser.cfg? <BR><BR>thx &amp; cheers <BR>-hugo</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV></BODY></HTML>