<div>Thanks Vardan,</div>
<div> </div>
<div>I will like to know if this scenario can work when peer is not having fixed ip and we use </div>
<div>host = <a href="http://nasir.server.com">nasir.server.com</a></div>
<div>?</div>
<div>also I have set insecure=invite,port</div>
<div> </div>
<div>what if i use</div>
<div>insecure=no</div>
<div> </div>
<div>thanks again.</div>
<div> </div>
<div>Message: 24<br>Date: Tue, 11 May 2010 10:52:14 +0500<br>From: Vardan &lt;<a href="mailto:hvardan71@gmail.com">hvardan71@gmail.com</a>&gt;<br>Subject: Re: [asterisk-users] Dialing a SIP Peer without using<br>       register strin<br>
To: <a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a><br>Message-ID: &lt;hsarab$ok7$<a href="mailto:1@dough.gmane.org">1@dough.gmane.org</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>Remove username and secret and use IP authentication on both side<br><br>[server1_abc]<br>type=peer<br>host=192.168.0.20<br>context=default<br>dtmfmode=rfc2833<br>canreinvite=yes - canreinvite with nat=yes is not working<br>
insecure=invite,port<br>disallow=all<br>allow=ulaw<br>allow=alaw<br>allow=g729<br>allow=gsm<br>nat=yes<br>qualify=yes<br><br><br><br>[server2_abc]<br>type=peer<br>host=192.168.0.21<br>context=default<br>dtmfmode=rfc2833<br>
canreinvite=yes<br>insecure=invite,port<br>disallow=all<br>allow=ulaw<br>allow=alaw<br>allow=g729<br>allow=gsm<br>nat=yes<br>qualify=yes<br><br><br><br>Nasir Javaid wrote:<br>&gt; Hi,<br>&gt;<br>&gt; I am new to this list and this is first time i m posting here. please<br>
&gt; help me out<br>&gt;<br>&gt; currently I am working on dialing a sip peer on an asterisk server from<br>&gt; 2nd asterisk server. scenario is like this.<br>&gt;<br>&gt; on my system i am using this peer in sip.conf.<br>
&gt;<br>&gt; [abc]<br>&gt; type=peer<br>&gt; username=abc<br>&gt; secret=mysecret<br>&gt; host=192.168.0.20<br>&gt; context=default<br>&gt; dtmfmode=rfc2833<br>&gt; ;restrictcid=no<br>&gt; canreinvite=yes<br>&gt; insecure=invite,port<br>
&gt; disallow=all<br>&gt; allow=ulaw<br>&gt; allow=alaw<br>&gt; allow=g729<br>&gt; allow=gsm<br>&gt; nat=yes<br>&gt; qualify=yes<br>&gt;<br>&gt; and using following register string<br>&gt;<br>&gt; register  =&gt; <a href="mailto:abc%3Amysecret@192.168.0.20">abc:mysecret@192.168.0.20</a> &lt;mailto:<a href="mailto:abc%253Amysecret@192.168.0.20">abc%3Amysecret@192.168.0.20</a>&gt;<br>
&gt;<br>&gt;<br>&gt; now problem is that when i use register string everything goes ok. but<br>&gt; when i remove register string call doesn&#39;t go as expected.<br>&gt;<br>&gt; I would like to know if there is any feature that i can use to call sip<br>
&gt; peer and authenticate is in dial command or some feature in sip.conf<br>&gt;<br>&gt; i dont wanna use register string. please help.<br>&gt;<br>&gt; regards,<br>&gt;<br>&gt; Nasir Javaid<br>&gt;<br></div>