Missed Call Notification: When Follow me is "Enabled" - emails about missed calls are not received

Hi all!
I can’t understand why this happens:

When the “Follow me” option is enabled, missed call notifications do not work. as soon as you turn off the option, email notifications will arrive

Same question here

but in the answer to it there is just a link on how to use the module

Hi, when you have enabled Follow Me feature for any extension, module Missed Calls will no function.
You may edit the file extensions_custom.conf in ConfigEdit in PBX admin settings. You can add new rule, for example:
[from-internal-custom]
exten => 12,1,Progress
same => n,Wait(0.5)
same => n,System(echo “Content-Type: text/html\nSubject: Missed Call\nFrom: Your sender e-mail address\nTo: Recipient e-mail address\n\nYou have a missed call from phone number: ${CALLERID(num)}” | sendmail -t)

When you will need help with program code especially for your pbx, you can contact me.
E-mail address: [email protected].
I will help and give my answers for your questions.

ugh
how illogical this is!(

I hope they will add such functionality from the GUI in the future…

It´s not illogical, because, when you have activate Follow Me feature, call you receive is answer already. Your pbx send to caller 183 session progress not 180 ringing. For that you need setup advanced configuration, which send an e-mail about missed call before your phone starts ringing.

The dialplan you shared lacks enough info to implement, what does the ext string “12” refer to? If that is supposed to match an extension number on the system, then your dialplan will break things. It is not okay to overwrite fpbx dialplan like this.

Also, if your offer of assistance is sincere, then it can be done in the forum for the benefit of all instead of soliciting emails for private assistance.

This has no bearing on if the call was answered or missed. 180 indicates the call is being sent to the callee while 183 indicates the same thing but allows early media to be received by the caller. If the callee doesn’t answer the call, it’s a missed call either way.

In fact the caller could receive a 180 followed by a 183 in the call progress.

Exten “12” is for example, he replace it by his extension on which he can activate email about missed calls. It is ok rewrite dialplan in pbx when you know what you do.

In that case, I suggest deleting the post. Or add a warning that your dialplan WILL break things.

Exactly, but when PBX sending 183 session progress, pbx make this call answered, because pbx performed an activity during call.

That is not how it works. 183 is early media, allowing SDP to be sent. Early Media doesn’t require the call to be answered to send the media. The call is considered answered when a 200 OK is received. Until then, it’s in a ringing/progress state.

Yes, you’re right, but I’m talking about something else. When a phone call goes to the switchboard, the system by default directs it to the doorbell, which then rings and the system sends me an e-mail about the missed call. However, if I have the Follow Me function active, the switchboard directs the call to the Follo Me sub context and marks it as answered. Even though the participant did not physically pick up the call. This is because the switchboard had to perform some activity and the call is not routed to the extension by default.

none of the options work

I tried different ones

Yes, there is an option when the email is simply sent as a follow-up… but this is not a missed call. This is just a follow up email that they are calling you.

here is the config
"
[from-internal-custom]
exten => 107,1,Gosub(missedcall,s,1(${CALLERID(num)}))
same => n,Dial(PJSIP/107)

[missedcall]
exten => s,1,NoOp(Sending missed call notification)
same => n,System(echo “Content-Type: text/html\nSubject: Missed Call\nFrom: [email protected]\nTo: [email protected]\n\nYou have a missed call from phone number: ${ARG1}” | sendmail -t)
same => n,Return()

"

here the email goes just like that, whether you picked up the phone or not, missed it or not…

[from-internal-custom]
exten => 107,1,NoOp(Starting call handling for extension 107)
same => n,Dial(PJSIP/107&Local/89999999999@from-internal,20)
same => n,Hangup()

exten => h,1,GosubIf($[“${DIALSTATUS}”=“NOANSWER”]?missedcall,s,1(${CALLERID(num)}))

[missedcall]
exten => s,1,NoOp(Sending missed call notification)
same => n,System(echo “Content-Type: text/html\nSubject: Missed Call\nFrom: [email protected]\nTo: [email protected]\n\nYou have a missed call from phone number: ${ARG1}” | sendmail -t)
same => n,Return()

and in this version, nothing comes to email.

If I edit a part of the dial plan in the pbx and put it in the “custom” section, the pbx behaves as follows: the pbx starts processing the call according to my dialplan, and now if there is no command to hang up the call, the pbx starts processing it´s default commands. So if I just put the send email command there, the control panel will send the email and then connect the call according to the default rules that are stored in the control panel system files.

Yes, you can do it this way too. Using two contexts.

Yes, it’s a bit of a disadvantage that you always get that email. Just at the beginning of the call, even if you pick up. I guess I will come up with something better in the future. :rofl: :rofl:

OK so now this is some specific scenario with vague details. The system doesn’t mark a call answered just because it ends up in followme-sub. That just generates the follow me settings and list to actually be dialled by the system. The call isn’t answered just because it’s in follow-me.

You have to write command GotoIf.