<div dir="ltr"><div><br>Hello All</div>
<div> </div>
<div>i have set all extensions for 2 providers in dialplan.conf and extensions.conf</div>
<div> </div>
<div>the problem is all numbers take the same provider </div>
<div> </div>
<div>when i change the g1 with g2 all the phones numbers take the secend provider  </div>
<div> </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($[&quot;${DIALSTATUS}&quot; = &quot;ANSWER&quot;]?6:3)</p>
<p>exten =&gt; h,3,GotoIf($[&quot;${DIALSTATUS}&quot; = &quot;CANCEL&quot;]?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($[&quot;${DIALSTATUS}&quot; = &quot;CHANUNAVAIL&quot; &amp; &quot;${HANGUPCAUSE}&quot; = &quot;16&quot;]?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>
<p> </p>
<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;     G2 is for the second provider and g1 for the first provider even I<br>&gt;     configured the extensios.conf I have some calls passed from g1<br>&gt;     instead g2<br>
&gt;<br>&gt;     Any help please will be appreciated<br>&gt;<br><br></div>Maybe if you asked a question, something could help.  But, as it is<br>stated now, I&#39;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>&quot;Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety.&quot;<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>              <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>