dotcom
(dotcom)
July 18, 2024, 7:39pm
1
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!
dicko
(dicko)
July 18, 2024, 8:16pm
2
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.
dotcom
(dotcom)
July 18, 2024, 8:35pm
3
Thanks for helping out! But not sure what you mean by that?
dicko
(dicko)
July 18, 2024, 8:40pm
4
Which bit of the link did you read but not understand?
This if the features.conf distributed with asterisk
;
; Sample Call Features (transfer, mixmonitor, etc) configuration
;
; Note: From Asterisk 12 - All parking lot configuration is now done in res_parking.conf
[general]
;transferdigittimeout => 3 ; Number of seconds to wait between digits when transferring a call
; (default is 3 seconds). If the TRANSFER_EXTEN dialplan variable has been set
; on the channel of the user that is invoking the transfer feature, then
; this option is not used as the user is transferred directly to the extension
; specified by TRANSFER_EXTEN (the transfer context remains the context specified
; by TRANSFER_CONTEXT, if set, and otherwise the default context).
;xfersound = beep ; to indicate an attended transfer is complete
;xferfailsound = beeperr ; to indicate a failed transfer
;pickupexten = *8 ; Configure the pickup extension. (default is *8)
;pickupsound = beep ; to indicate a successful pickup (default: no sound)
;pickupfailsound = beeperr ; to indicate that the pickup failed (default: no sound)
;featuredigittimeout = 1000 ; Max time (ms) between digits for
; feature activation (default is 1000 ms)
This file has been truncated. show original
dotcom
(dotcom)
July 19, 2024, 6:02am
5
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).
dicko
(dicko)
July 19, 2024, 6:58am
6
no, i am suggesting that the __DYNAMIC_FEATURE=yours
be set on both legs before bridging instead of that, then ActvateOn either should work
dotcom
(dotcom)
July 19, 2024, 7:11am
7
Mmh, shouldn’t this already be the case if I have put the following in the globals.conf?
DYNAMIC_FEATURES = ${DYNAMIC_FEATURES}#testfeature
dicko
(dicko)
July 19, 2024, 7:19am
8
check if it is (DumpChan())
dotcom
(dotcom)
July 19, 2024, 8:09am
9
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
dicko
(dicko)
July 19, 2024, 1:49pm
10
you need to do so on both legs
system
(system)
Closed
August 19, 2024, 1:49pm
11
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.