Execute action right after dialing?


Is there any way to execute an action or stepping to next priority right after the dialing occurs?
In other words, 2 actions at the same time : dialing and exucuting a sctript.

exten => 123,1,dial(SIP/123)
same => n,action

No and Maybe … Depends what You want to achieve:
Real parallel processing isn’t available through asterisk.
What You may do is - depending on Your asterisk version - issuing a command (within a context) pre - bridging the channels or on successfull bridging and answering.

Consult https://wiki.asterisk.org/wiki/display/AST/Pre-Dial+Handlers (for 11 and newer)
https://wiki.asterisk.org/wiki/display/AST/Application_Dial (for 1.8 and newer)

Local channel could help you.

Thanx for your help I will look into it.

@ambiorixg12: That’s a real sophisticated idea - just use Local channels not for “real dialing” but for issuing any parallel command procedure. Really nice :smile:

1 Like