<div dir="ltr">Hi Murthy,<br><br>You probably want [69.59.234.67] first so that it matches on inbound calls. For outbound the question is what exactly do you specify in your dial? It should be something like number@vonage-out.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 August 2015 at 02:25, Murthy Gandikota <span dir="ltr"><<a href="mailto:murthy64@hotmail.com" target="_blank">murthy64@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All<br>
<br>
Noticed in sip.conf that the asterisk (v11) is sensitive to the order of peers. <br>
Here  is my sip.conf<br>
<br>
[general]<br>
context = demo  ;              Default context for incoming calls<br>
bindport = 5060  ;              UDP Port to bind to (SIP standard port is 5060)<br>
bindaddr = 0.0.0.0  ;              IP address to bind to (0.0.0.0 binds to all)<br>
srvlookup = yes  ;              Enable DNS SRV lookups on outbound calls<br>
context=incoming <br>
disallow=all <br>
allow=ulaw <br>
allow=alaw <br>
allow=g729 <br>
allow=g723 <br>
externip=72.220.28.226 <br>
localnet=192.168.0.0 <br>
nat=yes <br>
maxexpiry=15<br>
minexpiry=14<br>
 <br>
register =>16194077214:<<password>@<a href="http://69.59.234.67:5060" rel="noreferrer" target="_blank">69.59.234.67:5060</a><br>
<br>
[vonage-out]<br>
username=<a href="tel:16194077214" value="+16194077214">16194077214</a><br>
type=friend<br>
secret=<<password>><br>
port=5061<br>
nat=yes<br>
host=69.59.234.67<br>
fromuser=1619xxxxxxx<br>
fromdomain=69.59.234.67<br>
dtmfmode=rfc2833<br>
auth=md5<br>
<br>
[69.59.234.67]<br>
username=1619xxxxxxx<br>
;type=friend<br>
type=peer<br>
;type=user<br>
secret=<<password>><br>
port=5061<br>
nat=yes<br>
insecure=port,invite<br>
host=69.59.234.67<br>
fromuser=1619xxxxxxx<br>
fromdomain=69.59.234.67<br>
;dtmfmode=inband<br>
context=from-pstn<br>
canreinvite=no<br>
;auth=md5<br>
disallow=all<br>
allow=ulaw <br>
;allow=alaw <br>
;allow=g729 <br>
;allow=g723 <br>
<br>
 When I make the INBOUD call, vonage-out peer is selected based on the debug.  In other words if my sip.conf is as follows<br>
<br>
[general]<br>
....<br>
[vonage-out]<br>
....<br>
[69.59.234.67]<br>
...<br>
Then the peer Asterisk selects is vonage-out. I want vonage-out to be  used for OUTBOUND as the name implies.<br>
<br>
However if I switch them, as follows:<br>
<br>
[general]<br>
...<br>
[69.59.234.67]<br>
...<br>
[vonage-out]<br>
.....<br>
<br>
Then the peer 69.59.234.67 is selected which is what I want for an INBOUND.<br>
<br>
Any idea why?<br>
<br>
Your kind help is appreciated.<br>
<br>
Best regards<br>
<span class="HOEnZb"><font color="#888888">murthy<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" rel="noreferrer" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">David Cunningham, Voisonics<br><a href="http://voisonics.com/" target="_blank">http://voisonics.com/</a><br>USA: +1 213 221 1092<br>UK: +44 (0) 20 3298 1642<br>Australia: +61 (0) 2 8063 9019<br></div>
</div>