<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Do you have edited the acl.conf.xml in autload_configs to allow the Asterisk server?<br>
</p>
<p><br>
</p>
<p><span style="color: rgb(175, 173, 36); font-family: Menlo; font-size: 14px; background-color: rgb(0, 0, 0);">2015-09-02 00:06:28.877729 [DEBUG] sofia.c:9001 IP 192.168.1.202 Rejected by acl &quot;domains&quot;. Falling back to Digest auth.</span>&#8203;<br>
</p>
<p><br>
</p>
<p>??<br>
</p>
<p><br>
</p>
<div style="word-wrap:break-word">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> freeswitch-users-bounces@lists.freeswitch.org &lt;freeswitch-users-bounces@lists.freeswitch.org&gt; im Auftrag von Markus Bönke &lt;mbodbg@gmx.net&gt;<br>
<b>Gesendet:</b> Mittwoch, 2. September 2015 00:25<br>
<b>An:</b> FreeSWITCH Users Help<br>
<b>Betreff:</b> [!!Mass Mail][Freeswitch-users] Connecting Freeswitch and Asterisk with outgoingregistration</font>
<div>&nbsp;</div>
</div>
<div>Hello,
<div class=""><br class="">
</div>
<div class="">I&#8217;ve &nbsp;connected freeswitch with an asterisk server via sip trunk with the following configuration in my test environment:&nbsp;</div>
<div class=""><br class="">
</div>
<div class="">Freeswitch side:</div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(52,189,38); background-color:rgb(0,0,0)">
<span class="" style="color:#29f914">&nbsp;</span><span class="" style="color:#34bbc7">&lt;gateway</span> name=&quot;<a href="http://sip.testprovider.com" class="">sip.testprovider.com</a>&quot;<span class="" style="color:#34bbc7">&gt;</span></div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(52,189,38); background-color:rgb(0,0,0)">
<span class="" style="color:#29f914">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="" style="color:#34bbc7">&lt;param</span> name=&quot;username&quot; value=&quot;MyCustomSipTrunk1&quot;/<span class="" style="color:#34bbc7">&gt;</span></div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(52,189,38); background-color:rgb(0,0,0)">
<span class="" style="color:#29f914">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="" style="color:#34bbc7">&lt;param</span> name=&quot;password&quot; value=&quot;easy123&quot;/<span class="" style="color:#34bbc7">&gt;</span></div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(52,189,38); background-color:rgb(0,0,0)">
<span class="" style="color:#29f914">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="" style="color:#34bbc7">&lt;param</span> name=&quot;extension&quot; value=&quot;trunk&quot;/<span class="" style="color:#34bbc7">&gt;</span></div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(52,189,38); background-color:rgb(0,0,0)">
<span class="" style="color:#29f914">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="" style="color:#34bbc7">&lt;param</span> name=&quot;register&quot; value=&quot;true&quot;/<span class="" style="color:#34bbc7">&gt;</span></div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(52,189,38); background-color:rgb(0,0,0)">
<span class="" style="color:#29f914">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span class="" style="color:#34bbc7">&lt;param</span> name=&quot;from_domain&quot; value=&quot;<a href="http://sip.testprovider.com" class="">sip.testprovider.com</a>&quot;/<span class="" style="color:#34bbc7">&gt;</span></div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(41,249,20); background-color:rgb(0,0,0)">
&nbsp;<span class="" style="color:#34bbc7">&lt;/gateway&gt;</span></div>
</div>
<div class=""><span class="" style="color:#34bbc7"><br class="">
</span></div>
<div class=""><span class="" style="color:#34bbc7"><br class="">
</span></div>
<div class="">Asterisk side:</div>
<div class=""><br class="">
</div>
<div class="">sip.conf</div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(52,189,38); background-color:rgb(0,0,0)">
[MyCustomSipTrunk1]</div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(175,173,36); background-color:rgb(0,0,0)">
<span class="" style="color:rgb(41,249,20)">type</span><span class="" style="color:rgb(52,189,38)">=</span><span class="" style="color:rgb(41,249,20)">peer</span></div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(175,173,36); background-color:rgb(0,0,0)">
<span class="" style="color:rgb(41,249,20)">callerid</span><span class="" style="color:rgb(52,189,38)">=</span><span class="" style="color:rgb(213,59,211)">&quot;MyCustomSipTrunk1&quot;</span><span class="" style="color:rgb(41,249,20)">&nbsp;</span><span class="" style="color:rgb(52,189,38)">&lt;</span><span class="" style="color:rgb(41,249,20)">MyCustomSipTrunk1</span><span class="" style="color:rgb(52,189,38)">&gt;</span></div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(41,249,20); background-color:rgb(0,0,0)">
host<span class="" style="color:rgb(52,189,38)">=</span>dynamic&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(41,249,20); background-color:rgb(0,0,0)">
nat<span class="" style="color:rgb(52,189,38)">=</span>no</div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(175,173,36); background-color:rgb(0,0,0)">
<span class="" style="color:rgb(41,249,20)">username</span><span class="" style="color:rgb(52,189,38)">=</span><span class="" style="color:rgb(41,249,20)">MyCustomSipTrunk1&nbsp;&nbsp; &nbsp;&nbsp;</span></div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(41,249,20); background-color:rgb(0,0,0)">
fromdomain<span class="" style="color:rgb(52,189,38)">=</span><a href="http://sip.testprovider.com" class="">sip.testprovider.com</a></div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(175,173,36); background-color:rgb(0,0,0)">
<span class="" style="color:rgb(41,249,20)">directmedia</span><span class="" style="color:rgb(52,189,38)">=</span><span class="" style="color:rgb(41,249,20)">no&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(41,249,20); background-color:rgb(0,0,0)">
disallow<span class="" style="color:rgb(52,189,38)">=</span>all</div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(175,173,36); background-color:rgb(0,0,0)">
<span class="" style="color:rgb(41,249,20)">allow</span><span class="" style="color:rgb(52,189,38)">=</span><span class="" style="color:rgb(41,249,20)">gsm&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(41,249,20); background-color:rgb(0,0,0)">
allow<span class="" style="color:rgb(52,189,38)">=</span>ulaw</div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(41,249,20); background-color:rgb(0,0,0)">
allow<span class="" style="color:rgb(52,189,38)">=</span>alaw</div>
</div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(41,249,20); background-color:rgb(0,0,0)">
<div class="" style="margin:0px">secret<span class="" style="color:#34bd26">=</span>easy123</div>
<div class="" style="margin:0px">context<span class="" style="color:#34bd26">=</span>kamailio</div>
</div>
<div class=""><br class="">
</div>
<div class="">extensions.conf</div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(52,189,38); background-color:rgb(0,0,0)">
[kamailio]</div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(213,59,211); background-color:rgb(0,0,0)">
exten =&gt;<span class="" style="color:#c33720"> _X.</span><span class="" style="color:#000000">,</span><span class="" style="color:#5330e1">1</span><span class="" style="color:#29f914">,</span><span class="" style="color:#34bbc7">Dial</span><span class="" style="color:#34bd26">(</span>SIP/<span class="" style="color:#c33720">${EXTEN}</span>@MyCustomSipTrunk1,60,tr<span class="" style="color:#34bd26">)</span></div>
</div>
<div class=""><br class="">
</div>
<div class="">If I send a call from asterisk to freeswitch, I can see the following in the log:</div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(175,173,36); background-color:rgb(0,0,0)">
2015-09-02 00:06:28.877729 [DEBUG] sofia.c:9001 IP 192.168.1.202 Rejected by acl &quot;domains&quot;. Falling back to Digest auth.</div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(213,59,211); background-color:rgb(0,0,0)">
2015-09-02 00:06:28.877729 [WARNING] sofia_reg.c:2827 Can't find user [<a href="mailto:MyCustomSipTrunk1@sip.testprovider.com" class="">MyCustomSipTrunk1@sip.testprovider.com</a>] from 192.168.1.202</div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(213,59,211); background-color:rgb(0,0,0)">
You must define a domain called '<a href="http://sip.testprovider.com" class="">sip.testprovider.com</a>' in your directory and add a user with the id=&quot;MyCustomSipTrunk1&quot; attribute</div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(213,59,211); background-color:rgb(0,0,0)">
and you must configure your device to use the proper domain in it's authentication credentials.</div>
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">If I create the user in the directory for the domain, it works - but why do I need to create this user however the gateway is already already registered and authenticated with the asterisk server?</div>
<div class=""><br class="">
</div>
<div class="">Thanks</div>
<div class=""><br class="">
</div>
<div class="">Markus</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
</div>
</div>
</body>
</html>