Hello again,<div><br></div><div>I have a new question for you: </div><div><br></div><div>In my final project, I have to simulate the public and private network , that&#39;s why I use 2 different subnet !</div><div><br></div>
<div>On my servers machine I have kamailio 3.2.3 in realtime with Asterisk ! </div><div><br></div><div>The subnet of asterisk and kamailio is 192.168.1.9 255.255.255.0 , and I created an other virtual interface eth0:1 in 172.16.0.10 .</div>
<div><br></div><div>My puprose is that kamailio use nat and rtpproxy which will be on 172.16.0.10!! My issue is that when I create a new virtual interface, directly Kmaailio listen automatically in UDP TLS TCP on this new address. I don&#39;t want this!! </div>
<div><br></div><div>I want Kamailio still listening on 192.168.1.9 in tls udp tcp and has his socket on <a href="http://127.0.0.1:22222">127.0.0.1:22222</a> and not listening on 172.16.0.10!! It has to be rtpproxy that has to listens on 172.16.0.10!! </div>
<div><br></div><div>So how to stop kamailio listening on 172.16.0.10 and using rtpproxy whith the right socket ?? I already now how to use rtpproxy but I need to stop kamailio listening on 172.16.0.10 cause of this, rtpproxy does not mean anything in this case... </div>
<div><br></div><div>thanks in advance</div><div>Best regards</div><div><br></div><div><br><br><div class="gmail_quote">2012/5/15 Grégoire Vandendeurpel <span dir="ltr">&lt;<a href="mailto:g.vandendeurpel@gmail.com" target="_blank">g.vandendeurpel@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for all your explanations<div class="HOEnZb"><div class="h5"><div><br></div><div><br><br><div class="gmail_quote">
2012/5/15 Reda Aouad <span dir="ltr">&lt;<a href="mailto:reda.aouad@gmail.com" target="_blank">reda.aouad@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><font color="#3366ff"><font><font face="tahoma,sans-serif">You can&#39;t.<br><br>Siremis is a management and reporting interface.<br>You can&#39;t implement script routing logic using Siremis.<span><font color="#888888"><br clear="all">



</font></span></font></font></font><span><font color="#888888"><div dir="ltr"><font color="#3366ff" face="tahoma, sans-serif"><br></font><div><font color="#3366ff" face="tahoma, sans-serif">Reda</font></div>
</div></font></span><div><div><br>
<br><br><div class="gmail_quote">On Tue, May 15, 2012 at 4:34 PM, Grégoire Vandendeurpel <span dir="ltr">&lt;<a href="mailto:g.vandendeurpel@gmail.com" target="_blank">g.vandendeurpel@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



Hello, Working perfectly, thank you.<div><br></div><div>I have a last question which is important to for my final project: </div><div><br></div><div>How is it possible to use these commands from sdpops module in SIREMIS? </div>




<div>like: in the acl menu of ser in siremis, add a new form in which we can manage like I said codecs or media .. from a domain or.. </div><div><br></div><div>I understood perfectly in kamailio.cfg, now I need to add it in Siremis..</div>




<div><br></div><div>Any idea , how I can add it in?</div><div><br></div><div>Thanks </div><div><div><div><br></div><div>Best regards <br><br><div class="gmail_quote">2012/5/15 Reda Aouad <span dir="ltr">&lt;<a href="mailto:reda.aouad@gmail.com" target="_blank">reda.aouad@gmail.com</a>&gt;</span><br>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font color="#3366ff"><font><font face="tahoma,sans-serif">You can check on domain or IP which you can find in the following pseudo variables<br>




<br>$rd: RURI domain<br>$fd: FROM domain<br>$td: TO domain<br>


$ad: AUTH domain<br>$si: source IP @ of message<br><br>example :<br><br>if ($si == &quot;1.2.3.4&quot;) {<br>    sdp_remove_codec ( ... );<br>}<br><br>You can find the complete list of pseudo variables here. Use what you want to suit your needs.<br>







