Forum Discussion
Direct Routing - Straight to Voicemail
- Oct 14, 2020
Hello RealTime_M365
Not quite what I meant. I understand the client, when receiving a call, can press the send to voicemail button and it'll be sent straight there. My specific question was if the call could be routed from the SBC direct to voicemail, with no user interaction.
For example, other PBX systems support functionality called "Time of Day Restrictions". This allows calls that match those restrictions, based on time, to be routed to a different location, such as direct to voicemail. MS Teams does not support Time of Day Restrictions, so I was working on an alternative solution until something like that was supported.
Today I figured out how to do it from the SBC and used the same string as mentioned above. With AudioCodes SBC create a message manipulation rule (Setup > Signalling and Media > Message Manipulation > Message Manipulations), and the set the Message Type to Invite.Request, set the Condition to match whatever you want. Then:
Action Subject: Header.Request-URI.URL.Param.opaqueAction Type: Add
Action Value: 'app:voicemail'
The call is then automatically routed to voicemail when the conditions match.
Hi jangliss
We always have an option in the Microsoft Teams Client like we used to have in Skype for Business to forward the calls to Microsoft Teams Voicemail in the Calls Settings.
With Regards,
Satish U
- janglissOct 14, 2020Steel Contributor
Hello RealTime_M365
Not quite what I meant. I understand the client, when receiving a call, can press the send to voicemail button and it'll be sent straight there. My specific question was if the call could be routed from the SBC direct to voicemail, with no user interaction.
For example, other PBX systems support functionality called "Time of Day Restrictions". This allows calls that match those restrictions, based on time, to be routed to a different location, such as direct to voicemail. MS Teams does not support Time of Day Restrictions, so I was working on an alternative solution until something like that was supported.
Today I figured out how to do it from the SBC and used the same string as mentioned above. With AudioCodes SBC create a message manipulation rule (Setup > Signalling and Media > Message Manipulation > Message Manipulations), and the set the Message Type to Invite.Request, set the Condition to match whatever you want. Then:
Action Subject: Header.Request-URI.URL.Param.opaqueAction Type: Add
Action Value: 'app:voicemail'
The call is then automatically routed to voicemail when the conditions match.
- Chris_ErnstApr 27, 2022Copper ContributorWorking on implementing this for a few specific numbers currently, but can't get it to fire. I assume the issue exists in my Condition. Are you using Header.To == '<sip:xxxxx>' or something else?
- janglissMay 10, 2022Steel Contributor
I can't find my customer's config with the final code in, but my lab environment looks something like the attached screen shot. In my case, the number dialed is *XXXX where the X is a digit. I capture the digits and rewrite the destination, and modify the parameter to include the "app:voicemail".
As you're looking to execute against specific numbers, instead of providing a "transfer to voicemail" option like I'm doing here, you can drop index 1, and merge 2 into 0 match to be something like:
Param.Call.Dst.User == "123456789"Then change the action subject so it looks like 2. I'm using the capture to modify the headers so they're correct when it gets sent back to Teams.
Hope that helps!