Handle user's DND-status in dialplan before error_handler/user_busy

Status
Not open for further replies.

rage

New Member
May 21, 2021
1
0
1
Germany
Hello dear community =)
I have a question about handling DND in Fusionpbx and please forgive me for my poor English... :-/

If I understand correctly, FusionPBX treats calls to an extension (user) that is DND as if it were busy using the error-handler in the dial plan "local_extension"

I would now like to achieve that calls are not treated in the same way as if the extensions is occupied, but via an entry in the dial plan: If user is DND then forward call to ... (about the same as in the dial plan calls are rerouted with "call_forward_all").
The goal is to see which extension was originally called when the call is forwarded to another extension (my snom phone at the target extension shows caller id and also callee id, when the extension is set to "forward all", but not for any other forward method). Or is there another (simpler?!) way to achieve the display of the callee's extension? Or maybe I understand the handling of DND completely wrong?

I would be happy if someone could help me with a dial plan or with a condition that I can use to find out the DND-status of a user.

Thank you for your help!

Rainer
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
SIP messages for situations like DND are all replies and as such do not go through the dialplan, this is why FusionPBX uses an lua script to pick up the SIP Code, for example SIP:486 for USER_BUSY, and take the appropriate action.

There is no reason why you cannot write your own failure handler.

In proxy software like Kamailio and OpenSIPS these messages are accessible in the reply routes.
 
Status
Not open for further replies.