system
November 4, 2011, 11:44am
1
Hi,
When callee presses *3 nothing happened. My configuration below. Why dynamic features not work?
extensions.conf
[globals]
DYNAMIC_FEATURES=>testfeature
features.conf
[applicationmap]
testfeature => *3,callee,Playback,tt-monkeys ;Play tt-monkeys
localhost*CLI> features reload
== Parsing ‘/etc/asterisk/features.conf’: == Found
== Parsing ‘/etc/asterisk/features_general_additional.conf’: == Found
== Parsing ‘/etc/asterisk/features_general_custom.conf’: == Found
== Parsing ‘/etc/asterisk/features_applicationmap_additional.conf’: == Found
== Parsing ‘/etc/asterisk/features_applicationmap_custom.conf’: == Found
== Parsing ‘/etc/asterisk/features_featuremap_additional.conf’: == Found
== Parsing ‘/etc/asterisk/features_featuremap_custom.conf’: == Found
– Remove parkedcalls/700/1, registrar=features; con=parkedcalls(0x124f9b70); con->root=0x124fb400
== Registered Feature ‘testfeature’
== Mapping Feature ‘testfeature’ to app ‘Playback(tt-monkeys)’ with code ‘*3’
– Registered extension context ‘parkedcalls’ (0x124f9b70) in table 0x125231c0; registrar: features
– Added extension ‘700’ priority 1 to parkedcalls (0x124f9b70)
david55
November 4, 2011, 12:05pm
2
There is a syntax error in setting the global variable.
However generally you would have needed to have shown verbose output, and possily debug output, when the feature was acutally invoked and for the dialplan setting up the call.
system
November 4, 2011, 12:23pm
3
I also tried DYNAMIC_FEATURES=testfeature but nothing changed.
Asterisk documentation or google search is not enough. I can’t find anything detailed. How can i show verbose output or debug output.
david55
November 4, 2011, 12:28pm
4
Asterisk: The Future of Telephony, edition 2, page 117. You may need to prefix “set” with “core” on more recent versions.
See asteriskdocs.org/
system
November 4, 2011, 1:35pm
5
Thank you for documentation.
I set debug and verbose at maximum. But i can’t find any useful information or error on debug. Only interesting line is “features.c:3252 ast_bridge_call: Set time limit to 1000 ms”. I can show pressed buttons * and 3 but there is not any error.
Do you have compatible DTMF modes between the phone and Asterisk?
Do applications like Read, WaitExten and Background work?
system
November 4, 2011, 2:02pm
7
Why this documentation not include how to use DYNAMIC_FEATURES ?
Also i search the book for dynamic_features word but nothing found. Interesting…
system
November 4, 2011, 2:06pm
8
When i press *2 or ## it is working. I will try WaitExten and Background.
The primary documentation for DYNAMIC_FEATURES is in features.conf.sample
system
November 4, 2011, 2:37pm
10
Thank you david i found the problem.
This is old
[global]
DYNAMIC_FEATURES=testfeature
New one is
[from-pstn]
exten => s,1,set(__DYNAMIC_FEATURES=testfeature);
system
November 6, 2011, 11:05am
11
I confirm i make a syntax error for globals definition.
when i include DYNAMIC_FEATURES=testfeature in globals_custom.conf it is working.
Note: __DYNAMIC_FEATURES or _DYNAMIC_FEATURES or DYNAMIC_FEATURES working