[SOLVED] dynamic_features not work


#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)


#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.


#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.


#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/


#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.


#6

Do you have compatible DTMF modes between the phone and Asterisk?

Do applications like Read, WaitExten and Background work?


#7

Why this documentation not include how to use DYNAMIC_FEATURES ?
Also i search the book for dynamic_features word but nothing found. Interesting…


#8

When i press *2 or ## it is working. I will try WaitExten and Background.


#9

The primary documentation for DYNAMIC_FEATURES is in features.conf.sample


#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);


#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