<a href="http://www.kamailio.org/wiki/cookbooks/devel/pseudovariables" target="_blank">http://www.kamailio.org/wiki/cookbooks/devel/pseudovariables</a><span><font color="#888888"><br><br clear="all"></font></span></font></font></font><span><font color="#888888"><div dir="ltr">




<font color="#3366ff" face="tahoma, sans-serif"><br>


</font><div><font color="#3366ff" face="tahoma, sans-serif">Reda</font></div></div></font></span><div><div><br>
<br><br><div class="gmail_quote">On Tue, May 15, 2012 at 4:02 PM, Grégoire Vandendeurpel <span dir="ltr">&lt;<a href="mailto:g.vandendeurpel@gmail.com" target="_blank">g.vandendeurpel@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







Hello, I should test the dev version , yeah, but I have an other question before that, about sdpops:<div><br></div><div>Is it possible to remove codecs ( yeah working well on 3.2 ) but specifically from an domain or IP ..  ?</div>








<div><br></div><div>And how?</div><div><br></div><div>Thanks in advance</div><div><div><div><br></div><div>Best regards<br><br><div class="gmail_quote">2012/5/15 Reda Aouad <span dir="ltr">&lt;<a href="mailto:reda.aouad@gmail.com" target="_blank">reda.aouad@gmail.com</a>&gt;</span><br>








<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font color="#3366ff"><font><font face="tahoma,sans-serif">Can&#39;t help anymore on this.<br><br>But if you&#39;re short on time and need a dirty solution, try the following functions from textops module:<br>










replace_body_all    OR    subst_body<br><br>Match the line &quot;m=type...&quot; using a grep expression and replace it with and empty string.<br><br>I do that to remove lines from SDP body. I ran into some problems to do it neatly, so if you have some text messed up while doing it, try to include \r\n characters in your grep expression.<br>










<br>And finally, why don&#39;t you install the dev version?<span><font color="#888888"><br clear="all"></font></span></font></font></font><span><font color="#888888"><div dir="ltr"><font color="#3366ff" face="tahoma, sans-serif"><br>








</font><div><font color="#3366ff" face="tahoma, sans-serif">Reda</font></div>

</div></font></span><div><div><br>
<br><br><div class="gmail_quote">On Tue, May 15, 2012 at 2:22 PM, Grégoire Vandendeurpel <span dir="ltr">&lt;<a href="mailto:g.vandendeurpel@gmail.com" target="_blank">g.vandendeurpel@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">










Hello, I already compiled sdpops in 3.2. I tried an other command like sdp_remove_codecs_by_id and this one is working well on the 3.2 version of kamailio!<div><br></div><div>I think, the problem is specifically from the remove media command.</div>











<div><br></div><div>Any suggestion?</div><div><div><div><br></div><div>Best regards</div><div><br><div class="gmail_quote">2012/5/15 Reda Aouad <span dir="ltr">&lt;<a href="mailto:reda.aouad@gmail.com" target="_blank">reda.aouad@gmail.com</a>&gt;</span><br>











<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font color="#3366ff"><font><font face="tahoma,sans-serif">Hi,<br><br>You can MAY BE copy take the sdpops module from dev version and compile it with 3.2. Not sure it would work though.<br>











However, it should be easy to install the entire dev version, just as you did with 3.2.3.<span><font color="#888888"><br clear="all">

</font></span></font></font></font><span><font color="#888888"><div dir="ltr"><font color="#3366ff" face="tahoma, sans-serif"><br></font><div><font color="#3366ff" face="tahoma, sans-serif">Reda</font></div>
</div></font></span><div><div><br>
<br><br><div class="gmail_quote">On Tue, May 15, 2012 at 1:15 PM, Grégoire Vandendeurpel <span dir="ltr">&lt;<a href="mailto:g.vandendeurpel@gmail.com" target="_blank">g.vandendeurpel@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">













