On Wed, May 26, 2010 at 04:41:57PM +0100, salaheddine elharit wrote: > Hello All > > i have set all extensions for 2 providers in dialplan.conf and > extensions.conf
What's dialplan.conf ? > > the problem is all numbers take the same provider > > when i change the g1 with g2 all the phones numbers take the secend > provider > > > ; Outbound dial context > > [aheeva_ccs] > > ; If we are dialing out through another Asterisk, sometimes when a call is > not > > ; answered the DIALSTATUS gets set to CANCEL and Asterisk just aborts the > DIAL > > ; and jumps directly to the h extension without continuing processing in the > > ; dialplan after the Dial application, which means that we do not send the > > ; DIALSTATUS to the CCS server after the dial. This is why we need to > capture > > ; here in the h extension and send a NOANSWER. > > exten => h,1,NoOp(ds= ${DIALSTATUS}); > > exten => h,2,GotoIf($["${DIALSTATUS}" = "ANSWER"]?6:3) > > exten => h,3,GotoIf($["${DIALSTATUS}" = "CANCEL"]?4:5) > > exten => > h,4,AHEventsProxy(NOANSWER:${AHEEVA_TRACKNUM}:${AH_PHONE_NUMBER}:${AH_RECORDID}:${EPOCH}) > > exten => > h,5,AHEventsProxy(MSG_TYPE_TERMINATE_CALL:${AHEEVA_TRACKNUM}:${AH_PHONE_NUMBER}:${AH_RECORDID}:${EPOCH}:${AH_AGENTID}) What is AHEventsProxy()? Is that a dialplan application? From what module does it come? > > exten => h,6,Hangup > > exten => _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}]) > > exten => _OUT.,2,SetCallerId(${AH_CALLERID}) > > exten => _OUT.,3,Dial(Zap/g1/${AH_PHONE_NUMBER},30) > > exten => _OUT.,4,NoOp(Dial Status=[${DIALSTATUS}] Hangup > Cause=[${HANGUPCAUSE}]) > > exten => _OUT.,5,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL" & "${HANGUPCAUSE}" > = "16"]?6:8) > > exten => > _OUT.,6,AHEventsProxy(MSG_TYPE_CALL_SIT:${AHEEVA_TRACKNUM}:${AH_PHONE_NUMBER}:${AH_RECORDID}:${EPOCH}) > > exten => _OUT.,7,Goto(9) > > exten => > _OUT.,8,AHEventsProxy(${DIALSTATUS}:${AHEEVA_TRACKNUM}:${AH_PHONE_NUMBER}:${AH_RECORDID}:${EPOCH}) > > exten => _OUT.,9,NoOp() > > > > thanks a lot > > 2010/5/26 Doug Lytle <supp...@drdos.info> > > > salaheddine elharit wrote: > > > > > > G2 is for the second provider and g1 for the first provider even I > > > configured the extensios.conf I have some calls passed from g1 > > > instead g2 > > > > > > Any help please will be appreciated > > > > > > > Maybe if you asked a question, something could help. But, as it is > > stated now, I'm have no idea as to what you want help with. > > > > Doug > > > > > > > > -- > > > > Ben Franklin quote: > > > > "Those who would give up Essential Liberty to purchase a little Temporary > > Safety, deserve neither Liberty nor Safety." > > > > > > -- > > _____________________________________________________________________ > > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > New to Asterisk? Join us for a live introductory webinar every Thurs: > > http://www.asterisk.org/hello > > > > asterisk-users mailing list > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users -- Tzafrir Cohen icq#16849755 jabber:tzafrir.co...@xorcom.com +972-50-7952406 mailto:tzafrir.co...@xorcom.com http://www.xorcom.com iax:gu...@local.xorcom.com/tzafrir -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users