Dial plan substitution


#1

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


#2

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


#3

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


#4

[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.