@@ -53,7 +53,23 @@ |
exten => s,n,Dial(SIP/604&SIP/602,25,tr) | exten => s,1000,Background(press1tospeaktome) | ~/pp~ | -!!Example 4 with ((Asterisk func func_odbc|func_odbc)) | + | +!!Example 4 (by Tikal Networks ) | +~pp~ | +Important!!! | +If from any reason gotoif dose not work with floating numbers try to cut the floating number and compare it with the first argument | +exten => charge_set_up_fee,1,Noop(=== NOW STARTING 'set up fee' ===) | +exten => charge_set_up_fee,n,Set(fee_credit=20.36) | +exten => charge_set_up_fee,n,ExecIf($[${fee_credit} < 0.50],Playback,custom/credit_less_then_0_5) | +exten => charge_set_up_fee,n,ExecIf($[${fee_credit} < 0.50],Macro,hangupcall,EXIT); play msg and exit if user have lass the 0.5 cent | +;exten => charge_set_up_fee,n,GotoIf($[${fee_credit} > 20]?continue) ; this will not work | +exten => charge_set_up_fee,n,GotoIf($[${CUT(fee_credit,\.,1)} > 20]?continue) ; this will work | +exten => charge_set_up_fee,n,Set(lala=blabla) | +exten => charge_set_up_fee,n(continue),Set(CALL_START_DATE=${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)}) | +~pp~ | + | + | +!!Example 5 with ((Asterisk func func_odbc|func_odbc)) | __in func_odbc.conf:__ | ~pp~ | [ISLOCAL] |
|
|