[Amportal-devel] [PATCH] Allow dialparties.agi to play nice

Have you considered creating a feature request and adding your info and
patches there?

Regards

Lee

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jeff
Doozan
Sent: 23 February 2007 17:46
To: [email protected]
Subject: [Amportal-devel] [PATCH] Allow dialparties.agi to play nice
when custom M(macro) used in DIAL_OPTIONS

Problem: Dialparties adds M(whatever) macros to the dial string. Since
asterisk only supports one M(macro) command on a dialstring, this makes
it impossible for users to define their own M(custom) macro using
DIAL_OPTIONS.

Solution: Create a generic macro that will accept a list of other macros
to call. Modify dialparties to use this new macro.

The two attached patches will add a new [macro-dial-answered] macro to
extensions.conf and modify dialparties.agi to call this new macro.

Use scenario:

DIAL_OPTIONS is defined as “trM(custom-macro)”
A ring group is dialed, so dialparties needs to call M(auto-blkvm) after
the call is answered

Previous Behavior: the dialstring would be
|trM(custom-macro)M(auto-blkvm). custom-macro will never be
called

New Behavior: the dialstring would be
|trM(dial-answered|custom-macro|auto-blkvm). dial-answered
will call auto-blkvm and then custom-macro

###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


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

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