[prev in list] [next in list] [prev in thread] [next in thread] 

List:       serusers
Subject:    Re: [SR-Users] About the WITH_VOICEMAIL Subscriber message 407 issue
From:       M S <shaheryarkh () gmail ! com>
Date:       2022-10-26 11:06:48
Message-ID: CAFZQphy_Xnm-5SnSX5NoyaKT2NxVuA8NpNzuKvAC3Qsf9G0zFQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Check if you have,

# IP authorization and user authentication
> route[AUTH] {
> ...
>         # user authenticated - remove auth header
>         if(!is_method("REGISTER|PUBLISH"))
>             consume_credentials();
> ...
> }


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.

Hope this helps.

--
Muhammad Shahzad Shafi
Tel: +49 176 99 83 10 85


On Wed, Oct 26, 2022 at 9:39 AM SparkleZou <sparklezou@126.com> wrote:

> Hi Daniel,
>
> Thanks!
>
> Already configured on Freeswitch.
> /usr/local/freeswitch/conf/vars.xml
>          <X-PRE-PROCESS cmd="set" data="internal_auth_calls=false"/>
>
> /usr/local/freeswitch/conf/autoload_configs/acl.conf.xml
>        <node type="allow" cidr="10.120.100.180/24"/>
>
> For the call INVITE message, it works fine. NO need auth.
>
> But the SUBSCRIBER  message, seems different.
>
> Strange.
>
> BR,
> Sparkle Zou
>
>
> At 2022-10-25 16:17:11, "Daniel-Constantin Mierla" <miconda@gmail.com>
> wrote:
>
> Hello,
>
> you have to configure freeswitch to allow traffic from kamailio based on
> ip address, not with username/password.
>
> Cheers,
> Daniel
> On 25.10.22 02:55, SparkleZou wrote:
>
> Hi Sir/Madam,
>
> I'm trying to set a Fresswitch as the Voicemail server.
>
> I set the #!define WITH_VOICEMAIL in the kamailio.cfg file to enable the
> default VoiceMail configuration.
>
> Set the voicemail server address as following :
>
> voicemail.srv_ip = "10.120.100.179" desc "VoiceMail IP Address"
> voicemail.srv_port = "5060" desc "VoiceMail Port"
>
> And the kamailio server address is 10.120.100.180.
>
> Here face the issue, the Subscribe message could NOT be authorized. The
> SUBSCRIBER message with token could NOT be forworded to Freeswitch.
>
>
>
>
>
> The log is also attached.
>
> It's resllay strange. Please help check. Thanks!
>
> BR,
> Sparkle Zou
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussionssr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the sender!
> Edit mailing list options or unsubscribe:https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio Advanced Training - Online
>   Nov 7-10, 2022 (Europe Timezone)
>   * https://www.asipto.com/sw/kamailio-advanced-training-online/
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
> sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>

[Attachment #5 (text/html)]

<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(&quot;REGISTER|PUBLISH&quot;))<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 &lt;<a \
href="mailto:sparklezou@126.com">sparklezou@126.com</a>&gt; \
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">  \
&lt;X-PRE-PROCESS cmd=&quot;set&quot; \
data=&quot;internal_auth_calls=false&quot;/&gt;</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">           &lt;node type=&quot;allow&quot; \
cidr=&quot;<a href="http://10.120.100.180/24" \
target="_blank">10.120.100.180/24</a>&quot;/&gt;</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, &quot;Daniel-Constantin \
Mierla&quot; &lt;<a href="mailto:miconda@gmail.com" \
target="_blank">miconda@gmail.com</a>&gt; 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&#39;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 = &quot;10.120.100.179&quot;
            desc &quot;VoiceMail IP Address&quot;</div>
          <div style="margin:0px">voicemail.srv_port = &quot;5060&quot; desc
            &quot;VoiceMail Port&quot;</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&#39;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>



__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic