Dynamic Features Problem

I can get an outbound custom feature to work. But the Custom Feature is not activated on the inbound call and the custom feature will not make outbound call.

[code]############################## Defining the “feature” to perform the transfer ##############################

Start of file. /etc/asterisk/features.conf

[general]
featuredigittimeout = 2000 ; Max time (ms) between digits for feature activation. We set to 2000 or 2 seconds, to give our agents enough time to hit the buttons.

[featuremap]

[applicationmap]

; ****************************** Custom Feature ******************************
custom_feature1 => *1#,callee,Macro,somemacro ,default
custom_feature2 => *2#,callee,Macro,somemacro ,default

End of file. /etc/asterisk/features.conf

custom_feature1 = Name of the feature, this will be referenced by the dialplan.

*1# = DTMF sequence that performs the “feature”

callee = Which side of the call to execute the Macro on.

Macro = The specific Application to execute, in our case we use a macro. NOTE: When referencing a macro, there is implicit behavior which causes you to not need to specify “macro-“ in the context. For example, to execute the macro named “macro-foo-bar” your dialplan syntax would be “exten => 8551110000,n,Macro(foo-bar)”

somemacro= The name of the Macro to execute. This will execute the macro with the context of “[macro-somemacro]”.

default = The Music On Hold (MOH) class.

##############################################################################

############################## Enabling the feature in the dialplan ##############################

Start of file. /etc/asterisk/extensions.conf

[from_sip_dp]
exten => XXXNNN0000,1,NoOp()
same => n,Set(DYNAMIC_FEATURES=custom_feature1#custom_feature2) ; use # to activate multiple features
same => n,Dial(SIP/voip-provider1/${EXTEN},)
same => n,HangUp()

End of file. /etc/asterisk/extensions.conf

##############################################################################

############################## When the DTMF tones are pressed, this macro will be executed. The Agent will go on hold, and the customer will be redirected here. ##############################

Start of file. /etc/asterisk/extensions-macro.conf

[macro-somemacro]
exten => s,1,NoOp()
same => n,AGI(somemacro.py)
same => n,MacroExit() ; Without MacroExit the call may hang up depending on your configuration. This step allows the macro to return to the original context and priority.

[macro-somemacro]
exten => s,1,NoOp()
same => n,AGI(somemacro)
same => n,Dial(SIP/same-macro-ivr/18552221111,g) ; If you need the “feature” to dial out to a third party, you can do so and still have the call reconnect with the Agent when the far end hangs up. Add the option ‘g’ “Proceed with dialplan execution at the next priority in the current extension if the destination channel hangs up.”
Same => n,MacroExit()

End of file. /etc/asterisk/extensions-macro.conf

##############################################################################
[/code]

Please provide the console output. As well - have you confirmed that DTMF is working correctly?

DTMF works on the outbound call. The feature works on an outbound call. I.E. agent calls customer hits *2# and and outbound call is made to the third party with the agent muted or unable to hear the conversation. Once the third party hangs up the phone the agent and the customer are re-connected. This only works on outbound calls. I am trying to configure for inbound. I will post the console here shortly.