RE: [Asterisk-Users] agi exit problem

2003-10-07 Thread Paul Crick
> Wouldn't it be cool if you could take the call back, into
> the IVR script after the remote party hangs up ?
Yeah, for the exact reasons you suggested!

We had an IVR product that would allow you to zero out to the call centre,
get some help, top up your account, whatever, then when the agent hung up
the phone we'd plop you back in to the system exactly where you left off..
scored big points when we implemented it cos previously the user would have
had to hung up and redialed..

Maybe we need a new DialAndReturn() function? :-)

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] agi exit problem

2003-10-07 Thread mattf
Why does having a call go through call parking make the "h" not work? 

I currently don't use call parking for other reasons so I've never run into
that.

What is the event to run an agi script after a parked call is hung up?

I don't use CDR data because I have a custom perl/TK interface that grabs
live info from a database and I need a lot more flexibility than CDR can
provide. And I'm spoiled by being able to change the AGI scripts on the fly
without restarting Asterisk.

MATT---


-Original Message-
From: Brian West [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 2:55 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [Asterisk-Users] agi exit problem


exten => h,1, will not work if you park a call then pick it back up.  You
are flipping the call direction from what Mark told me.  Whats wrong with
CDR data?  is that not good enough to tell call lenght?

bkw

On Tue, 7 Oct 2003, mattf wrote:

> The way I worked around this is to log the "uniqueid" in a database when
the
> call is placed with the start time and then execute an agi script upon all
> hangups:
>
> exten => h,1,AGI(call_log.agi,${EXTEN})
>
> That script queries the database for the "uniqueid" and if it exists in
the
> table it figures out the call length and updates the record
>
> It's a little bit of perl overhead but if you have a fast system and a
fast
> DB it should have very little delay.
>
> MATT---
>
> -Original Message-
> From: Panny Malialis [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 07, 2003 2:11 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [Asterisk-Users] agi exit problem
>
>
> > Not sure if it's possible to keep the script running after Dial but
> perhaps
> > you could explain what you're attempting to achieve and there may be a
> > workaround.
> >
>
> I want to know how long the call lasted :)
>
> Panny
>
> ___
> Asterisk-Users mailing list
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-users
> ___
> Asterisk-Users mailing list
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] agi exit problem

2003-10-07 Thread Brian West
exten => h,1, will not work if you park a call then pick it back up.  You
are flipping the call direction from what Mark told me.  Whats wrong with
CDR data?  is that not good enough to tell call lenght?

bkw

On Tue, 7 Oct 2003, mattf wrote:

> The way I worked around this is to log the "uniqueid" in a database when the
> call is placed with the start time and then execute an agi script upon all
> hangups:
>
> exten => h,1,AGI(call_log.agi,${EXTEN})
>
> That script queries the database for the "uniqueid" and if it exists in the
> table it figures out the call length and updates the record
>
> It's a little bit of perl overhead but if you have a fast system and a fast
> DB it should have very little delay.
>
> MATT---
>
> -Original Message-
> From: Panny Malialis [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 07, 2003 2:11 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [Asterisk-Users] agi exit problem
>
>
> > Not sure if it's possible to keep the script running after Dial but
> perhaps
> > you could explain what you're attempting to achieve and there may be a
> > workaround.
> >
>
> I want to know how long the call lasted :)
>
> Panny
>
> ___
> Asterisk-Users mailing list
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-users
> ___
> Asterisk-Users mailing list
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] agi exit problem

2003-10-07 Thread Florian Overkamp
Citeren Dave Wilson <[EMAIL PROTECTED]>:

