Hello,
I have an outbound trunk set with OVH. Everything works well.
However the provider offers me the opportunity to redirect everycall to an other phonenumber using dial patterns as follows :
- Activate the transfer : *
*21*(target-number)# or *21#
- Turn it off :
#21#
- To invert :*
**21#
For the first one I set *ZZ. as a pattern in freepbx (outbound roads), it works.
However for the other ones #ZZ., or **21# I guess the issue comes from the # sign.
Could you point me to a proper doc about this one, please ?
A couple of thoughts and things to check:
-## and ** are feature codes to transfer and disconnect calls in asterisk. You may need to disable them in the feature codes module to make this work.
-The # key is often used by many phones to denote that dialing is finished. Kind of like the call button on your cell phone after you type in a number. A lot of times phones have a way to disable this in the phone/soft phone settings themselves.
I would check and try both of those things.
-Daniel
Thanks a lot Daniel.
So I went to feature code module, and I disabled (Enabled is not highlighted anymore)
- Directed call Pickup (**)
- In-Call Asterisk Attended Transfer (*2)
- In-call Asterisk Blind Transfer (##)
- In-call Asterisk Disconnect Code (***)
Submit / apply Config / reboot of the server. This does not work.
The phone itself was able to manage everything when connected directly to the trunk, so I believe it does not come from one of its settings (Gigaset C530). I went through the settings I did not find such a parameter.

Interesting. Do you have the patterns in both the outbound route and the trunk patterns?
Thks again.
The only patterns in the trunk are the following match patterns “0XXX.” & “+ZXXXXX”.
Adding #ZZ. and **21# here, does not change anything. It does the “busy tone” when composed.
On the General Tab of the Trunk, what is in the “Asterisk Trunk Dial Options” field? If there is a “T” or a “t”, I would set that to override and make that field blank (unless there is an “r” there which is fine to leave).
It is a D, as in Daniel
. I have not a clue what it means.
If I try to erase it, a T comes by itself. No way to make it blank so I added “r” instead.
Override is highlighted.
At the moment, I have no access to the phone I was speaking about, and my softphone look like replacing # by %23 (It says your call is refused) so, I’ll tell you tomorrow if it changed something.
Thank you gain
I wonder if “ \# ” would work here for you.