Hello, <div><br></div><div>Thanks for your answer, is there an other way to use it with the 3.2.3 version of Kamailio? Cause I&#39;m doing my final project of my bachloor, and I really need to use it for.</div><div><br>Is it possible to change something in the code or.. to make it working well with my version?</div>














<div><br></div><div>Best regards<div><div><br><br><div class="gmail_quote">2012/5/15 Reda Aouad <span dir="ltr">&lt;<a href="mailto:reda.aouad@gmail.com" target="_blank">reda.aouad@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><font color="#3366ff"><font><font face="tahoma,sans-serif">Hi,<br><br>This function is available in Kamailio 3.3 (currently in dev stage) and not 3.2.<br clear="all"></font></font></font><div dir="ltr"><font color="#3366ff" face="tahoma, sans-serif"><br>
















</font><div><font color="#3366ff" face="tahoma, sans-serif">Reda</font></div></div><br>
<br><br><div class="gmail_quote"><div><div>On Tue, May 15, 2012 at 11:49 AM, Grégoire Vandendeurpel <span dir="ltr">&lt;<a href="mailto:g.vandendeurpel@gmail.com" target="_blank">g.vandendeurpel@gmail.com</a>&gt;</span> wrote:<br>
















</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hello,<div><br></div><div>I use Kamailio 3.2.3 and I used the command from the sdpops module &quot;<span style="background-color:rgb(254,254,238)">sdp_remove_media(&quot;video&quot;);&quot;</span></div>
















<div><span style="background-color:rgb(254,254,238)"><br>
</span></div><div><span style="background-color:rgb(254,254,238)">But when i restarted kamailio, this error appeared:</span></div><div><br></div><div><div>0(2623) ERROR: &lt;core&gt; [cfg.y:<a href="tel:3393" value="+333393" target="_blank">3393</a>]: cfg. parser: failed to find command sdp_remove_media</div>

















<div>0(2623) : &lt;core&gt; [cfg.y:<a href="tel:3532" value="+333532" target="_blank">3532</a>]: parse error in config file /etc/kamailio/kamailio.cfg, line 721, column 27: unknown command, missing loadmodule?</div><div>
















<br></div><div>Do You know why ? </div><div><br></div><div>
Cause I loeded the sdpops module.</div><div><br></div><div>Thanks in advance for your help</div><span><font color="#888888">-- <br><div><i><font color="#336666"><b>Grégoire Vandendeurpel, </b></font></i></div>

<div><i><font color="#336666"><br></font></i></div>
<i><font color="#336666"><u>IT Sector</u></font></i><br>
</font></span></div>
<br></div></div>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><i><font color="#336666"><b>Grégoire Vandendeurpel, </b></font></i></div><div><i><font color="#336666"><br></font></i></div><i><font color="#336666"><u>IT Sector</u></font></i><br>















</div></div></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><i><font color="#336666"><b>Grégoire Vandendeurpel, </b></font></i></div><div><i><font color="#336666"><br></font></i></div><i><font color="#336666"><u>IT Sector</u></font></i><br>












</div>
</div></div><br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><i><font color="#336666"><b>Grégoire Vandendeurpel, </b></font></i></div><div><i><font color="#336666"><br></font></i></div><i><font color="#336666"><u>IT Sector</u></font></i><br>









</div>
</div></div><br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><i><font color="#336666"><b>Grégoire Vandendeurpel, </b></font></i></div><div><i><font color="#336666"><br></font></i></div><i><font color="#336666"><u>IT Sector</u></font></i><br>





</div>
</div></div><br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><i><font color="#336666"><b>Grégoire Vandendeurpel, </b></font></i></div><div><i><font color="#336666"><br></font></i></div><i><font color="#336666"><u>IT Sector</u></font></i><br>


</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><i><font color="#336666"><b>Grégoire Vandendeurpel, </b></font></i></div><div><i><font color="#336666"><br></font></i></div><i><font color="#336666"><u>IT Sector</u></font></i><br>

</div>