<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I dont know, maybe I am missing it. &nbsp;I see nothing off the top of my head that shows you attempting to dial out 2 different providers or fail between them. &nbsp;Both times you have posted code I see a dial command set to go to a single Zap Group, and no failure code or Prefix that determines how or when to dial the other Zap Group instead. &nbsp;I think your getting lost in your code, or are missing things you should be providing to the mail list so we can figure out the problem for you.<div><br></div><div>WHAT is your determining factor for dialing Group1 or Group2? &nbsp;Does Group 1 dial with a 8 prefix and Group 2 dial with a 9 prefix? &nbsp;Are you attempting to failover from Group 1 to Group 2 when you get a "cancel" dialstatus. &nbsp;Also your dialstatus getting set to cancel should be your user deciding to hangup the call. &nbsp;I dial between asterisk servers all the time, and have used some as proxy's to resolve weird provider issues, I haven't seen a cancel just randomly showup in place of a valid DIALSTATUS when doing so, without the "agent/user" canceling the call. &nbsp;However I obviously have not tested this against every version like between 1.2-&gt;1.6 (I have however done 1.2-&gt;1.4 and 1.4-&gt;1.6.).</div><div><div><br></div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Trevor Benson</div><div>dCAP, LPIC-1, CLA, Network+, MCP, CNA</div><div><div>A1 Networks - Network Engineer</div></div><div>DID (707)703-1041</div><div>FAX (707)703-1983</div><div><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On May 26, 2010, at 8:41 AM, salaheddine elharit wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><br>Hello All</div>
<div>&nbsp;</div>
<div>i have set all extensions for 2 providers in dialplan.conf and extensions.conf</div>
<div>&nbsp;</div>
<div>the problem is all numbers take the same provider </div>
<div>&nbsp;</div>
<div>when i change the g1 with g2 all the phones numbers take the secend provider&nbsp; </div>
<div>&nbsp;</div>
<div><span lang="FR"><p>; Outbound dial context</p><p>[aheeva_ccs]</p><p>; If we are dialing out through another Asterisk, sometimes when a call is not</p><p>; answered the DIALSTATUS gets set to CANCEL and Asterisk just aborts the DIAL</p><p>; and jumps directly to the h extension without continuing processing in the</p><p>; dialplan after the Dial application, which means that we do not send the</p><p>; DIALSTATUS to the CCS server after the dial. This is why we need to capture</p><p>; here in the h extension and send a NOANSWER.</p><p>exten =&gt; h,1,NoOp(ds= ${DIALSTATUS});</p><p>exten =&gt; h,2,GotoIf($["${DIALSTATUS}" = "ANSWER"]?6:3)</p><p>exten =&gt; h,3,GotoIf($["${DIALSTATUS}" = "CANCEL"]?4:5)</p><p>exten =&gt; h,4,AHEventsProxy(NOANSWER:${AHEEVA_TRACKNUM}:${AH_PHONE_NUMBER}:${AH_RECORDID}:${EPOCH})</p><p>exten =&gt; h,5,AHEventsProxy(MSG_TYPE_TERMINATE_CALL:${AHEEVA_TRACKNUM}:${AH_PHONE_NUMBER}:${AH_RECORDID}:${EPOCH}:${AH_AGENTID})</p><p>exten =&gt; h,6,Hangup</p><p>exten =&gt; _OUT.,1,NoOp(AHEEVA1 Variables: AH_PHONE_NUMBER=[${AH_PHONE_NUMBER}] AH_QUEUE=[${AH_QUEUE}] AH_URL=[${AH_URL}] AH_RECORDID=[${AH_RECORDID}] AH_AMD_REQUIRED=[${AH_AMD_REQUIRED}] AH_CALLERID=[${AH_CALLERID}] AHEEVA_TRACKNUM=[${AHEEVA_TRACKNUM}] AH_LEAVE_MESSAGE=[${AH_LEAVE_MESSAGE}])</p><p>exten =&gt; _OUT.,2,SetCallerId(${AH_CALLERID})</p><p>exten =&gt; _OUT.,3,Dial(Zap/<font style="BACKGROUND-COLOR: #ff0000">g1</font>/${AH_PHONE_NUMBER},30)</p><p>exten =&gt; _OUT.,4,NoOp(Dial Status=[${DIALSTATUS}] Hangup Cause=[${HANGUPCAUSE}])</p><p>exten =&gt; _OUT.,5,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL" &amp; "${HANGUPCAUSE}" = "16"]?6:8)</p><p>exten =&gt; _OUT.,6,AHEventsProxy(MSG_TYPE_CALL_SIT:${AHEEVA_TRACKNUM}:${AH_PHONE_NUMBER}:${AH_RECORDID}:${EPOCH})</p><p>exten =&gt; _OUT.,7,Goto(9)</p><p>exten =&gt; _OUT.,8,AHEventsProxy(${DIALSTATUS}:${AHEEVA_TRACKNUM}:${AH_PHONE_NUMBER}:${AH_RECORDID}:${EPOCH})</p><p>exten =&gt; _OUT.,9,NoOp()</p><div>&nbsp;<br class="webkit-block-placeholder"></div><p>thanks a lot </p></span><br></div>
<div class="gmail_quote">2010/5/26 Doug Lytle <span dir="ltr">&lt;<a href="mailto:support@drdos.info">support@drdos.info</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">salaheddine elharit wrote:<br>&gt;<br>&gt; &nbsp; &nbsp; G2 is for the second provider and g1 for the first provider even I<br>&gt; &nbsp; &nbsp; configured the extensios.conf I have some calls passed from g1<br>&gt; &nbsp; &nbsp; instead g2<br>
&gt;<br>&gt; &nbsp; &nbsp; Any help please will be appreciated<br>&gt;<br><br></div>Maybe if you asked a question, something could help. &nbsp;But, as it is<br>stated now, I'm have no idea as to what you want help with.<br><br>Doug<br>
<br><br><br>--<br><br>Ben Franklin quote:<br><br>"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."<br><br><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>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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>&nbsp; <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>
-- <br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div><br></div></div></body></html>