I successfully set up my freepbx to receive calls through pstn on twilio.
I can’t figure out where I should add the PITCH_SHIFT directive to change the pitch?
Any pointers on where to add that?
Thanks,
Seth
I successfully set up my freepbx to receive calls through pstn on twilio.
I can’t figure out where I should add the PITCH_SHIFT directive to change the pitch?
Any pointers on where to add that?
Thanks,
Seth
Welcome to the forum!
You can create a Custom Destination that references custom dialplan. Something like this
[set-pitch]
exten => s,1,NoOp(Entering user defined context set-pitch in extensions_custom.conf)
exten => s,n,Set(PITCH_SHIFT ... etc
exten => s,n,Return
and then use set-pitch,s,1
for the Custom Dest goto. Enable return and set where you wan to the call to go.
What a fast and great solution! Being a complete noob it took me a few hours to figure out where to put your correct solution For completeness this is what I had to do:
Admin → Config Edit → extensions_custom.conf
Then I added this code there:
[set-pitch]
exten => s,1,NoOp(Entering user defined context set-pitch in extensions_custom.conf)
exten => s,n,Set(PITCH_SHIFT(both)=.8);
exten => s,n,NoOp(Leaving user defined context set-pitch in extensions_custom.conf)
exten => s,n,Return
Then in Admin → Custom Destination
I created a new Custom Destination
in the target field I put the context (“set-pitch” from above)
set-pitch,s,1
the s means use “s” extension, and I think the 1 is the priority?
I gave it a description:
“changeallpitch”
At the end of that part, you can add where the call goes after setting the pitch.
Then in Connectivity → Inbound Routes
I had to set my trunk incoming route to go to that custom destination “changeallpitch”.
And it works!
Thanks for the great pointer.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.