I have features up and running and added a feature that raises the value of a variable by 1 using the Set() application.With the #1 I trigger show-value-variable that shows me the actual value in the cli and it is working.
the h extension is supposed to show the number of times that I hit *1 but the value stays 0. What can I do to make the value of TELLER survive to the h extension?
It all sound pretty useless perhaps but getting this up and running would really help me. Suggestions, tips and pointers about how TELLER can makes it to the h extensions are very welcome. Is there a way to get more detailed information in the cli about what is actually happening after pressing one of the feature combinations. Thanks in advance.
features.conf
raise-value-variable => *1,callee/caller,Set,TELLER=$[ ${TELLER}+1],default
show-value-variable => #1,callee/caller,Verbose,${TELLER},default
extensions.conf
[test]
exten => h, 1, NoOp("the value of TELLER is "${TELLER})
exten => _XXXX,1,Answer()
exten => _XXXX,n,Set(__TELLER=0)
exten => _XXXX,n,SET(__DYNAMIC_FEATURES=testfeature#pitch_up_them#pitch_lower_them#pitch_reset_them#raise-value-variable#show-value-variable)
exten => _XXXX,n,Dial(SIP/${EXTEN},30)
cli output
(when raising the number the music on hold starts for a split second and that is shown in the cli /EdW)
-- Started music on hold, class 'default', on channel 'SIP/5556-000003cd'
-- Stopped music on hold on SIP/5556-000003cd
-- Started music on hold, class 'default', on channel 'SIP/5556-000003cd'
-- Stopped music on hold on SIP/5556-000003cd
-- Started music on hold, class 'default', on channel 'SIP/5556-000003cd'
4
– Stopped music on hold on SIP/5556-000003cd
– Started music on hold, class ‘default’, on channel 'SIP/5556-000003cd’
4
– Stopped music on hold on SIP/5556-000003cd
– Started music on hold, class ‘default’, on channel ‘SIP/5556-000003cd’
– Stopped music on hold on SIP/5556-000003cd
– Started music on hold, class ‘default’, on channel 'SIP/5556-000003cd’
5
– Stopped music on hold on SIP/5556-000003cd
– Started music on hold, class ‘default’, on channel 'SIP/5556-000003cd’
5
– Stopped music on hold on SIP/5556-000003cd
– Started music on hold, class ‘default’, on channel ‘SIP/5556-000003cd’
– Stopped music on hold on SIP/5556-000003cd