Hi, im a new user to asterisk. i have configured one box using asterisknow. now i want to enable *9 (or some code) to play for example tt-monkeys. i read a lot in voip-info but cant do it: i have this on my features.conf: [applicationmap] testfeature => *9,callee,Playback,tt-monkeys extensions.conf: [globals] DYNAMIC_FEATURES=testfeature trunk_1 = Zap/g1 trunk_2 = Zap/g2 what else i have to add in order to make this works? im using 2 xlite, please help me
Hi,
How can i get the deadAGI to work at this scenario
Basically when someonc calls international,  i will get the remaining
balance using AGI get-available.php.
but after the call i would like to get the usage by calling get-usage.php so i
can update users balance, but looking at the debug it seems the AGI was not
called. is there som
exten => _00.,1,AGI(get-available.php)
exten => _00.,n,GotoIf($["${CALLSTATUS}" = "1"]?70)
exten => _00.,n,GotoIf($["${CALLSTATUS}" = "2"]?80)
exten => _00.,70,Dial(SIP/${EXTEN}@sb-trunk)
exten => _00.,n,Hangup
exten => _00.,n,DEADAGI(get-usage.php)
exten => _00.,80,Busy
exten => _00.,n,Hangup
Regards,
Nhadie
      
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20080606/111abd18/attachment.htm
You should use it on the hang-up extension and only after the channel is technically dead. It works fine for that. l. On Sat, 07 Jun 2008 01:25:37 +0200, Nhadie Ramos <nhadie.ramos at yahoo.com> wrote:> Hi, > > How can i get the deadAGI to work at this scenario > > Basically when someonc calls international,  i will get the > remaining balance using AGI get-available.php. > > but after the call i would like to get the usage by calling > get-usage.php so i can update users balance, but looking at the debug it > seems the AGI was not called. is there som > > exten => _00.,1,AGI(get-available.php) > exten => _00.,n,GotoIf($["${CALLSTATUS}" = "1"]?70) > exten => _00.,n,GotoIf($["${CALLSTATUS}" = "2"]?80) > exten => _00.,70,Dial(SIP/${EXTEN}@sb-trunk) > exten => _00.,n,Hangup > exten => _00.,n,DEADAGI(get-usage.php) > exten => _00.,80,Busy > exten => _00.,n,Hangup > > > Regards, > Nhadie > > >-- Loway Research - Home of QueueMetrics http://queuemetrics.com
On Jun 6, 2008, at 4:33 PM, Manolet Gmail wrote:> i have this on my features.conf: > > [applicationmap] > testfeature => *9,callee,Playback,tt-monkeys > > extensions.conf: > > [globals] > DYNAMIC_FEATURES=testfeature > trunk_1 = Zap/g1 > trunk_2 = Zap/g2 > > > what else i have to add in order to make this works? im using 2 xlite,Just a hunch ... if you're using xltite, it's likely that you're not pressing the digits fast enough to satisfy the default timeout. The default "featuredigittimeout" is 500 ms. Change this option in features.conf and increase it to 2000 ms and try again. -- Russell Bryant Senior Software Engineer Open Source Team Lead Digium, Inc.
Hi Sir,
I tried it this way, and now i can see my DEADGI being called next prob is
on  that script i query the cdr table with the uniqueid. tried counting
the row result first , and result was 0.
how can i make sure that it was already at the CDR table before i call my agi? i
tried to use ResetCDR() and also without ResetCDR() but still 0 result on the
row.
but when i query manully on the mysql console, i can see the cll was logged.
Thank You
[macro-dialout-trunk]
exten => s,1,Wait(1)
exten => s,n,Dial(SIP/${ARG1}@${ARG2},30,t)
exten => s,n.ResetCDR()
exten => s,n,Hangup
exten => h,1,DEADAGI(get-total.php)
--- On Sat, 6/7/08, Lenz <lenz-ml at loway.it> wrote:
From: Lenz <lenz-ml at loway.it>
Subject: Re: [asterisk-users] Question on DeadAGI
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Date: Saturday, June 7, 2008, 12:50 PM
You should use it on the hang-up extension and only after the channel is  
technically dead.
It works fine for that.
l.
On Sat, 07 Jun 2008 01:25:37 +0200, Nhadie Ramos <nhadie.ramos at
yahoo.com>
 
