bind_digit_action not working on correct call leg

SBTech

Member
Jul 28, 2017
39
1
8
44
I'm losing my mind on this one, Trying to run a lua script when you press *8 in a call. I added my code to the array.

When I make the call, the the receiving phone does what's expected when you dial *2, *5 or *6 but when you press *8 it does not work.

Go over to the calling phone, press *2, *5 or *6 and nothing happens (expected) but if you dial *8 the lua script runs.


1736536316060.png
 

whut

Active Member
Dec 23, 2022
253
28
28
Start by changing to a feature code that is not already in use. The group-intercept dialplan has *8 the assignment.
 

SBTech

Member
Jul 28, 2017
39
1
8
44
You are pulling my b-leg!

I don't know for certain, but look at bind_target variable in the call_recording_on_demand dialplan.

dtmf_target_leg and event_target_leg also look promising
Thanks!

Looking over call_recording_on_demand the bind_target variable just gets used in the bind_digit_action a few lines down.

The bind_digit_action documentation page is burned into my second monitor I have looked at it some much.
 

SBTech

Member
Jul 28, 2017
39
1
8
44
figured it out the hello was 1 to many parameters. Though I could pass multiple into the lua script
 

whut

Active Member
Dec 23, 2022
253
28
28
Good catch. I would add the action to a dialplan instead of where you have in your screenshot.