<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 "domains". Falling back to Digest auth.</span>​<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 <freeswitch-users-bounces@lists.freeswitch.org> im Auftrag von Markus Bönke <mbodbg@gmx.net><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> </div>
</div>
<div>Hello,
<div class=""><br class="">
</div>
<div class="">I’ve connected freeswitch with an asterisk server via sip trunk with the following configuration in my test environment: </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"> </span><span class="" style="color:#34bbc7"><gateway</span> name="<a href="http://sip.testprovider.com" class="">sip.testprovider.com</a>"<span class="" style="color:#34bbc7">></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"> </span><span class="" style="color:#34bbc7"><param</span> name="username" value="MyCustomSipTrunk1"/<span class="" style="color:#34bbc7">></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"> </span><span class="" style="color:#34bbc7"><param</span> name="password" value="easy123"/<span class="" style="color:#34bbc7">></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"> </span><span class="" style="color:#34bbc7"><param</span> name="extension" value="trunk"/<span class="" style="color:#34bbc7">></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"> </span><span class="" style="color:#34bbc7"><param</span> name="register" value="true"/<span class="" style="color:#34bbc7">></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"> </span><span class="" style="color:#34bbc7"><param</span> name="from_domain" value="<a href="http://sip.testprovider.com" class="">sip.testprovider.com</a>"/<span class="" style="color:#34bbc7">></span></div>
<div class="" style="margin:0px; font-size:14px; font-family:Menlo; color:rgb(41,249,20); background-color:rgb(0,0,0)">
<span class="" style="color:#34bbc7"></gateway></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)">"MyCustomSipTrunk1"</span><span class="" style="color:rgb(41,249,20)"> </span><span class="" style="color:rgb(52,189,38)"><</span><span class="" style="color:rgb(41,249,20)">MyCustomSipTrunk1</span><span class="" style="color:rgb(52,189,38)">></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 </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 </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 </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 </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 =><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 "domains". 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="MyCustomSipTrunk1" 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>