<div dir="ltr">Check if you have,<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"># IP authorization and user authentication<br>route[AUTH] {<br>...<br>        # user authenticated - remove auth header<br>        if(!is_method("REGISTER|PUBLISH"))<br>            consume_credentials();<br>...<br>}</blockquote><div><br></div><div>This basically allows only REGISTER and PUBLISH to be authenticated by backend server (FreeSWITCH), so you have to add SUBSCRIBE (and all other methods that you wish to be authenticated by backend server) to this list.</div><div><br></div><div>Hope this helps.</div><div><br></div><div>--</div><div>Muhammad Shahzad Shafi</div><div>Tel: +49 176 99 83 10 85</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 26, 2022 at 9:39 AM SparkleZou <<a href="mailto:sparklezou@126.com">sparklezou@126.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="line-height:1.7;color:rgb(0,0,0);font-size:14px;font-family:Arial"><div style="margin:0px">Hi Daniel,</div><div style="margin:0px"><br></div><div style="margin:0px">Thanks!</div><div style="margin:0px"><br></div><div style="margin:0px">Already configured on Freeswitch. </div><div style="margin:0px">/usr/local/freeswitch/conf/vars.xml</div><div style="margin:0px">         <X-PRE-PROCESS cmd="set" data="internal_auth_calls=false"/></div><div style="margin:0px"><br></div><div style="margin:0px"><div style="margin:0px">/usr/local/freeswitch/conf/autoload_configs/acl.conf.xml    </div><div style="margin:0px">       <node type="allow" cidr="<a href="http://10.120.100.180/24" target="_blank">10.120.100.180/24</a>"/></div></div><div style="margin:0px"><br></div><div style="margin:0px">For the call INVITE message, it works fine. NO need auth.</div><div style="margin:0px"><br></div><div style="margin:0px">But the SUBSCRIBER  message, seems different.</div><div style="margin:0px"><br></div><div style="margin:0px">Strange.</div><div style="margin:0px"><br></div><div style="margin:0px">BR,</div><div style="margin:0px">Sparkle Zou</div><div style="zoom:1"></div><div id="m_-1167575846442906266divNeteaseMailCard"></div><p style="margin:0px"><br></p><p>At 2022-10-25 16:17:11, "Daniel-Constantin Mierla" <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>> wrote:</p><blockquote id="m_-1167575846442906266isReplyContent" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204)">
  
    
  
  
    <p>Hello,</p>
    <p>you have to configure freeswitch to allow traffic from kamailio
      based on ip address, not with username/password.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div>On 25.10.22 02:55, SparkleZou wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div style="line-height:1.7;color:rgb(0,0,0);font-size:14px;font-family:Arial">
        <div style="margin:0px">Hi Sir/Madam,</div>
        <div style="margin:0px"><br>
        </div>
        <div style="margin:0px">I'm trying to set a Fresswitch as the
          Voicemail server.</div>
        <div style="margin:0px"><br>
        </div>
        <div style="margin:0px">I set the #!define WITH_VOICEMAIL in the
          kamailio.cfg file to enable the default VoiceMail
          configuration.</div>
        <div style="margin:0px"><br>
        </div>
        <div style="margin:0px">Set the voicemail server address as
          following :</div>
        <div style="margin:0px"><br>
        </div>
        <div style="margin:0px">
          <div style="margin:0px">voicemail.srv_ip = "10.120.100.179"
            desc "VoiceMail IP Address"</div>
          <div style="margin:0px">voicemail.srv_port = "5060" desc
            "VoiceMail Port"</div>
          <div style="margin:0px"><br>
          </div>
          <div style="margin:0px">And the kamailio server address is
            10.120.100.180.</div>
          <div style="margin:0px"><br>
          </div>
          <div style="margin:0px">Here face the issue, the Subscribe
            message could NOT be authorized. The SUBSCRIBER message with
            token could NOT be forworded to Freeswitch. </div>
          <div style="margin:0px"><br>
          </div>
          <div style="margin:0px"><br>
          </div>
          <div style="margin:0px"><br>
          </div>
          <div style="margin:0px"><br>
          </div>
          <div style="margin:0px"><br>
          </div>
          <div style="margin:0px">The log is also attached.</div>
          <div style="margin:0px"><br>
          </div>
          <div style="margin:0px">It's resllay strange. Please help
            check. Thanks!</div>
          <div style="margin:0px"><br>
          </div>
          <div style="margin:0px">BR,</div>
          <div style="margin:0px">Sparkle Zou</div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
  Nov 7-10, 2022 (Europe Timezone)
  * <a href="https://www.asipto.com/sw/kamailio-advanced-training-online/" target="_blank">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
  

</blockquote></div>__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>