<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
That should be. Try changing one of them to (1<<29) and see if
all works fine.<br>
<br>
On another hand, defining and using core msg flags in a module is a
risk, a different solution has to be done, a simple one is to move
the definition of these flags in the core, so there will be no
overlap in the future.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 2/27/12 9:32 PM, Reda Aouad wrote:
<blockquote
cite="mid:CAA30pc51Djtz0yZovc5uP0mj7rj+4Ji05hBRJsVGbBmRO7hD4A@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><span
style="font-family:tahoma,sans-serif;color:rgb(51,102,255)">I
looked into mediaproxy.c and found the following :</span></div>
<div>
<div><span
style="color:rgb(51,102,255);font-family:tahoma,sans-serif"><br>
</span></div>
<div><span
style="color:rgb(51,102,255);font-family:tahoma,sans-serif">-------------------------------------------------------</span></div>
<div><span
style="color:rgb(51,102,255);font-family:tahoma,sans-serif">#define
FL_USE_MEDIA_PROXY (1<<30)</span></div>
<div><font color="#3366ff" face="tahoma, sans-serif"><br>
</font></div>
<div><font color="#3366ff" face="tahoma, sans-serif">...</font></div>
<div><font color="#3366ff" face="tahoma, sans-serif"><br>
</font></div>
<div><font color="#3366ff" face="tahoma, sans-serif"># dialog
callback</font></div>
<div><span
style="color:rgb(51,102,255);font-family:tahoma,sans-serif"><br>
</span></div>
<div><span
style="color:rgb(51,102,255);font-family:tahoma,sans-serif">_</span><span
style="color:rgb(51,102,255);font-family:tahoma,sans-serif">_dialog_created
(...) {</span></div>
<div><span
style="color:rgb(51,102,255);font-family:tahoma,sans-serif">
</span><span
style="color:rgb(51,102,255);font-family:tahoma,sans-serif"> </span><span
style="color:rgb(51,102,255);font-family:tahoma,sans-serif">....</span></div>
<div><span
style="color:rgb(51,102,255);font-family:tahoma,sans-serif">
<div> if ((request->msg_flags &
FL_USE_MEDIA_PROXY) == 0)</div>
<div> return;</div>
<div> ....</div>
<div> use_media_proxy (...);</div>
<div>}</div>
</span></div>
<div>
<div><span
style="color:rgb(51,102,255);font-family:tahoma,sans-serif">-------------------------------------------------------</span></div>
<br class="Apple-interchange-newline">
</div>
<div><font color="#3366ff" face="tahoma, sans-serif"><br>
</font></div>
<div><font color="#3366ff" face="tahoma, sans-serif">I also
found this in call_control.c</font></div>
<div><span
style="color:rgb(51,102,255);font-family:tahoma,sans-serif">-------------------------------------------------------</span></div>
<div><font color="#3366ff" face="tahoma, sans-serif">#define
FL_USE_CALL_CONTROL (1<<30)</font></div>
<div><font color="#3366ff" face="tahoma, sans-serif"><br>
</font></div>
<div><font color="#3366ff" face="tahoma, sans-serif"># Public
API</font></div>
<div><font color="#3366ff" face="tahoma, sans-serif">CallControl
(...) {</font></div>
<div><font color="#3366ff" face="tahoma, sans-serif">
...</font></div>
<div><font color="#3366ff" face="tahoma, sans-serif">
msg->msg_flags |= FL_USE_CALL_CONTROL;</font></div>
<div><font color="#3366ff" face="tahoma, sans-serif">
...</font></div>
<div><font color="#3366ff" face="tahoma, sans-serif">}</font></div>
<div><span
style="color:rgb(51,102,255);font-family:tahoma,sans-serif">-------------------------------------------------------</span></div>
<div><font color="#3366ff" face="tahoma, sans-serif"><br>
</font></div>
<div><font color="#3366ff" face="tahoma, sans-serif">So I
suspect that since the call_control module uses the same
flag as the mediaproxy module, call_control function is
used, flag 30 is set, and the following condition in the
__dialog_created callback function above is never met</font></div>
<div><span
style="color:rgb(51,102,255);font-family:tahoma,sans-serif"><br>
</span></div>
<div><span
style="color:rgb(51,102,255);font-family:tahoma,sans-serif">
(request->msg_flags & FL_USE_MEDIA_PROXY) ==
0</span>
</div>
<div><span
style="color:rgb(51,102,255);font-family:tahoma,sans-serif"><br>
</span></div>
<div><span
style="color:rgb(51,102,255);font-family:tahoma,sans-serif">so
the callback function continues until executing its last
line : use_media_proxy (...)</span></div>
<div><span
style="color:rgb(51,102,255);font-family:tahoma,sans-serif">which
is called on every call to call_control ( ) function..</span></div>
<div><font color="#3366ff" face="tahoma, sans-serif"><br>
</font></div>
<div>
<div dir="ltr">
<div><font color="#3366ff" face="tahoma, sans-serif">Reda</font></div>
</div>
<br>
<br>
<br>
<div class="gmail_quote">On Mon, Feb 27, 2012 at 18:39, Reda
Aouad <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:reda.aouad@gmail.com" target="_blank">reda.aouad@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#FFFFFF">
<div>Ok thanks Daniel.</div>
<div><br>
</div>
<div>I'll do what you suggested and we'll see how to
proceed.</div>
<div><br>
</div>
<div>Thanks again</div>
<div>Reda</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<blockquote
cite="mid:CAA30pc51Djtz0yZovc5uP0mj7rj+4Ji05hBRJsVGbBmRO7hD4A@mail.gmail.com"
type="cite">
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
</body>
</html>