<div dir="ltr">still the peer shows unreachable.... let me restart and give a try... </div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 3, 2013 at 2:49 AM, Asghar Mohammad <span dir="ltr"><<a href="mailto:asghar144@gmail.com" target="_blank">asghar144@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 style="font-family:arial,sans-serif;font-size:13px"><b>1st Location</b></div><div style="font-family:arial,sans-serif;font-size:13px">
[manila]</div><div style="font-family:arial,sans-serif;font-size:13px">
type=peer</div><div style="font-family:arial,sans-serif;font-size:13px">username=indman01</div><div style="font-family:arial,sans-serif;font-size:13px">secret=indman01</div><div style="font-family:arial,sans-serif;font-size:13px">
host=10.30.2.5 <-- ip of 2nd location</div><div class="im"><div style="font-family:arial,sans-serif;font-size:13px">port=5060</div><div style="font-family:arial,sans-serif;font-size:13px">context=Manila</div><div style="font-family:arial,sans-serif;font-size:13px">
insecure=port,invite</div><div style="font-family:arial,sans-serif;font-size:13px">dtmfmode=rfc2833</div><div style="font-family:arial,sans-serif;font-size:13px">relaxdtmf=yes</div><div style="font-family:arial,sans-serif;font-size:13px">
directmedia=no</div><div style="font-family:arial,sans-serif;font-size:13px">qualify=yes</div><div style="font-family:arial,sans-serif;font-size:13px">disallow=all</div><div style="font-family:arial,sans-serif;font-size:13px">
allow=g729</div><div style="font-family:arial,sans-serif;font-size:13px">allow=ulaw</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div></div><div style="font-family:arial,sans-serif;font-size:13px">1st location dialplan</div>
<div style="font-family:arial,sans-serif;font-size:13px"><div>exten => _2XXX,1,Dial(SIP/manila<a href="http://10.30.2.5/$%7BEXTEN%7D" target="_blank">/${EXTEN}</a>)</div><div>exten => _2XXX,n,Hangup</div><div><br></div>
<div><div><b>2nd Location</b></div><div>[india]</div><div class="im"><div>type=friend</div><div>username=manind01</div><div>secret=manind01</div><div>host=dynamic</div><div>port=5060</div></div><div>context=10.20.111.48 <- ip of 1st location</div>
<div class="im">
<div>insecure=port,invite</div><div>dtmfmode=rfc2833</div><div>relaxdtmf=yes</div><div>directmedia=no</div><div>qualify=yes</div><div>nat=force_rport,comedia</div><div>disallow=all</div><div>allow=g729</div><div>allow=ulaw</div>
<div>allow=alaw</div></div></div><div><br></div><div><div>2st location dialplan</div><div><div>exten => _2XXX,1,Dial(SIP/india<a href="http://10.30.2.5/$%7BEXTEN%7D" target="_blank">/${EXTEN}</a>)</div><div>exten => _2XXX,n,Hangup</div>
</div></div><div><br></div><div>then you should handle the call when it arrive in any server</div><div>let me know if it work.</div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Jul 2, 2013 at 10:56 PM, Gopalakrishnan N <span dir="ltr"><<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@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">I tried creating two trunks with following,<div><div><b>1st Location</b></div><div>[10.30.2.5]</div><div>
type=friend</div><div>username=indman01</div><div>secret=indman01</div><div>host=dynamic</div><div>port=5060</div>
<div>context=Manila</div><div>insecure=port,invite</div><div>dtmfmode=rfc2833</div><div>relaxdtmf=yes</div><div>directmedia=no</div><div>qualify=yes</div><div>disallow=all</div><div>allow=g729</div><div>allow=ulaw</div><div>
<br></div><div><b>2nd Location</b></div><div>[10.20.111.48]</div><div>type=friend</div><div>username=manind01</div><div>secret=manind01</div><div>host=dynamic</div><div>port=5060</div><div>context=india</div><div>insecure=port,invite</div>
<div>dtmfmode=rfc2833</div><div>relaxdtmf=yes</div><div>directmedia=no</div><div>qualify=yes</div><div>nat=force_rport,comedia</div><div>disallow=all</div><div>allow=g729</div><div>allow=ulaw</div><div>allow=alaw</div><div>
<br></div><div>My dialplan is like this</div><div>exten => _2XXX,1,Dial(SIP/<a href="http://10.30.2.5/$%7BEXTEN%7D" target="_blank">10.30.2.5/${EXTEN}</a>)</div><div>exten => _2XXX,n,Hangup</div><div><br></div><div>
And the output I get is </div>
<div><div> Executing [2001@Test:1] Dial("SIP/3081-000027d2", "SIP/<a href="http://10.30.2.5/2001" target="_blank">10.30.2.5/2001</a>") in new stack</div><div>[Jul 2 16:49:57] WARNING[15766][C-00002b94]: app_dial.c:2437 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)</div>
<div> == Everyone is busy/congested at this time (1:0/0/1)</div><div> -- Executing [2001@Test:2] Hangup("SIP/3081-000027d2", "") in new stack</div><div> == Spawn extension (Test, 2001, 2) exited non-zero on 'SIP/3081-000027d2'</div>
</div><div><br></div><div>Actually the trunk which i mentioned in my first email, it was working... and from today it is not.... </div><div><br></div><div>Still breaking... what could be the reason... !</div><div><br></div>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 3, 2013 at 2:05 AM, Asghar Mohammad <span dir="ltr"><<a href="mailto:asghar144@gmail.com" target="_blank">asghar144@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">yes you can. just create trunks on both side with static ip and in dial use trunk name.<div>exten => _X.,1,Dial(SIP/trunka/${EXTEN}) on side b and exten => _X.,1,Dial(SIP/trunkb/${EXTEN}) on side a.</div>
<div>make a call from a to b and one from b to and post cli log here or upload anyware else.</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 2, 2013 at 10:25 PM, Gopalakrishnan N <span dir="ltr"><<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@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">can't we use without register command both way as peer to peer?</div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Wed, Jul 3, 2013 at 1:45 AM, Asghar Mohammad <span dir="ltr"><<a href="mailto:asghar144@gmail.com" target="_blank">asghar144@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">1. you permiting 10.10.10.0 on b but you should permit 10.30.2.0 on b and 10.10.10.0 on a.<div>2. use host=dynamic type=friend on side A and host=ip type=peer on side B.</div>
<div>3. general section in sip.conf of side B register with server A. </div>
<div><br></div><div>please see comments in sip.conf</div><div><div>;dynamic_exclude_static = yes ; Disallow all dynamic hosts from registering</div><div> ; as any IP address used for staticly defined</div>
<div> ; hosts. This helps avoid the configuration</div><div> ; error of allowing your users to register at</div><div> ; the same address as a SIP provider.</div>
</div><div><br></div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 2, 2013 at 10:04 PM, Gopalakrishnan N <span dir="ltr"><<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@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>[servera]</div><div>type=friend</div><div>username=servera</div><div>secret=servera</div><div>host=10.30.2.5</div>
<div>port=5060</div><div>context=Manila</div><div>insecure=port,invite</div><div>dtmfmode=rfc2833</div>
<div>relaxdtmf=yes</div><div>directmedia=no</div><div>qualify=yes</div><div>disallow=all</div><div>allow=g729</div><div>allow=ulaw</div><div>allow=alaw</div><div>deny=<a href="http://0.0.0.0/0.0.0.0" target="_blank">0.0.0.0/0.0.0.0</a></div>
<div>permit=<a href="http://10.30.2.5/255.255.255.0" target="_blank">10.30.2.5/255.255.255.0</a></div><div><br></div><div>If i use host=dynamic, it wont communicate each other and will result to unmonitored.... </div><div>
<br></div><div>
<br></div><div>and the IP segment is two different segment. where am able to ping each other. </div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 3, 2013 at 1:29 AM, Asghar Mohammad <span dir="ltr"><<a href="mailto:asghar144@gmail.com" target="_blank">asghar144@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">hi,<div>paste server a trunk also, if you want register why you are not using host=dynamic?</div><div>both servers are on 10.10.10.0 ? if no then check your deny permit seting.</div>
</div><div class="gmail_extra">
<br><br><div class="gmail_quote"><div><div>On Tue, Jul 2, 2013 at 9:53 PM, Gopalakrishnan N <span dir="ltr"><<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div dir="ltr">Also tried one more scenario, particularly from one IP to other IP not registering. <div><br></div><div>For example like 10.10.10.5 to 10.20.10.5</div><div><br></div><div>If it is 10.10.10.5 to 10.30.2.5 - working</div>
<div>If it is 10.30.2.5 to 10.20.10.4 works fine.</div><div><br></div><div>really strange... I suspect some issue on the network side... </div><div><br></div><div>Problem is there is no packet loss.. with mtr it is fine, tracepath is fine, ping is fine... :( </div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 3, 2013 at 1:05 AM, Gopalakrishnan N <span dir="ltr"><<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@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">Am using Asterisk 11.2 in one location and 11.1 in another location. <div><br></div><div>when I trunk between two servers, the status is unreachable. </div>
<div><br></div><div>But with different server with 11.2 and 11.2 it works fine. </div>
<div><br></div><div>I tried both IAX and SIP. </div><div><br></div><div>the trunk in sip.conf what i have is,</div><div><div><div><div>[serverb]</div><div>type=friend</div><div>username=serverb</div><div>secret=serverb</div>
<div>host=10.10.10.5</div><div>port=5060</div><div>context=default</div><div>insecure=port,invite</div><div>dtmfmode=rfc2833</div><div>relaxdtmf=yes</div><div>directmedia=no</div><div>qualify=3000</div><div>nat=force_rport,comedia</div>
<div>disallow=all</div><div>allow=g729</div><div>allow=ulaw</div><div>allow=alaw</div><div>deny=<a href="http://0.0.0.0/0.0.0.0" target="_blank">0.0.0.0/0.0.0.0</a></div><div>permit=<a href="http://10.10.10.5/255.255.255.0" target="_blank">10.10.10.5/255.255.255.0</a></div>
</div></div></div><div><br></div><div>Is there any issue with 11.1?</div></div>
</blockquote></div><br></div><span><font color="#888888">
<br></font></span></div></div><span><font color="#888888"><span><font color="#888888">--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" 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" 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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></font></span></font></span></blockquote></div><span><font color="#888888"><br>
</font></span></div><span><font color="#888888">
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" 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" 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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></font></span></blockquote></div><br></div><span><font color="#888888">
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" 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" 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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></font></span></blockquote></div><span><font color="#888888"><br>
</font></span></div><span><font color="#888888">
</font></span></div></div><span><font color="#888888"><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" 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" 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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></font></span></blockquote></div><br></div><span><font color="#888888">
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" 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" 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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></font></span></blockquote></div><span><font color="#888888"><br>
</font></span></div><span><font color="#888888">
</font></span></div></div><span><font color="#888888"><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" 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" 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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></font></span></blockquote></div><br></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" 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" 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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>
</div></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" 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" 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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>