Displaying 2 results from an estimated 2 matches for "fromvoipfone201".
2016 Oct 17
4
Multiple readfile oddities, newlines etc
...1,l,u)})
same => n,Verbose(${feature})
same => n,Set(featurefile=/home/test/feature-1.txt)
same => n,Set(feature2=${FILE(${featurefile},0,1,l,u)})
same => n,Verbose(${feature2})
Both should output "radio", right? Here's the output:
-- Executing [5 at fromvoipfone201:2] Set("PJSIP/6001-00000052",
"feature=radio") in new stack
-- Executing [5 at fromvoipfone201:3] Verbose("PJSIP/6001-00000052",
"radio") in new stack
radio
-- Executing [5 at fromvoipfone201:4] Set("PJSIP/6001-00000052",
"featurefile=...
2016 Oct 21
2
Problem with REMAINDER? 957%60 be 15 remainder 57 not 15 remainder -3 ?
...7,1,Verbose(Context: ${CONTEXT} Exten:${EXTEN})
same => n,Set(myNum=957)
same => n,Set(sec=$[REMAINDER(${myNum},60)])
same => n,Set(sec=$[ABS(${sec})])
same => n,Set(sec=$[${MATH(${sec}+0,i)}])
same => n,Verbose(1,${myNum},${sec})
gives me
-- Executing [7 at fromvoipfone201:1] Verbose("PJSIP/6001-00000007",
"Context: fromvoipfone201 Exten:7") in new stack
Context: fromvoipfone201 Exten:7
-- Executing [7 at fromvoipfone201:2] Set("PJSIP/6001-00000007",
"myNum=957") in new stack
-- Executing [7 at fromvoipfone201:3] Set(&q...