Dynamic Feature play audio to both channels?

Hi all,

I added a custom feature code in features_applicationmap_custom.conf:

testfeature=>*666,self,Gosub(custom-playback-both,s,1)

Following the Custom Dynamic Features - Asterisk Documentation documentation, it seems I can only do a playback on 1 channel (ActivateOn = self OR peer).

I tried many different combinations in the [custom-playback-both] dialplan using Originate and ChannelRedirect, but without any luck.
Is this technically even possible?

Thanks for your help!

Read the [applicationmap] section of

http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/AdditionalConfig_id256654.html

Youi will need to setthe relevant DYNAMIC_FEATURE on both channels before you bridge them.

Thanks for helping out! But not sure what you mean by that? :slight_smile:

Which bit of the link did you read but not understand?

This if the features.conf distributed with asterisk

This page I already looked at… You are talking about setting “both” in the ActivatedBy part?
Here it seems ActivatedBy is no longer honored.

The problem is not that I cannot activate the feature on both channels, problem is that when doing a Playback, the audio is only played on 1 channel (instead of both).

no, i am suggesting that the __DYNAMIC_FEATURE=yours be set on both legs before bridging instead of that, then ActvateOn either should work

Mmh, shouldn’t this already be the case if I have put the following in the globals.conf?

DYNAMIC_FEATURES = ${DYNAMIC_FEATURES}#testfeature

check if it is (DumpChan())

When I use DumpChan() in my dialplan, I only see 1 part:

Dumping Info For Channel: PJSIP/100-000006ba

Same result if I change the dynamic_features to:

__DYNAMIC_FEATURES = ${DYNAMIC_FEATURES}#testfeature

you need to do so on both legs

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.