> > Is it possible to make an agi script keep going after a Dial
> > is exectued?
> >
> > Example:
> >
> > use Asterisk::AGI;
> > $AGI = new Asterisk::AGI;
> > $AGI->verbose("--> Hello");
> > $AGI->exec('Dial',"IAX2/whatever"); < when this call ends
> > the agi script
> > ends.
> > $AGI->verbose("--> Hello again");   <--- it never gets to here :(
> > $AGI->hangup();
> > exit(0);
> >
> 
> Not sure if it's possible to keep the script running after Dial but perhaps
> you could explain what you're attempting to achieve and there may be a
> workaround.

Wouldn't it be cool if you could take the call back, into the IVR script after 
the remote party hangs up ?

Might be usefull for callcenters where agents want to allow customers to re-
enter the IVR wherever they left off. Ofcourse one might hack it by 
transferring the user back into the IVR one way or another, but it is a hack. 
Taking the call back after the Dial statement seems more elegant to me ?

-- 
Met vriendelijke groet,
Florian Overkamp
ObSimRef BV
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] agi exit problem

2003-10-07 Thread mattf
The way I worked around this is to log the "uniqueid" in a database when the
call is placed with the start time and then execute an agi script upon all
hangups:

exten => h,1,AGI(call_log.agi,${EXTEN})

That script queries the database for the "uniqueid" and if it exists in the
table it figures out the call length and updates the record

It's a little bit of perl overhead but if you have a fast system and a fast
DB it should have very little delay.

MATT---

-Original Message-
From: Panny Malialis [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 2:11 PM
To: [EMAIL PROTECTED]
Subject: Re: [Asterisk-Users] agi exit problem


> Not sure if it's possible to keep the script running after Dial but
perhaps
> you could explain what you're attempting to achieve and there may be a
> workaround.
>

I want to know how long the call lasted :)

Panny

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] agi exit problem

2003-10-07 Thread Panny Malialis
Thanks, that makes sense now :)

Panny


- Original Message - 
From: "James Golovich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 07, 2003 7:18 PM
Subject: Re: [Asterisk-Users] agi exit problem


>
>
> On Tue, 7 Oct 2003, Panny Malialis wrote:
>
> > > Not sure if it's possible to keep the script running after Dial but
> > perhaps
> > > you could explain what you're attempting to achieve and there may be a
> > > workaround.
> > >
> >
> > I want to know how long the call lasted :)
> >
>
> Your AGI will continue to run, but after the call has hungup you can no
> longer exectue any AGI commands.  Your verbose will fail, but if you print
> to STDERR you will see that your script is still running.
>
> James
>
> ___
> Asterisk-Users mailing list
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-users
>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] agi exit problem

2003-10-07 Thread James Golovich


On Tue, 7 Oct 2003, Panny Malialis wrote:

> > Not sure if it's possible to keep the script running after Dial but
> perhaps
> > you could explain what you're attempting to achieve and there may be a
> > workaround.
> >
> 
> I want to know how long the call lasted :)
> 

Your AGI will continue to run, but after the call has hungup you can no
longer exectue any AGI commands.  Your verbose will fail, but if you print
to STDERR you will see that your script is still running.

James

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] agi exit problem

2003-10-07 Thread Panny Malialis
> Not sure if it's possible to keep the script running after Dial but
perhaps
> you could explain what you're attempting to achieve and there may be a
> workaround.
>

I want to know how long the call lasted :)

Panny

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] agi exit problem

2003-10-07 Thread Dave Wilson
>
> Hello
>
> Is it possible to make an agi script keep going after a Dial
> is exectued?
>
> Example:
>
> use Asterisk::AGI;
> $AGI = new Asterisk::AGI;
> $AGI->verbose("--> Hello");
> $AGI->exec('Dial',"IAX2/whatever"); < when this call ends
> the agi script
> ends.
> $AGI->verbose("--> Hello again");   <--- it never gets to here :(
> $AGI->hangup();
> exit(0);
>

Not sure if it's possible to keep the script running after Dial but perhaps
you could explain what you're attempting to achieve and there may be a
workaround.

Dave


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] agi exit problem

2003-10-07 Thread Panny Malialis
Hello

Is it possible to make an agi script keep going after a Dial is exectued?

Example:

use Asterisk::AGI;
$AGI = new Asterisk::AGI;
$AGI->verbose("--> Hello");
$AGI->exec('Dial',"IAX2/whatever"); < when this call ends the agi script
ends.
$AGI->verbose("--> Hello again");   <--- it never gets to here :(
$AGI->hangup();
exit(0);


Any help would be appreciated,

Thanks

Panny

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users