Running script after call is hung up

Hi
Is there a way to start a script when a call is hung up ?
I need to update a db after a agent has finished an incomming call.

terchris

At 13.09 14/06/2006, you wrote:

[quote]Hi
Is there a way to start a script when a call is hung up ?
I need to update a db after a agent has finished an incomming call.
[/quote]
I’m working on a module doing that

At the moment you can manually use the h extension in macro-dial in
extensions.conf

[quote]terchris


Amportal-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-devel
[/quote]


Amportal-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-devel

Post generated using Mail2Forum (http://www.mail2forum.com)

Thank you for answering. Based on your answer I was able to find more info.

I added this section in extensions_custom.conf
[debug]]
exten => h,1,NoOP(CALLERID : ${CALLERID})

I added include in macro-dial so that it looks like this:
[macro-dial]
include => debug
exten => s,1,AGI,dialparties.agi

My test phone is an agent in a queue. When I dial the queue my testphone rings. But when I pick up the call I see that the exten => h,1,NoOP(CALLERID : ${CALLERID}) is executed.

How can I get the exten => h,1 to run when the call is executed ?

terchris