Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.)

share|improve this question

2 Answers 2

up vote 0 down vote accepted

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.

[notification]
exten=> _.,1,NoOp(Incoming Call)
exten=> _.,n,System(/etc/asterisk/skype.sh CS 'Call From ${CALLERID(all)}')

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.

[notification]
exten=> _.,1,NoOp(Incoming Call)
exten=> _.,n,GotoIf($["${CALLERID(dnid)}" != "44xxxxxxxxxx"]?final)
exten=> _.,n,System(/etc/asterisk/skype.sh CS 'Call From ${CALLERID(all)}')
exten=> _.,n,NoOp(Sending to PSTN Now)
exten=> _.,n,goto(from-pstn,${EXTEN},1)
share|improve this answer

http://www.theschmandts.org/blog/email-notifications-for-missed-calls-in-asterisk

This might be helpful..

share|improve this answer
    
i read through, and i will go again, but wont be easy to implement with existing queue or inbound. –  tike Jul 9 '12 at 17:02
2  
Welcome to Server Fault! While your answer may be helpful we generally like to see answers with enough content to stand on their own if the sites they link to go away. Please consider updating your answer to include enough information to still be helpful if the link breaks. –  voretaq7 Jul 9 '12 at 17:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.