[asterisk-dev] ODBCquery from dial plan

Leif Madsen leif.madsen at asteriskdocs.org
Fri Oct 6 07:54:29 MST 2006


On Friday 06 October 2006 10:34, Alexandr Olekhnovich wrote:
> I have to use ODBC query from dial plan, any ideas or patches ? (Astersik
> v1.2.12.1)

1) This is probably best asked on asterisk-users please
2) http://svncommunity.digium.com/view/func_odbc/

I have used it quite extensively and works awesome. I'd suggest you also make 
use of it with app_stack if you plan on utilizing it from within' a nested 
Macro() because Asterisk will segfault if it runs out of memory. Make use of 
GoSub() with arguments to get around this issue (also has a 1.2 version, just 
replace func_odbc with app_stack in the link I just gave you).

Thanks go out to Corydon (Tilghman Lesher) for making this a reality.

--
Leif Madsen
http://www.leifmadsen.com
http://www.oreilly.com/catalog/asterisk


More information about the asterisk-dev mailing list