[Asterisk-Dev] ASTCC agi hangup
Igor Rooij de
iderooij at cq-link.sr
Tue Sep 28 04:54:02 MST 2004
Joe,
I just tried that but it too is executed before the call is actually
hung up .. see the following debug output, acct-stop.agi was run in the
h,1 extension in the context of the prepaid call :
-- AGI Script acct-stop.agi completed, returning 0
Sep 28 08:39:23 DEBUG[19470]: chan_sip.c:1759 sip_hangup:
update_user_counter(19259) - decrement inUse counter
Sep 28 08:39:27 DEBUG[6150]: chan_sip.c:826 __sip_ack: Stopping
retransmission on '019c82b10de19a2763c4cc7276d0cfc5 at 10.0.0.1' of Request
103: Found
As you can see, only after the agi is run is the sip_hangup run.. then
it has to wait for an ack.. i am on a satellite link so these seconds
can add up quick...
I want to be sure the ack is received before i bill the card, otherwise
my local call detail records won't agree with the upstream call detail
records.
Thanks,
Igor de Rooij
-----Original Message-----
From: asterisk-dev-bounces at lists.digium.com
[mailto:asterisk-dev-bounces at lists.digium.com]On Behalf Of Joe Woss
Sent: Monday, September 27, 2004 7:44 PM
To: Asterisk Developers Mailing List
Subject: Re: [Asterisk-Dev] ASTCC agi hangup
Have you tried using DeadAGI and a h,1, extension in the context of the
call...?
-Joe
On Mon, 27 Sep 2004 16:41:10 -0300, Igor Rooij de <iderooij at cq-link.sr>
wrote:
>
> Hello,
>
> I am building an AGI application like ASTCC, actually almost finished
but now i have a question..
>
> When the call is answered, the callingcard is billed right away before
the call is actually hung up..
>
> This means that you will always lose a number of seconds billing
time.. the time it takes to hang up the call, wich can be significant on
a voip network.
>
> Is there any way to solve this in an AGI app ? i.e. is there a way to
hangup/disconnect the call and be sure it is done ( BYE is sent ) when
we bill the card ?
>
> I tried executing Softhangup / Hangup but neither has the effect i am
looking for.
>
> Thanks,
>
> Igor de Rooij
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
_______________________________________________
Asterisk-Dev mailing list
Asterisk-Dev at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-dev
More information about the asterisk-dev
mailing list