Need help to execute a command when dialing an extension

No skill in scripting…

I need to execute a command like " curl -i --digest -u etc etc etc… " when an extension (let’s say 555) is dialed.

How to ??
Some examples please ?

perhaps

Thanks James,
it’s not so difficult when you knows things…

I’m ended up with something like this in extensions_custom.conf:

[newcontext]
exten => 444,1,Wait(1)
exten => 444,n,System(mycommand_bla_bla_bla)
exten => 444,n,Playback(mydedicatemessage)
exten => 444,n,Hangup()

Created a new Custom Destination “newcontext,444,1”
Created a new Misc Application with a feature code pointing to new Custom Destination

I don’t know if it’s the right way, but it works…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.