#SYN-3 freepbx dialplan enhancements #include extensions_synapse.conf #custom destination: go to the voicemail of the person that was called. (usefull to give users an IVR where they can choose to goto voicemail) [voicemail-called-person] exten => s,1,VoiceMail(${EXTTOCALL}) #set callforwarding for specified extension to specified number #eg: *752000612345678 #sets callforwarding for 200 to 0622588835 [from-internal-custom] exten => _*75.,1,Answer exten => _*75.,n,Wait(1) exten => _*75.,n,Macro(user-callerid,) exten => _*75.,n,Set(fromext=${EXTEN:3:3}) exten => _*75.,n,Set(toext=${EXTEN:6}) exten => _*75.,n,Set(DB(CF/${fromext})=${toext}) exten => _*75.,n,Set(STATE=BUSY) exten => _*75.,n,Gosub(app-cf-on,sstate,1()) exten => _*75.,n(hook_2),Playback(call-fwd-unconditional&for&extension) exten => _*75.,n,SayDigits(${fromext}) exten => _*75.,n,Playback(is-set-to) exten => _*75.,n,SayDigits(${toext}) exten => _*75.,n,Macro(hangupcall,)