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

1 post / 0 new
Anonymous (not verified)
Anonymous's picture
[Amportal-devel] [PATCH] Allow dialparties.agi to play nice

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

www.freepbx.org/trac

Regards

Lee

-----Original Message-----
From: eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%61%6d%70%6f%72%74%61%6c%2d%64%65%76%65%6c%2d%62%6f%75%6e%63%65%73%40%6c%69%73%74%73%2e%73%6f%75%72%63%65%66%6f%72%67%65%2e%6e%65%74%22%3e%61%6d%70%6f%72%74%61%6c%2d%64%65%76%65%6c%2d%62%6f%75%6e%63%65%73%40%6c%69%73%74%73%2e%73%6f%75%72%63%65%66%6f%72%67%65%2e%6e%65%74%3c%2f%61%3e%27%29%3b'))
[mailto:amportal-devel-bounces@lists.sourceforge.net] On Behalf Of Jeff
Doozan
Sent: 23 February 2007 17:46
To: eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%61%6d%70%6f%72%74%61%6c%2d%64%65%76%65%6c%40%6c%69%73%74%73%2e%73%6f%75%72%63%65%66%6f%72%67%65%2e%6e%65%74%22%3e%61%6d%70%6f%72%74%61%6c%2d%64%65%76%65%6c%40%6c%69%73%74%73%2e%73%6f%75%72%63%65%66%6f%72%67%65%2e%6e%65%74%3c%2f%61%3e%27%29%3b'))
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
eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%41%6d%70%6f%72%74%61%6c%2d%64%65%76%65%6c%40%6c%69%73%74%73%2e%73%6f%75%72%63%65%66%6f%72%67%65%2e%6e%65%74%22%3e%41%6d%70%6f%72%74%61%6c%2d%64%65%76%65%6c%40%6c%69%73%74%73%2e%73%6f%75%72%63%65%66%6f%72%67%65%2e%6e%65%74%3c%2f%61%3e%27%29%3b'))
https://lists.sourceforge.net/lists/listinfo/amportal-devel

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