Is there any why that when some one calls from other sip to my ser server with some kind of prefix and if any call come with that prefix allow him to call my sip users. Only sip users not my PSTN gateway.<br><br>thanks<br>
arun<br><br><div><span class="gmail_quote">On 5/28/07, <b class="gmail_sendername">Andrey Kuprianov</b> &lt;<a href="mailto:andrey.kouprianov@gmail.com">andrey.kouprianov@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Well, if you want EVERYONE to be able to call to SER-A, then why need<br>authentication? Just remove it for INVITE requests :)<br><br>On 5/28/07, Arun Kumar &lt;<a href="mailto:arunvoip@gmail.com">arunvoip@gmail.com</a>&gt; wrote:
<br>&gt; Hi<br>&gt;<br>&gt; thanks for your reply. When user from SER -B calls they get Auth. required<br>&gt; error (call rejected). Actually I don&#39;t want to peer two SER server. I want<br>&gt; any one can call my users on SER -A so I don&#39;t know the IP of calling sip
<br>&gt; service so I can&#39;t make use of trusted table.<br>&gt;<br>&gt; please guide on this scenario.<br>&gt;<br>&gt; thanks<br>&gt; arun<br>&gt;<br>&gt;<br>&gt; On 5/28/07, Andrey Kuprianov &lt;<a href="mailto:andrey.kouprianov@gmail.com">
andrey.kouprianov@gmail.com</a> &gt; wrote:<br>&gt; &gt; You didnt specify, what happens to the call. Does it get rejected?<br>&gt; Timeout?<br>&gt; &gt;<br>&gt; &gt; Usually, if I want to peer 2 SERs, I use permissions module, 
i.e.<br>&gt; &gt; allow_trusted() function must be used in order to allow incoming calls<br>&gt; &gt; from a certain IP. Take a look at Getting Started doc inside the NAT<br>&gt; &gt; handling section.<br>&gt; &gt;<br>&gt; &gt; Anyway, SER-B doesnt use database, which means it does not care about
<br>&gt; &gt; authentication. This is why call from SER-A can go thorugh. On the<br>&gt; &gt; other hand, SER-A uses database and so it will also use proper<br>&gt; &gt; authentication methods. As long as SER-B&#39;s IP is not present in the
<br>&gt; &gt; &#39;trusted&#39; table of MySQL, SER-A will keep on rejecting your calls.<br>&gt; &gt;<br>&gt; &gt; On 5/28/07, Arun Kumar &lt; <a href="mailto:arunvoip@gmail.com">arunvoip@gmail.com</a>&gt; wrote:<br>&gt; &gt; &gt; Hi
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I&#39;ve configure two ser box in my local network:<br>&gt; &gt; &gt; 1. one box with mysql auth (SER A)<br>&gt; &gt; &gt; 2. without any auth (just make install) (SER B)<br>&gt; &gt; &gt;
<br>&gt; &gt; &gt; in both boxes 2-2 users are registered and they are able to call each<br>&gt; other.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; my SER A users are able to call SER B user (sip:2001@SER-B) but SER B<br>&gt; user
<br>&gt; &gt; &gt; can&#39;t call SER A (sip:3001@SER-A) user. here is my config file for SER A<br>&gt; &gt; &gt; box:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; ------------------<br>&gt; &gt; &gt; debug=5<br>&gt; &gt; &gt; fork=no
<br>&gt; &gt; &gt; log_stderror=yes<br>&gt; &gt; &gt; listen=<a href="http://176.249.2.69">176.249.2.69</a>&nbsp;&nbsp; # INSERT YOUR IP ADDRESS HERE<br>&gt; &gt; &gt; port=5060<br>&gt; &gt; &gt; children=4<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; dns=no
<br>&gt; &gt; &gt; rev_dns=no<br>&gt; &gt; &gt; fifo=&quot;/tmp/ser_fifo&quot;<br>&gt; &gt; &gt; fifo_db_url=&quot;mysql://ser:heslo@localhost /ser&quot;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; loadmodule &quot;/usr/local/lib/ser/modules/mysql.so&quot;
<br>&gt; &gt; &gt; loadmodule &quot;/usr/local/lib/ser/modules/sl.so&quot;<br>&gt; &gt; &gt; loadmodule &quot;/usr/local/lib/ser/modules/tm.so&quot;<br>&gt; &gt; &gt; loadmodule &quot;/usr/local/lib/ser/modules/rr.so&quot;
<br>&gt; &gt; &gt; loadmodule &quot;/usr/local/lib/ser/modules/maxfwd.so&quot;<br>&gt; &gt; &gt; loadmodule &quot;/usr/local/lib/ser/modules/usrloc.so&quot;<br>&gt; &gt; &gt; loadmodule &quot;/usr/local/lib/ser/modules/registrar.so&quot;
<br>&gt; &gt; &gt; loadmodule &quot;/usr/local/lib/ser/modules/auth.so&quot;<br>&gt; &gt; &gt; loadmodule &quot;/usr/local/lib/ser/modules/auth_db.so&quot;<br>&gt; &gt; &gt; loadmodule &quot;/usr/local/lib/ser/modules/uri.so&quot;
<br>&gt; &gt; &gt; loadmodule &quot;/usr/local/lib/ser/modules/uri_db.so&quot;<br>&gt; &gt; &gt; loadmodule &quot;/usr/local/lib/ser/modules/domain.so&quot;<br>&gt; &gt; &gt; loadmodule &quot;/usr/local/lib/ser/modules/nathelper.so&quot;
<br>&gt; &gt; &gt; loadmodule &quot;/usr/local/lib/ser/modules/avpops.so&quot;<br>&gt; &gt; &gt; loadmodule &quot;/usr/local/lib/ser/modules/textops.so&quot;<br>&gt; &gt; &gt; loadmodule &quot;/usr/local/lib/ser/modules/mediaproxy.so&quot;
<br>&gt; &gt; &gt; loadmodule &quot;/usr/local/lib/ser/modules/permissions.so&quot;<br>&gt; &gt; &gt; loadmodule &quot;/usr/local/lib/ser/modules/acc.so&quot;<br>&gt; &gt; &gt; loadmodule &quot;/usr/local/lib/ser/modules/xlog.so&quot;
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; modparam(&quot;auth_db|uri_db|usrloc&quot;, &quot;db_url&quot;, &quot;<br>&gt; &gt; &gt; mysql://ser:heslo@localhost/ser&quot;)<br>&gt; &gt; &gt; modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, 1)
<br>&gt; &gt; &gt; modparam(&quot;auth_db&quot;, &quot;password_column&quot;, &quot;password&quot;)<br>&gt; &gt; &gt; modparam(&quot;usrloc&quot;, &quot;db_mode&quot;, 2)<br>&gt; &gt; &gt; modparam(&quot;rr&quot;, &quot;enable_full_lr&quot;, 1)
<br>&gt; &gt; &gt; route {<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; #<br>&gt; &gt; &gt;<br>&gt; -----------------------------------------------------------------<br>&gt; &gt; &gt;&nbsp;&nbsp; # Sanity Check Section<br>&gt; &gt; &gt;&nbsp;&nbsp; #
<br>&gt; &gt; &gt;<br>&gt; -----------------------------------------------------------------<br>&gt; &gt; &gt;&nbsp;&nbsp; if (!mf_process_maxfwd_header(&quot;10&quot;)) {<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply(&quot;483&quot;, &quot;Too Many Hops&quot;);
<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&gt; &gt; &gt;&nbsp;&nbsp; };<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; if (msg:len &gt; max_len) {<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply(&quot;513&quot;, &quot;Message Overflow&quot;);<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; break;
<br>&gt; &gt; &gt;&nbsp;&nbsp; };<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; #<br>&gt; &gt; &gt;<br>&gt; -----------------------------------------------------------------<br>&gt; &gt; &gt;&nbsp;&nbsp; # Record Route Section<br>&gt; &gt; &gt;&nbsp;&nbsp; #<br>
&gt; &gt; &gt;<br>&gt; -----------------------------------------------------------------<br>&gt; &gt; &gt;&nbsp;&nbsp; if (method!=&quot;REGISTER&quot;) {<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; record_route();<br>&gt; &gt; &gt;&nbsp;&nbsp; };<br>&gt; &gt; &gt;
<br>&gt; &gt; &gt;&nbsp;&nbsp; #<br>&gt; &gt; &gt;<br>&gt; -----------------------------------------------------------------<br>&gt; &gt; &gt;&nbsp;&nbsp; # Loose Route Section<br>&gt; &gt; &gt;&nbsp;&nbsp; #<br>&gt; &gt; &gt;<br>&gt; -----------------------------------------------------------------
<br>&gt; &gt; &gt;&nbsp;&nbsp; if (loose_route()) {<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ((method==&quot;INVITE&quot; || method==&quot;REFER&quot;) &amp;&amp; !has_totag()) {<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply(&quot;403&quot;, &quot;Forbidden Cant cross 1st bridge&quot;);
<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; route(1);<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&gt; &gt; &gt;&nbsp;&nbsp; };<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; #<br>&gt; &gt; &gt;
<br>&gt; -----------------------------------------------------------------<br>&gt; &gt; &gt;&nbsp;&nbsp; # Call Type Processing Section<br>&gt; &gt; &gt;&nbsp;&nbsp; #<br>&gt; &gt; &gt;<br>&gt; -----------------------------------------------------------------
<br>&gt; &gt; &gt;&nbsp;&nbsp; if (uri!=myself) {<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; route(1);<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&gt; &gt; &gt;&nbsp;&nbsp; };<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; if (method==&quot;ACK&quot;) {<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; route(1);
<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&gt; &gt; &gt;&nbsp;&nbsp; } if (method==&quot;INVITE&quot;) {<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; route(3);<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&gt; &gt; &gt;&nbsp;&nbsp; } else&nbsp;&nbsp;if (method==&quot;REGISTER&quot;) {<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; route(2);
<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&gt; &gt; &gt;&nbsp;&nbsp; };<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; lookup(&quot;aliases&quot;);<br>&gt; &gt; &gt;&nbsp;&nbsp; if (uri!=myself) {<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; route(1);<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>
&gt; &gt; &gt;&nbsp;&nbsp; };<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; if (!lookup(&quot;location&quot;)) {<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply(&quot;404&quot;, &quot;User Not Found&quot;);<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&gt; &gt; &gt;&nbsp;&nbsp; };
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; route(1);<br>&gt; &gt; &gt; }<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; route[1] {<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; #<br>&gt; &gt; &gt;<br>&gt; -----------------------------------------------------------------
<br>&gt; &gt; &gt;&nbsp;&nbsp; # Default Message Handler<br>&gt; &gt; &gt;&nbsp;&nbsp; #<br>&gt; &gt; &gt;<br>&gt; -----------------------------------------------------------------<br>&gt; &gt; &gt;&nbsp;&nbsp; if (!t_relay()) {<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; sl_reply_error();
<br>&gt; &gt; &gt;&nbsp;&nbsp; };<br>&gt; &gt; &gt; }<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; route[2] {<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; #<br>&gt; &gt; &gt;<br>&gt; -----------------------------------------------------------------
<br>&gt; &gt; &gt;&nbsp;&nbsp; # REGISTER Message Handler<br>&gt; &gt; &gt;&nbsp;&nbsp; #<br>&gt; &gt; &gt;<br>&gt; ----------------------------------------------------------------<br>&gt; &gt; &gt;&nbsp;&nbsp; sl_send_reply(&quot;100&quot;, &quot;Trying&quot;);
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; if (!www_authorize(&quot;&quot;,&quot;subscriber&quot;)) {<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; www_challenge(&quot;&quot;,&quot;1&quot;);<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&gt; &gt; &gt;&nbsp;&nbsp; };<br>&gt; &gt; &gt;
<br>&gt; &gt; &gt;&nbsp;&nbsp; if (!check_to()) {<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply(&quot;401&quot;, &quot;Unauthorized&quot;);<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&gt; &gt; &gt;&nbsp;&nbsp; };<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; consume_credentials();
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; if (!save(&quot;location&quot;)) {<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; sl_reply_error();<br>&gt; &gt; &gt;&nbsp;&nbsp; };<br>&gt; &gt; &gt; }<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; route[3] {<br>&gt; &gt; &gt;&nbsp;&nbsp; #
<br>&gt; &gt; &gt;<br>&gt; -----------------------------------------------------------------<br>&gt; &gt; &gt;&nbsp;&nbsp; # INVITE Message Handler<br>&gt; &gt; &gt;&nbsp;&nbsp; #<br>&gt; &gt; &gt;<br>&gt; -----------------------------------------------------------------
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; if (!proxy_authorize(&quot;&quot;,&quot;subscriber&quot;)) {<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; proxy_challenge(&quot;&quot;,&quot;1&quot;);<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&gt; &gt; &gt;&nbsp;&nbsp; } else if (!check_from()) {
<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply(&quot;403&quot;, &quot;Use From=ID&quot;);<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&gt; &gt; &gt;&nbsp;&nbsp; };<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; consume_credentials();<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; lookup(&quot;aliases&quot;);
<br>&gt; &gt; &gt;&nbsp;&nbsp; if (uri!=myself) {<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; route(1);<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&gt; &gt; &gt;&nbsp;&nbsp; };<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; if (!lookup(&quot;location&quot;)) {<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply(&quot;404&quot;, &quot;User Not Found&quot;);
<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&gt; &gt; &gt;&nbsp;&nbsp; };<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp; route(1);<br>&gt; &gt; &gt; }<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; -------------<br>&gt; &gt; &gt; please guide me how to do this.
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; thanks<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; arun<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; Serusers mailing list<br>&gt; &gt; &gt; 
<a href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a><br>&gt; &gt; &gt; <a href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a><br>&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Serusers mailing list<br>&gt; &gt; <a href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a><br>&gt; &gt; <a href="http://lists.iptel.org/mailman/listinfo/serusers">
http://lists.iptel.org/mailman/listinfo/serusers</a><br>&gt; &gt;<br>&gt;<br>&gt;<br>_______________________________________________<br>Serusers mailing list<br><a href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org
</a><br><a href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a><br></blockquote></div><br>