wrote:
> Hi,
>
> How can i get the deadAGI to work at this scenario
>
> Basically when someonc calls international,&nbsp; i will get
the
> remaining balance using AGI get-available.php.
>
> but after the call i would like to get the usage by calling  
> get-usage.php so i can update users balance, but looking at the debug
it
> seems the AGI was not called. is there som
>
> exten =&gt; _00.,1,AGI(get-available.php)
> exten =&gt; _00.,n,GotoIf($["${CALLSTATUS}"
"1"]?70)
> exten =&gt; _00.,n,GotoIf($["${CALLSTATUS}"
"2"]?80)
> exten =&gt; _00.,70,Dial(SIP/${EXTEN}@sb-trunk)
> exten =&gt; _00.,n,Hangup
> exten =&gt; _00.,n,DEADAGI(get-usage.php)
> exten =&gt; _00.,80,Busy
> exten =&gt; _00.,n,Hangup
>
>
> Regards,
> Nhadie
>
>
>
-- 
Loway Research - Home of QueueMetrics
http://queuemetrics.com
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
      
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20080607/d2338eac/attachment.htm
Thanks to all the help. I think i have it now. I reset the CDR on the hangup
channel.
[macro-dialout-trunk]
exten => s,1,Wait(1)
exten => s,n,Dial(SIP/${ARG1}@${ARG2},30,t)
exten => s,n,Hangup()
exten => h,1,ResetCDR(w)
exten => h,n,NoCDR()
exten => h,n,DEADAGI(get-total.php)
AGI Rx << EXEC Noop ROWCOUNT=1
    -- AGI Script Executing Application: (Noop)
Options: (ROWCOUNT=1)
AGI Tx >> 200 result=0
AGI Rx << EXEC Noop BILLSEC=21
    -- AGI Script Executing Application: (Noop)
Options: (BILLSEC=21)
now i can see my billsec. thanks again for all the help.
regards,
nhadie
--- On Sat, 6/7/08, Nhadie Ramos <nhadie.ramos at yahoo.com>
wrote:
From: Nhadie Ramos <nhadie.ramos at yahoo.com>
Subject: Re: [asterisk-users] Question on DeadAGI
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Date: Saturday, June 7, 2008, 10:39 PM
Hi Sir,
I tried it this way, and now i can see my DEADGI being called next prob is
on  that script i query the cdr table with the uniqueid. tried counting
the row result first , and result was 0.
how can i make sure that it was already at the CDR table before i call my agi? i
tried to use ResetCDR() and also without ResetCDR() but still 0 result on the
row.
but when i query manully on the mysql console, i can see the cll was logged.
Thank You
[macro-dialout-trunk]
exten => s,1,Wait(1)
exten => s,n,Dial(SIP/${ARG1}@${ARG2},30,t)
exten => s,n.ResetCDR()
exten => s,n,Hangup
exten => h,1,DEADAGI(get-total.php)
--- On Sat, 6/7/08, Lenz
 <lenz-ml at loway.it> wrote:
From: Lenz <lenz-ml at loway.it>
Subject: Re: [asterisk-users] Question on DeadAGI
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Date: Saturday, June 7, 2008, 12:50 PM
You should use it on the hang-up extension and only after the channel is  
technically dead.
It works fine for that.
l.
On Sat, 07 Jun 2008 01:25:37 +0200, Nhadie Ramos <nhadie.ramos at
yahoo.com>
 
wrote:
> Hi,
>
> How can i get the deadAGI to work at this scenario
>
> Basically when someonc calls international,&nbsp; i will get
the
> remaining balance using AGI get-available.php.
>
> but after the call i would like to get the usage by calling  
> get-usage.php so i
 can update users balance, but looking at the debug it  
> seems the AGI was not called. is there som
>
> exten =&gt; _00.,1,AGI(get-available.php)
> exten =&gt; _00.,n,GotoIf($["${CALLSTATUS}"
"1"]?70)
> exten =&gt; _00.,n,GotoIf($["${CALLSTATUS}"
"2"]?80)
> exten =&gt; _00.,70,Dial(SIP/${EXTEN}@sb-trunk)
> exten =&gt; _00.,n,Hangup
> exten =&gt; _00.,n,DEADAGI(get-usage.php)
> exten =&gt; _00.,80,Busy
> exten =&gt; _00.,n,Hangup
>
>
> Regards,
> Nhadie
>
>
>
-- 
Loway Research - Home of QueueMetrics
http://queuemetrics.com
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
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 --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
      
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20080607/eedb1689/attachment.htm