Mantis BugTracker for CapiSuite
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000061 [CapiSuite] scripts feature N/A 2004-03-01 09:02 2004-03-01 09:02
Reporter hfehr View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version
Summary 0000061: new feature: notification on every incoming call
Description this modification of the incoming.py and answering_machine.conf adds the following feature:
if the feature is activated, an e-mail will be sent whenever an incoming call is registered - whether or not the caller leaves a message on the answering machine.
Additional Information just add the lines between # hf and # /hf at the position shown below to the incoming.py and add the setting for "alwaysnotify" in the answering_machine.conf to activate the feature.

---

incoming.py:

(...)
rows 61-64:

        if (curr_user==""):
                capisuite.log("call from "+call_from+" to "+call_to+" ignoring",1,call)
                capisuite.reject(call,1)
                return


# hf: if requested, send notification mail for every call received
        alwaysnotify=cs_helpers.getOption(config,curr_user,"alwaysnotify","")
        if (alwaysnotify=="1"):
                mailaddress=cs_helpers.getOption(config,curr_user,"voice_email","")
                if (mailaddress==""):
                        mailaddress=curr_user
                cs_helpers.sendSimpleMail(curr_user, mailaddress, "Call received from "+call_from+" to "+call_to,
                  "You received a call from "+call_from+" to "+call_to+"\nDate: "+time.ctime()+"\n")
                capisuite.log("notification sent...",1,call)
# /hf


        try:
                if (curr_service==capisuite.SERVICE_VOICE):
                        delay=cs_helpers.getOption(config,curr_user,"voice_delay")

(...)

---

answering_machine.conf:

alwaysnotify="1"

---

Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2004-03-01 09:02 hfehr New Issue
2004-03-01 09:03 hfehr Issue Monitored: hfehr
2006-02-10 15:57 gagern Issue Monitored: gagern


Mantis 0.19.2
Copyright © 2000 - 2004 Mantis Group
124 total queries executed.
19 unique queries executed.