Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

How to pre-route calls before it reaches freepbx.

[I have situation where i am executing script before call is connected.]


exten=> _.,1,NoOp(Incoming Call)
exten=> _.,n,GotoIf($["${CALLERID(dnid)}" != "44xxxxxxxxxx"]?final)
exten=> _.,n,System(/path/to/script/ CS 'There is an Incoming call From ${CALLERID(name)} ${CALLERID(all)} n Customer trying to reach ${CALLERID(dnid)}')
exten=> _.,n,NoOp(Sending to PSTN Now)
exten=> _.,n,goto(from-pstn,${EXTEN},1)