My environment: Centos 5.6, Asterisk with freepbx , skype i.e.sends message with parameter skype.sh skype_user message.
Now i wanted to send skype notification so that my asterisk server notification are sent to skype rather than email (or to both skype and email).
I know, there is voicemail.conf
, voicemail_general
and vm_email.inc,
which has these body created.
vm_email.inc
emailbody=${VM_NAME},\n\nThere is a new voicemail in mailbox ${VM_MAILBOX}
But i dont see where is something like "mail" command.
What my thought to do is: instead of saying "mailcmd" pass
system ( /path/to/script
) and it would simply send message as rest is already configured.
Any suggestion where i could run script rather than sending email Or Executing script on every incoming call, so that i could send as notification on every call over the Skype. (however, ultimate goal is to achieve miss call notification or voice mail notification over Skype.)
Ok, i found solution,
It was fairly simple while trying to run script.. with
system(/path/to/script)..
previously it didn't work due to the conflicts among the context while trying to intercept freepbx routing with manual routing.
As it would send notification on every Inbound hosted from same provider (or atleast with same context)
I wrote more to skip if its not certain DDI number.
http://www.theschmandts.org/blog/email-notifications-for-missed-calls-in-asterisk
This might be helpful..