Dial plan substitution

How do you do.

How I can substitute dialplan module by my software.
I need asterisk call my module, when it receive call.

Best regards, Eugene

Depends on what you are trying to do. The easiest way is to use the AGI feature of Asterisk to call an external script, or http request using FastAGI:

voip-info.org/wiki-Asterisk+AGI

I need the dialplan don’t execute.
Asterisk, when receive call, invoke my programm instead dialplan.
And my programm control the dialing channel.

[quote=“apoheliy”]I need the dialplan don’t execute.
Asterisk, when receive call, invoke my programm instead dialplan.
And my programm control the dialing channel.[/quote]

Then you would have to write a module to replace the internal parser. Why not just do something like this though?:

exten => s,1,AGI(your_script_here)

At this point all control is handled over to your application, where you may execute the commands you need to.