<div dir="ltr">Hi <div>You should uncheck the "anonymous call" & "allow guest" in asterisk</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 29, 2017 at 2:15 PM, samaneh ebrahimi <span dir="ltr"><<a href="mailto:esamaneh.94@gmail.com" target="_blank">esamaneh.94@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi ,<br></div>For setup sip authentication between Cisco router and FreePBx , configs is :<br></div><div><br><img src="cid:ii_15baea7d9ce250f4" alt="Inline image 1" style="margin-right:0px" width="374" height="403"><br><b>PBX - SIP Trunk</b><br>
                                        PEER Details<br><br>fromdomain=40.0.0.100<br>host=40.0.0.100<br>qualify=yes<br>context=from-trunk<br>type=peer<br>username=asterisk<br>secret=password<br>nat=no<br>allow=alaw<br>faxdetect=yes<br>insecure=very,port,invite<br><br></div><b>cisco router</b><br><br>voice service voip<br> allow-connections sip to sip<br>!<br>interface FastEthernet0/0<br> ip address 40.0.0.100 255.255.255.0<br>!<br>interface FastEthernet0/1<br> ip address 192.168.0.100 255.255.255.0<br>!<br>dial-peer voice 1 voip<br> destination-pattern 1.+<br> session protocol sipv2<br> session target ipv4:40.0.0.1<br> codec g711alaw<br>!<br>dial-peer voice 2 voip<br> destination-pattern 2.+<br> session protocol sipv2<br> session target ipv4:192.168.0.101<br> codec g711alaw<br>!<br>sip-ua<br> authentication username asterisk password 01030717481C091D25<br> retry invite 3<br> retry response 3<br> retry bye 3<br> retry cancel 3<br> sip-server ipv4:40.0.0.1<br><br></div>by this config, calls <span id="m_2377453709494470616gmail-result_box" class="m_2377453709494470616gmail-short_text" lang="en"><span class="m_2377453709494470616gmail-">is established and i expect when remove authentication from  FreePBX or router , </span></span>calls <span id="m_2377453709494470616gmail-result_box" class="m_2377453709494470616gmail-short_text" lang="en"><span class="m_2377453709494470616gmail-">Not</span> <span class="m_2377453709494470616gmail-">contacted . but it is established .<br></span></span></div><div><span id="m_2377453709494470616gmail-result_box" class="m_2377453709494470616gmail-short_text" lang="en"><span class="m_2377453709494470616gmail-"><br></span></span></div><span id="m_2377453709494470616gmail-result_box" class="m_2377453709494470616gmail-short_text" lang="en"><span class="m_2377453709494470616gmail-"></span></span><span id="m_2377453709494470616gmail-result_box" class="m_2377453709494470616gmail-short_text" lang="en"><span class="m_2377453709494470616gmail-"></span></span></div>
<br>______________________________<wbr>_________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a><br>
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" rel="noreferrer" target="_blank">https://puck.nether.net/<wbr>mailman/listinfo/cisco-voip</a><br>
<br></blockquote></div><br></div>