Lo voy a mirar<br><br><div class="gmail_quote">2008/1/14 Iñaki Baz Castillo &lt;<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">El Lunes, 14 de Enero de 2008, David Villasmil escribió:<br></div><div class="Ih2E3d">&gt; Gracias por responder (como siempre, tú! jeje)<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp;Entiendo, entonces debería ser algo así:<br>
&gt;<br>&gt; if (method==&quot;INVITE&quot;) {<br>&gt; &nbsp; &nbsp; &nbsp;if($si==&quot;GW1&quot;||$si==&quot;GW2&quot;){<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlog(&quot;L_NOTICE&quot;, &quot;\n************** ALLOWING INCOMING CALL AS IT<br>&gt; COMES FROM $si ************\n&quot;);
<br>&gt; &nbsp; &nbsp; &nbsp;}else{<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!proxy_authorize(&quot;<a href="http://sip.midom.com" target="_blank">sip.midom.com</a>&quot;,&quot;subscriber&quot;))<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_challenge(&quot;
sip.midom..com&quot;,&quot;0&quot;);<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&gt; &nbsp; &nbsp; &nbsp;}<br>&gt;<br>&gt; te parece correcto??<br><br></div>Eso es ;)<br><br>Lo único, si el número de gateways que autenticas por IP (o bien añades otras
<br>máquinas que tb quieras autenticar por IP) en ese caso tal vez el &quot;if&quot; te<br>quede muy choricero. En ese caso usa la función &quot;trusted()&quot; del<br>módulo &quot;permissions&quot; (creo que antes había dicho que el módulo se
<br>llama &quot;trusted&quot;, craso error).<br><div><div></div><div class="Wj3C7c"><br>Saludos.<br><br><br><br>--<br>Iñaki Baz Castillo<br><br>_______________________________________________<br>Users-es mailing list<br><a href="mailto:Users-es@lists.openser.org">
Users-es@lists.openser.org</a><br><a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users-es" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users-es</a><br></div></div></blockquote></div><br>