Hi Noah,<br>
Thanks for your reply.<br>
Please clarify one more doubt in extensions.conf file...<br>
is the following dial plan is right way to call another server(frome serverA to serverB)<br>
<br>
exten => _5XXXXX,1,Dial(sip/5XXXXX@192.1682.105:6030,15,tr)<br>
<br>
exten => _5XXXXX,2,Hangup<br>
<br>
<br>
here for an example the extension 510510 is in server B ...<br>
<br>
plz do reply <br>
<br>
<br>
Regards,<br>
Thiru<br>
<br>
<br><br><div><span class="gmail_quote">On 12/30/06, <b class="gmail_sendername">Noah Miller</b> <<a href="mailto:noahisaacmiller@gmail.com">noahisaacmiller@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Thiru -<br><br>> Could u tell me ,how to connect 2 asterisk server using sip as a<br>> clients...<br>> asterisk server are in same network...<br><br>You can connect them either as "friends" or as "users/peers". I
<br>generally recommend the user/peer method for connecting two servers<br>since it clearly delineates which codecs and contexts are allowed.<br>Your sip.conf files will look something like this:<br><br>Server A sip.conf:
<br><br>[ToServerB]<br>type=peer<br>secret=<fromServerAtoServerB><br>username=<fromServerAtoServerB><br>host=<ip.of.serverB><br>qualify=1000<br><br>[FromServerB]<br>type=user<br>secret=<fromServerBtoServerA>
<br>username=<fromServerBtoServerA><br>context=extensions<br>disallow=all<br>allow=<codecs you want to allow><br><br><br>Server B sip.conf:<br><br>[ToServerA]<br>type=peer<br>secret=<fromServerBtoServerA>
<br>username=<fromServerBtoServerA><br>host=<ip.of.serverA><br>qualify=1000<br><br>[FromServerA]<br>type=user<br>secret=<fromServerAtoServerB><br>username=<fromServerAtoServerB><br>context=extensions
<br>disallow=all<br>allow=<codecs you want to allow><br><br>Replace the items in angle brackets <xxx> with your own values.<br><br>Now, if you have everything loaded correctly, and you issue a "sip<br>show peers" from the CLI of Server B, you should see something like:
<br><br>ToServerA/fromServerBtoServerA ip.of.server.A<br>5060 OK (37 ms)<br><br><br>ALSO: Make sure you have the correct ports opened in both directions:<br><br>5060 TCP and UDP (this is the sip standard, but you can change it in
sip.conf)<br>10000 - 20000 UDP (this is the asterisk default. You can set the exact<br>numbers in rtp.conf)<br><br><br>- Noah<br><br><br>P.S. It's generally better to direct these types of questions to the<br>entire list rather than just a few users from the list.
<br></blockquote></div><br>