[asterisk-dev] app_dial.c - multiple dials - M option - ANSWEREDTIME
Steve Murphy
murf at digium.com
Thu Jul 31 15:52:45 CDT 2008
see below...
On Thu, 2008-07-31 at 11:37 -0400, Ruddy Gbaguidi wrote:
> Hi all.
> Here is the situation we have.
> When somebody call extension 1000, we start AGI 'agicaller.php'
> that will try to call 10 people one after another.
> For each person, if the other party answer the channel, with option
> M(agicallee.php),
> we check if the other person accept the call and if yes, we connect both
> parties.
> If not, we try the next person and so on.
>
>
> Now, after looking at app_dial.c, I realize that,
> ANSWEREDTIME is not set to 0 when we enter dial application and is setup
> only when after the BRIDGE.
>
> So, if somebody reject the call and the agicallee.php macro setup
> MACRO_RESULT to CONGESTION, the
> DIALSTATUS is set to ANSWERED but ANSWEREDTIME is not reset and have the
> same value as the last Dial that was made by that call.
>
> I think :
> 1. Everytime, we enter dial_exec_full, we should reset ANSWEREDTIME to 0
> 2. Setup ANSWEREDTIME for every situation where the call was answered,
> not only when it was bridge.
> Because the agicallee.php can take 5 minutes to execute and set
> MACRO_RESULT to CONGESTION after all.
>
>
> I hope I was enough clear in my explanations.
> Thanks.
>
>
Looks clear enough to me. If you file a bug on bugs.digium.com,
you can use the contents of the above for the description.
Assign it to murf (me), and I'll look at it!
thanks!
murf
--
Steve Murphy
Software Developer
Digium
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3227 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20080731/8749b29e/attachment.bin
More information about the asterisk-dev
mailing list