VM Notify (have voicemail call your cell phone)

BobH
Posts: 223
Member Since:
2006-05-31

*Update* Please do not use this with Asterisk 1.4 unless you are able to work out the changes needed to it from the help of the others in this thread. If someone wants to do testing on and post a working modified version for use with 1.4 please PM me.

--------
I have been working on a way to have voicemail call my cell phone when a new voicemail is left in my mailbox. I have something that seems to work very good for my use and if anyone else is interested here it is. Please post any improvements you can think of or if you have any problems with it. I am using this as my way to learn asterisk so it may not be pretty and I would love some input from those with experience.

It should be pretty easy to get going. Just paste it into extensions_custom.conf and add the include for custom-vm-notify context to the from-internal-custom context. Then to set up vm notification press *26 and follow the prompts.

[code];**VM Notify Start**
;This is for adding the ability to have asterisk call the user's cell phone when
;a new voicemail is recorded in their mailbox. It is still being tested and needs
;some voice prompts recorded to make it sound better.
;Installation: just copy the text between **VM Notify start** and **VM Notify End**
;and past it into extensions_custom.conf then put "include => custom-vm-notify"
;under the [from-internal-custom] context to enable *26
;the [macro-vm] replaces the one in extensions.conf to make it check if the user has
;VM Notify enabled. The only difference is the "exten => h,1,Macro(vm-notify,${ARG1})"
;line. If the [macro-vm] changes in future versions of freePBX/Trixbox then it needs
;to be copied here to replace this one with the exten h line staying the same.
;Change log
;8-9-06: added a repeat of message when called and short pauses after a button is pressed
;9-29-06: changed gotoif to test for null better
;11-7-06: changed retrytime to 60 seconds

[custom-vm-notify]

; Dial *26 to enable or disable Voicemail Out-calling
exten => *26,1,Answer()
exten => *26,2,Playback(please-enter-your&extension)
exten => *26,3,Read(vmextension,then-press-pound)
exten => *26,4,Set(phonenumber=${DB(vmnotify/${vmextension})})
exten => *26,5,Gotoif($["foo${phonenumber}" = "foo"]?20:10)

exten => *26,10,Playback(enabled&telephone-number&is-set-to)
exten => *26,11,SayDigits(${phonenumber})
exten => *26,12,Background(to-enter-a-diff-number&press-1&or)
exten => *26,13,Background(press-2&for&disabled)

exten => *26,20,Playback(disabled)
exten => *26,21,Background(press-1&for&enabled)

exten => 1,1,Playback(enter-phone-number10)
exten => 1,2,Read(phonenumber,then-press-pound)
exten => 1,3,Set(DB(vmnotify/${vmextension})=${phonenumber})
exten => 1,4,Playback(enabled&telephone-number&is-set-to)
exten => 1,5,SayDigits(${phonenumber})
exten => 1,6,Hangup()

exten => 2,1,DBdel(vmnotify/${vmextension})
exten => 2,2,Playback(disabled)
exten => 2,3,Hangup()

exten => t,1,Hangup()

[macro-vm-notify]

exten => s,1,Set(phonenumber=${DB(vmnotify/${ARG1})})
exten => s,2,Gotoif($["foo${phonenumber}" = "foo"]?0:10) ;see if this vmbox has out-calling enabled

exten => s,10,HasNewVoicemail(${ARG1}) ;check for new voicemails first

;now build a .call file and then move it into the spool
exten => s,111,SetVar(spooldir=/var/spool/asterisk)
exten => s,n,System(echo "Channel: Zap/g0/"${phonenumber} > ${spooldir}/${ARG1}.call)
exten => s,n,System(echo "MaxRetries: 1" >> ${spooldir}/${ARG1}.call)
exten => s,n,System(echo "RetryTime: 60" >> ${spooldir}/${ARG1}.call)
exten => s,n,System(echo "WaitTime: 30" >> ${spooldir}/${ARG1}.call)
exten => s,n,System(echo "Context: macro-vm-notify" >> ${spooldir}/${ARG1}.call)
exten => s,n,System(echo "Extension: vmcall" >> ${spooldir}/${ARG1}.call)
exten => s,n,System(echo "Priority: 1" >> ${spooldir}/${ARG1}.call)
exten => s,n,System(echo "Setvar: vmext="${ARG1} >> ${spooldir}/${ARG1}.call)
exten => s,n,System(mv ${spooldir}/${ARG1}.call ${spooldir}/outgoing/)

;This is where the .call file starts from
exten => vmcall,1,Answer
exten => vmcall,n,NoOp( Waiting for Answer )
exten => vmcall,n,WaitForSilence(2000)
exten => vmcall,n,NoOp( Hello )
exten => vmcall,n,Goto(talk,1)

;Somebody answered or we timed out let them know it's a voicemail
exten => talk,1,Wait(1)
exten => talk,n,Background(this-is-the-voice-mail-system)
exten => talk,n,Background(to-log-in-to-voice-mail)
exten => talk,n,Background(press-1)
exten => talk,n,Background(or)
exten => talk,n,Background(to-hang-up)
exten => talk,n,Background(press-2)
;Wait a little bit then repeat the message
exten => talk,n,Wait(3)
exten => talk,n,Background(this-is-the-voice-mail-system)
exten => talk,n,Background(to-log-in-to-voice-mail)
exten => talk,n,Background(press-1)
exten => talk,n,Background(or)
exten => talk,n,Background(to-hang-up)
exten => talk,n,Background(press-2)

;drop them into the voicemail system
exten => 1,1,Wait(1)
exten => 1,n,VoiceMailMain(${vmext}@default)

;they don't want to talk to us
exten => 2,1,Wait(1)
exten => 2,n,Playback(vm-goodbye)
exten => 2,n,Hangup

;They must be ignoring us
exten => t,1,Hangup

; copied macro-vm from extensions.conf so we could add the h extension to start the notify
;
[macro-vm]
exten => s,1,Macro(user-callerid)
exten => s,n,Set(VMGAIN=${IF($["foo${VM_GAIN}"!="foo"]?"g(${VM_GAIN})":"")})
exten => s,n,Goto(s-${ARG2},1)

exten => s-BUSY,1,NoOp(BUSY voicemail)
exten => s-BUSY,n,Macro(get-vmcontext,${ARG1})
exten => s-BUSY,n,Voicemail(${ARG1}@${VMCONTEXT}|b${VMGAIN}) ; Voicemail Busy message
exten => s-BUSY,n,Goto(exit-${VMSTATUS},1)

exten => s-DIRECTDIAL,1,NoOp(DIRECTDIAL voicemail)
exten => s-DIRECTDIAL,n,Macro(get-vmcontext,${ARG1})
exten => s-DIRECTDIAL,n,Voicemail(${ARG1}@${VMCONTEXT}|${VM_DDTYPE}${VMGAIN})
exten => s-DIRECTDIAL,n,Goto(exit-${VMSTATUS},1)

exten => _s-.,1,Macro(get-vmcontext,${ARG1})
exten => _s-.,n,Voicemail(${ARG1}@${VMCONTEXT}|u${VMGAIN}) ; Voicemail Unavailable message
exten => _s-.,n,Goto(exit-${VMSTATUS},1)

exten => o,1,Background(one-moment-please) ; 0 during vm message will hangup
exten => o,n,GotoIf($["foo${FROM_DID}" = "foo"]?from-pstn,s,1:from-pstn,${FROM_DID},1)

exten => a,1,Macro(get-vmcontext,${ARG1})
exten => a,n,VoiceMailMain(${ARG1}@${VMCONTEXT})
exten => a,n,Hangup

exten => exit-FAILED,1,Playback(im-sorry&an-error-has-occured)
exten => exit-FAILED,n,Hangup()

exten => exit-SUCCESS,1,Playback(goodbye)
exten => exit-SUCCESS,n,Hangup()

exten => exit-USEREXIT,1,Playback(goodbye)
exten => exit-USEREXIT,n,Hangup()

exten => t,1,Hangup()

exten => h,1,Macro(vm-notify,${ARG1}) ; this will start the vm-notification macro when the call is done

; get the voicemail context for the user in ARG1

;**VM Notify End**

[/code]



BobH
Posts: 223
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

Oh yeah, under the macro-vm-notify you should change the trunk/channel to whatever you want to call out on I use Channel: Zap/g0/

exten => s,112,System(echo "Channel: Zap/g0/"${phonenumber} > ${spooldir}/${ARG1}.call)



keefe007
Posts: 111
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

Are you going to turn this into a freepbx module? I think that'd be great!

--

I have a few extra SPA-962s...if you need a couple PM me.



bubbapcguy
Posts: 3578
Member Since:
2006-06-02
Re: Help test VM Notify (have voicemail call your cell phone)

Very Cool Worked great.

I must use 11 digit dailing (some do not need it but I must to make use of my "unlimited" outbound setup.



BobH
Posts: 223
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

I haven't really looked into turning it into a freepbx module but I don't think it would be too hard to do. I'll look into it.



BobH
Posts: 223
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

bubbapcguy

You didn't have to change anything for the 11 digit dialing did you? You should be able to use as many digits you like. The voice prompt says to enter a 10 digit but that was the easiest built-in prompt. I may have someone here record some that make more sense.



bubbapcguy
Posts: 3578
Member Since:
2006-06-02
Re: Help test VM Notify (have voicemail call your cell phone)

No I only changed the 15 second wait to 2 seconds (the fax detect settings, I just enters in the 11 digits (I knew I would as I never create a real dailplan on this test boxes)..

But this is sweet works like a charm...What other cool stuff you got???



BobH
Posts: 223
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

The idea was for the NVfaxdetect to listen for someone to say hello and then start talking but it took me a little tweaking to get it to work well with my line. Whatever works best for you is great though.

That was my first project. Really just to replace a feature we use on our current phone system. Also to help me learn how to use asterisk. What should I work on next?



joker
Posts: 10
Member Since:
2006-06-01
Re: Help test VM Notify (have voicemail call your cell phone)

Hi,

This project is great but it is not always convenient to listen to a voice mail and it can be costly.

An addition to the module could be the ability to send an SMS message to the user informing them that they have a voice mail message and who it is from, using CLI and a local database, plus a message code for the user to enter on a DISA script.

Example - SMS

"You have a 12 sec Voice Message from 01844 223344 [The Wife!] Collect from 01865 929344 code 3367."

EndExample - SMS

The user then dials the DISA number, enters the Password and Code and picks it up.

What would be really great would be to monitor incoming e-mail for that important message. Then SMS the user to inform of it's arrival. The user could then dial in and get it read to them by Festival.
(Forward the expected email from Outlook to the TrixBox ?)

Now do that with your "PanaSiemaGoldWhatisit 1292 ZXIP" !

Hey-Ho



bubbapcguy
Posts: 3578
Member Since:
2006-06-02
Re: Help test VM Notify (have voicemail call your cell phone)

Ok I got one,

I have three Que's a call come in it hits the IVR (1 for this 2 for that) the caller makes the selection the call is then dumped into the que the caller selected the caller is asked to state name, then
the caller is going to hear a short 10 to 15 second sales pitch.

As the sales pitch is going on the exten's for the que need to ring. As soon as one of the exten's answer the "agents" gets the CID info read to them plus the caller recorded name.

Now the exten which answered the call needs to be able to take the call or reject to VM or redirect to another exten.

Now the problem is the "exten" can be cell phone or hardline phone

I have had some luck using the who-r-u from nervittles.com
but as I am not really a "coder" I just have not gotten it to work as



BobH
Posts: 223
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

That sounds kinda of like a privacy manager application. I'll see if I can come up with anything.



bubbapcguy
Posts: 3578
Member Since:
2006-06-02
Re: Help test VM Notify (have voicemail call your cell phone)

Yes close.
We have three on call people each with their own job. (sales, Tech, Marketing).
We have a single inbound 1-800- number, some customer's who are calling in are calling because their account is past due (so hosting is cut off) those customer are calling in and wanting "beg off".

I want to redirect the "dead beats" to a message which tells them how to login to the backend and make a payment.

The tech and marketing guys do not want to be the "bad guy" and ask about payment, I figure if I dump them to the "How to pay Message" maybe they will get the message and just go pay.

next is to tie it to the billing system and use CID to redirect to the "How to PAy message" as soon as they call in, and then ring a exten if they stay on the line.



ddwyer
Posts: 351
Member Since:
2006-06-03
Re: Help test VM Notify (have voicemail call your cell phone)

i see that asterisk it the guys that are developing asterfax , have a asterisk credit card payment solution , i assume that this could be use to get your clients to pay there bills ..let us know how you get on



lorenzkl
Posts: 8
Member Since:
2006-07-07
Re: Help test VM Notify (have voicemail call your cell phone)

I set this up on our Trixbox and everything is working except when the system calls out, I answer it and all I get is dead air. It doesn't say anything or accept inputs. This seems to only be having this problem if I use a SIP trunk to call out on. If I use one of our ZAP trunks, it works fine. ANyone have any ideas?

Kory



BobH
Posts: 223
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

What is the log output when it calls out? I haven't really tested it on SIP Trunks yet. I only use ZAP right now. It may be something with the NVFaxDetect.



voip4life
Posts: 2
Member Since:
2006-06-02
Re: Help test VM Notify (have voicemail call your cell phone)

Thanks for the script, I like it a lot! It's working on my test box so far, however, I've noticed that by the time I pickup the cell phone call, I only hear the last half of the outbound message, i.e. right when I answer the call i hear "to hang up press 2". Is it possible to change some timing in the script to have it wait a little longer for an answer, and possibly a second or two after each time it prompts for input, that way you have time to hear the message even after taking the phone away from your ear to push buttons?

Also, is it possible to call a second cell number if the first doesn't answer and then if neither answers, wait 15 minutes and tray again?

I too am looking for a way to replace our old pbx option to call out a list of numbers when a message arrives at a certain extension for 'emergencies only'. Your script is perfect if I can have more than just one number on the list that would cycle through calls again on the list after 15 minutes if no one had responded. It was nice to know the pbx was always sticking to it to make sure someone responded.

Thanks for the script and keep up the work.

If you're still looking for things to work on, here's my dream list:

1. A phone payment system, so a customer could call into the system and have asterisk check a balance against a billing system and allow input of a credit card to that billing system.

2. Have asterisk connect to a network monitoring system and play announcements to customers who call in to check on any , or that can call a list of customers that are affected by system outages (it would only call those that reuest to be notified)



BobH
Posts: 223
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

To make a longer timeout on the vm calling message just edit this line

exten => vmcall,2,NVFaxDetect(15|df|2000|40|800) ;may need to tweak these settings to detect an answer

The 15 after NVFaxDetect( is the number of seconds to try and detect someone answering. After the 15 seconds it just says the message anyway. You can change this to however long you want to wait by putting the number of seconds in place of the 15.

To add a little pause after they press a button just replace

;drop them into the voicemail system
exten => 1,1,VoiceMailMain(${vmext}@default)

;they don't want to talk to us
exten => 2,1,Playback(vm-goodbye)
exten => 2,2,Hangup

With

;drop them into the voicemail system
exten => 1,1,Wait(1)
exten => 1,n,VoiceMailMain(${vmext}@default)

;they don't want to talk to us
exten => 2,1,Wait(1)
exten => 2,n,Playback(vm-goodbye)
exten => 2,n,Hangup

For calling a list of numbers this was suggested in another post

Automated Outbound Call Notification System



Krycek
Posts: 12
Member Since:
2006-09-26
Re: Help test VM Notify (have voicemail call your cell phone)

I've got everything pasted in, and *26 is working and saving the forwarding phone number, but after leave a voicemail for that extension, it never calls out to the designated phone number. I made sure the trunk is right (it's the same as your default ZAP/g0). Any ideas on what could be the problem? I am using TrixBox 1.2 with FreePBX 2.2.



BobH
Posts: 223
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

run

asterisk -rvvv

then leave a voicemail for the extension you have setup and post the output.



Krycek
Posts: 12
Member Since:
2006-09-26
Re: Help test VM Notify (have voicemail call your cell phone)

Did that, tried it, and now it works. No idea why it works now, but it makes me happy. Thanks!



Krycek
Posts: 12
Member Since:
2006-09-26
Re: Help test VM Notify (have voicemail call your cell phone)

Alright, the problem is a little stranger. I played with it yesterday around 5PM, wasn't working. Got home and played with it about 10PM and all of a sudden it's working. Set someone else up with it today, not working and still isn't working. Funny thing is, if I set it up using *26, and going through the prompts, it says it's enabled. Even if I call back in with *26 and check it, it still says enabled. As soon as I leave a VM for the user, and then check it again, it says disabled.

Any ideas?



BobH
Posts: 223
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

asterisk -rx "database show vmnotify"

Run this command to show the phone numbers and extensions set in the database. Check that they are correct then with

asterisk -rvvv

look for a line with
Executing Macro("SIP/xxx-xxxx", "vm-notify|xxx") in new stack
after a voicemail is left and what happens after it. Post anything from there on.



Krycek
Posts: 12
Member Since:
2006-09-26
Re: Help test VM Notify (have voicemail call your cell phone)

This is all I get:

-- Executing Macro("SIP/103-09d17420", "vm-notify|103") in new stack
-- Executing Set("SIP/103-09d17420", "phonenumber=5555555555") in new stack

Obviously the phone number is correct and should ring. The system is setup to require 9 before an outgoing call, could that be the problem? Thanks!



BobH
Posts: 223
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

Try it with the 9. The dial prefix should still apply to .call files.

You should see something like this if it is trying to call out.

-- Executing Macro("SIP/3345-167a", "vm-notify|3345") in new stack
    -- Executing Set("SIP/3345-167a", "phonenumber=1234567890") in new stack
    -- Executing GotoIf("SIP/3345-167a", "1?10:") in new stack
    -- Goto (macro-vm-notify,s,10)
    -- Executing HasNewVoicemail("SIP/3345-167a", "3345") in new stack
    -- Executing SetVar("SIP/3345-167a", "spooldir=/var/spool/asterisk") in new stack
    -- Executing System("SIP/3345-167a", "echo "Channel: Zap/g5/"1234567890 > /var/spool/asterisk/3345.call") in new stack
    -- Executing System("SIP/3345-167a", "echo "MaxRetries: 1" >> /var/spool/asterisk/3345.call") in new stack
    -- Executing System("SIP/3345-167a", "echo "WaitTime: 30" >> /var/spool/asterisk/3345.call") in new stack
    -- Executing System("SIP/3345-167a", "echo "Context: macro-vm-notify" >> /var/spool/asterisk/3345.call") in new stack
    -- Executing System("SIP/3345-167a", "echo "Extension: vmcall" >> /var/spool/asterisk/3345.call") in new stack
    -- Executing System("SIP/3345-167a", "echo "Priority: 1" >> /var/spool/asterisk/3345.call") in new stack
    -- Executing System("SIP/3345-167a", "echo "Setvar: vmext="3345 >> /var/spool/asterisk/3345.call") in new stack
    -- Executing System("SIP/3345-167a", "mv /var/spool/asterisk/3345.call /var/spool/asterisk/outgoing/") in new stack
    -- Attempting call on Zap/g5/1234567890 for vmcall@macro-vm-notify:1 (Retry 1)



Krycek
Posts: 12
Member Since:
2006-09-26
Re: Help test VM Notify (have voicemail call your cell phone)

I put 9 in and it made no difference. It just stops at the same place. any ideas?



BobH
Posts: 223
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

is there anything after these lines?

-- Executing Macro("SIP/103-09d17420", "vm-notify|103") in new stack
-- Executing Set("SIP/103-09d17420", "phonenumber=5555555555") in new stack

also can you post what you have in extensions_custom.conf after the [macro-vm-notify] line?



Krycek
Posts: 12
Member Since:
2006-09-26
Re: Help test VM Notify (have voicemail call your cell phone)

Nothing. That's all I get after I leave the message.

Here is the extensions_custom.conf extract:

Quote:
[macro-vm-notify]

exten => s,1,Set(phonenumber=${DB(vmnotify/${ARG1})})
exten => s,2,Gotoif($["${phonenumber}" > ""]?10:) ;see if this vmbox has out-calling enabled

exten => s,10,HasNewVoicemail(${ARG1}) ;check for new voicemails first

;now build a .call file and then move it into the spool
exten => s,111,SetVar(spooldir=/var/spool/asterisk)
exten => s,112,System(echo "Channel: ZAP/g0/"${phonenumber} > ${spooldir}/${ARG1}.call)
exten => s,113,System(echo "MaxRetries: 1" >> ${spooldir}/${ARG1}.call)
exten => s,114,System(echo "WaitTime: 30" >> ${spooldir}/${ARG1}.call)
exten => s,115,System(echo "Context: macro-vm-notify" >> ${spooldir}/${ARG1}.call)
exten => s,116,System(echo "Extension: vmcall" >> ${spooldir}/${ARG1}.call)
exten => s,117,System(echo "Priority: 1" >> ${spooldir}/${ARG1}.call)
exten => s,118,System(echo "Setvar: vmext="${ARG1} >> ${spooldir}/${ARG1}.call)
exten => s,119,System(mv ${spooldir}/${ARG1}.call ${spooldir}/outgoing/)

;This is where the .call file starts from
exten => vmcall,1,Answer
exten => vmcall,2,NVFaxDetect(15|df|2000|40|800) ;may need to tweak these settings to detect an answer
exten => vmcall,3,GOTO(talk,1)

;Somebody answered or we timed out let them know it's a voicemail
exten => talk,1,Wait(1)
exten => talk,n,Background(this-is-the-voice-mail-system)
exten => talk,n,Background(to-log-in-to-voice-mail)
exten => talk,n,Background(press-1)
exten => talk,n,Background(or)
exten => talk,n,Background(to-hang-up)
exten => talk,n,Background(press-2)
;Wait a little bit then repeat the message
exten => talk,n,Wait(3)
exten => talk,n,Background(this-is-the-voice-mail-system)
exten => talk,n,Background(to-log-in-to-voice-mail)
exten => talk,n,Background(press-1)
exten => talk,n,Background(or)
exten => talk,n,Background(to-hang-up)
exten => talk,n,Background(press-2)

;drop them into the voicemail system
exten => 1,1,Wait(1)
exten => 1,n,VoiceMailMain(${vmext}@default)

;they don't want to talk to us
exten => 2,1,Wait(1)
exten => 2,n,Playback(vm-goodbye)
exten => 2,n,Hangup

;They must be ignoring us
exten => t,1,Hangup

; copied macro-vm from extensions.conf so we could add the h extension to start the notify
;
[macro-vm]
exten => s,1,Macro(user-callerid)
exten => s,n,Set(VMGAIN=${IF($["foo${VM_GAIN}"!="foo"]?"g(${VM_GAIN})":"")})
exten => s,n,Goto(s-${ARG2},1)

exten => s-BUSY,1,NoOp(BUSY voicemail)
exten => s-BUSY,n,Macro(get-vmcontext,${ARG1})
exten => s-BUSY,n,Voicemail(${ARG1}@${VMCONTEXT}|b${VMGAIN}) ; Voicemail Busy message
exten => s-BUSY,n,Goto(exit-${VMSTATUS},1)

exten => s-DIRECTDIAL,1,NoOp(DIRECTDIAL voicemail)
exten => s-DIRECTDIAL,n,Macro(get-vmcontext,${ARG1})
exten => s-DIRECTDIAL,n,Voicemail(${ARG1}@${VMCONTEXT}|${VM_DDTYPE}${VMGAIN})
exten => s-DIRECTDIAL,n,Goto(exit-${VMSTATUS},1)

exten => _s-.,1,Macro(get-vmcontext,${ARG1})
exten => _s-.,n,Voicemail(${ARG1}@${VMCONTEXT}|u${VMGAIN}) ; Voicemail Unavailable message
exten => _s-.,n,Goto(exit-${VMSTATUS},1)

exten => o,1,Background(one-moment-please) ; 0 during vm message will hangup
exten => o,n,GotoIf($["foo${FROM_DID}" = "foo"]?from-pstn,s,1:from-pstn,${FROM_DID},1)

exten => a,1,Macro(get-vmcontext,${ARG1})
exten => a,n,VoiceMailMain(${ARG1}@${VMCONTEXT})
exten => a,n,Hangup

exten => exit-FAILED,1,Playback(im-sorry&an-error-has-occured)
exten => exit-FAILED,n,Hangup()

exten => exit-SUCCESS,1,Playback(goodbye)
exten => exit-SUCCESS,n,Hangup()

exten => exit-USEREXIT,1,Playback(goodbye)
exten => exit-USEREXIT,n,Hangup()

exten => t,1,Hangup()

exten => h,1,Macro(vm-notify,${ARG1}) ; this will start the vm-notification macro when the call is done

; get the voicemail context for the user in ARG1

;**VM Notify End**



BobH
Posts: 223
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

OK, I have modified the code in the original post to hopefully fix an issue with testing for null with the gotoif function. Please remove the whole section from your extensions_custom.conf and paste in the updated code from the first post. We'll see if that helps at all.



Krycek
Posts: 12
Member Since:
2006-09-26
Re: Help test VM Notify (have voicemail call your cell phone)

I made this change and it didn't fix it.

I then updated trixbox to the 1.2.1, and now it works. Thanks!



mrhumphrey
Posts: 10
Member Since:
2006-07-13
Re: Help test VM Notify (have voicemail call your cell phone)

Many thanks for the hard work people have put into making this functionality.

I'm having a slight problem.

I added the script, called *26 to set it all up - all working a treat.

Then changed the outgoing trunk to one that matched my system.

I left a test message on the configured extension, and the system then called my mobile, but didn't give me the message.

Here's the cli.

-- Attempting call on SIP/ems_voip/07973xxxxxx for vmcall@macro-vm-notify:1 (Retry 1)
> Channel SIP/ems_voip-bc0b was answered.
-- Executing Answer("SIP/ems_voip-bc0b", "") in new stack
-- Executing NVFaxDetect("SIP/ems_voip-bc0b", "15|df|2000|40|800") in new stack
== Spawn extension (macro-vm-notify, vmcall, 2) exited non-zero on 'SIP/ems_voip-bc0b'
asterisk1*CLI>

Anyone have any ideas what I've got wrong?

Many thanks

Matthew



BobH
Posts: 223
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

I've updated the code with a (hopefully) better way to wait for someone to answer. Please recopy the code from the original post and let me know if that works any better.



Krycek
Posts: 12
Member Since:
2006-09-26
Re: Help test VM Notify (have voicemail call your cell phone)

I haven't checked, but if I am using this, and I update my trixBox installation using the builtin update script, do I need to re-apply these changes to get this working again?



BobH
Posts: 223
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

Updating trixbox should not change anything in the extensions_custom.conf file.



markd_mms
Posts: 5
Member Since:
2006-10-19
Re: Help test VM Notify (have voicemail call your cell phone)

I'm really new to asterisk having only installed trixbox 1.2.2 yesterday. I'm trying to get this to work and I've followed the instructions, but when I call *26 I don't hear anything and I get the following log messages...

-- Executing Answer("SIP/227-0948a7c0", "") in new stack
-- Executing Wait("SIP/227-0948a7c0", "1") in new stack
-- Executing Playback("SIP/227-0948a7c0", "please-enter-your&extension") in new stack
-- Executing Read("SIP/227-0948a7c0", "vmextension|then-press-pound") in new stack
-- User disconnected
== Spawn extension (from-internal, *26, 4) exited non-zero on 'SIP/227-0948a7c0'
-- Executing Macro("SIP/227-0948a7c0", "hangupcall") in new stack
-- Executing ResetCDR("SIP/227-0948a7c0", "w") in new stack
-- Executing NoCDR("SIP/227-0948a7c0", "") in new stack
-- Executing Wait("SIP/227-0948a7c0", "5") in new stack
-- Executing Hangup("SIP/227-0948a7c0", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/227-0948a7c0' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/227-0948a7c0'

I have voicemail setup for my extension. I'm using x-lite 3.0 build 34025.

Does anyone know what's going wrong?

TIA



BobH
Posts: 223
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)
Quote:
-- Executing Answer("SIP/227-0948a7c0", "") in new stack
-- Executing Wait("SIP/227-0948a7c0", "1") in new stack
-- Executing Playback("SIP/227-0948a7c0", "please-enter-your&extension") in new stack
-- Executing Read("SIP/227-0948a7c0", "vmextension|then-press-pound") in new stack

The log shows that it is working but I'm not sure why you don't hear it. When you dial *70 or *71 do you hear call waiting activated/deactivated?



markd_mms
Posts: 5
Member Since:
2006-10-19
Re: Help test VM Notify (have voicemail call your cell phone)

funnily enough *70 and *71 do exactly the same thing. the call is picked up, i don't hear anything and then x-lite hangs up after 5 seconds.

the console log looks like this:

-- Executing Answer("SIP/227-09b44940", "") in new stack
-- Executing Wait("SIP/227-09b44940", "1") in new stack
-- Executing Macro("SIP/227-09b44940", "user-callerid|") in new stack
-- Executing GotoIf("SIP/227-09b44940", "0?report") in new stack
-- Executing GotoIf("SIP/227-09b44940", "0?start") in new stack
-- Executing Set("SIP/227-09b44940", "REALCALLERIDNUM=227") in new stack
-- Executing NoOp("SIP/227-09b44940", "REALCALLERIDNUM is 227") in new stack
-- Executing Set("SIP/227-09b44940", "AMPUSER=227") in new stack
-- Executing Set("SIP/227-09b44940", "AMPUSERCIDNAME=Mark") in new stack
-- Executing GotoIf("SIP/227-09b44940", "0?report") in new stack
-- Executing Set("SIP/227-09b44940", "CALLERID(all)=Mark <227>") in new stack
-- Executing NoOp("SIP/227-09b44940", "Using CallerID "Mark" <227>") in new stack
-- Executing DBdel("SIP/227-09b44940", "CW/227") in new stack
-- DBdel: family=CW, key=227
-- DBdel: Error deleting key from database.
-- Executing Playback("SIP/227-09b44940", "call-waiting&de-activated") in new stack
-- Executing Macro("SIP/227-09b44940", "hangupcall|") in new stack
-- Executing ResetCDR("SIP/227-09b44940", "w") in new stack
-- Executing NoCDR("SIP/227-09b44940", "") in new stack
-- Executing Wait("SIP/227-09b44940", "5") in new stack
-- Executing Hangup("SIP/227-09b44940", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/227-09b44940' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/227-09b44940'

have i setup something incorrectly?



BobH
Posts: 223
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

Asterisk seems to be doing what it should be. I'm not too familiar with x-lite settings. Does sound work ok both ways in a call? are you going through a firewall? You might try a different softphone or a hardphone and see if you get the same thing.



UncleWard
Posts: 351
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

Let me know what you'd like your voice prompts to say and Nerd Vittles will order them for you from Allison at no cost. We have plenty and Digium has (somewhat remarkably) pulled the plug on low-cost voice prompts in favor of implementing high-cost voice prompts by the same person. Obviously, no one over there ever went to law school. :-D



BobH
Posts: 223
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

I'm open to suggestions on the voice prompts. Does "Voicemail Notification" describe this function well enough or does anyone have a better title for it? I think one that says "Voicemail Notification" (or whatever) would be good for setting the number to call. Also maybe something like "to hold this call" for when you are called you could press 2 to have it wait for you to be ready to access the voicemail. Anyone else have any ideas?

Thanks for the offer for recording these. I love the Nerd Vittles site. Feel free to use this as a NV project if you like. It may need some tweaking and I'm not real happy with having to modify [macro-vm] but I need to add this line exten => h,1,Macro(vm-notify,${ARG1}) to it somehow. Any ideas?



UncleWard
Posts: 351
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

I'll send a note to Rob, the keeper of freePBX, about this entire thread, and we'll see what he says.



crees
Posts: 293
Member Since:
2006-08-09
Re: Help test VM Notify (have voicemail call your cell phone)

Awesome Work Guys.

I know for our support it would be nice to have this feature. I was thinking about writing up some code (and learn as I go) to do just this. It would be nice to have a support call out group enrollment so mulitple people can be called out in order. So if first one is not awnsering then hangup and loop to the second, third so on untill the call is acknoledged then the trixbox/freepbx system will stop calling and close the case sortof speak.

crees



jthong555
Posts: 149
Member Since:
2006-06-20
Re: Help test VM Notify (have voicemail call your cell phone)

BobH , THanks for the script!!

Everything working as should but any idea on why it took about 6 minutes for it to call my cell? I timed it and looking at the cli and here is what happened. After I left a test message the cli show 2 times(lines)

--Attempting call on Zap/4/5555555 for vmcall@macro-vm-notify:1 (Retry 1)

--Attempting call on Zap/4/5555555 for vmcall@macro-vm-notify:1 (Retry 1)

waited and waited.. after about 2 mins my email notified me of a new voicemail. After about 5-6 minutes, then I get the phone call. In the meantime nothing is moving at all on the cli. About 4 minutes or so it has another 2 lines of --Attempting call on ....
then after about 2 more minutes, then call was successful. Nobody is home, phone line not being used. Nobody is on the phone systems not like it's overloading the phone system. Any idea.. It's still not bad running as is. Thanks for your time and effort into this neat functionality!

Jason



BobH
Posts: 223
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

If you only have one phone line hooked up then you will probably run into the problem of asterisk grabbing the call file so fast that the call that left the message hasn't been completely hung up before it tries dialing out on that same line. It will then wait for the default time of 5 min to retry the call. you can change the default retry time by inserting a line with "RetryTime: 60" for a one min retry time or however many seconds you want.

So something like this would work. You could just cut out this section and past it in to replace the existing section.

;now build a .call file and then move it into the spool
exten => s,111,SetVar(spooldir=/var/spool/asterisk)
exten => s,n,System(echo "Channel: Zap/g0/"${phonenumber} > ${spooldir}/${ARG1}.call)
exten => s,n,System(echo "MaxRetries: 1" >> ${spooldir}/${ARG1}.call)
exten => s,n,System(echo "RetryTime: 60" >> ${spooldir}/${ARG1}.call)
exten => s,n,System(echo "WaitTime: 30" >> ${spooldir}/${ARG1}.call)
exten => s,n,System(echo "Context: macro-vm-notify" >> ${spooldir}/${ARG1}.call)
exten => s,n,System(echo "Extension: vmcall" >> ${spooldir}/${ARG1}.call)
exten => s,n,System(echo "Priority: 1" >> ${spooldir}/${ARG1}.call)
exten => s,n,System(echo "Setvar: vmext="${ARG1} >> ${spooldir}/${ARG1}.call)
exten => s,n,System(mv ${spooldir}/${ARG1}.call ${spooldir}/outgoing/)


strobes
Posts: 80
Member Since:
2006-07-11
Re: Help test VM Notify (have voicemail call your cell phone)

Hi,
thanks for this script!
All works, only one issue: when systems call me with VM notification and I press 1
I can see:
-- Executing Wait("SIP/Viatalk-09053860", "1") in new stack
-- Executing VoiceMailMain("SIP/Viatalk-09053860", "204@default") in new stack
-- Playing 'vm-password' (language 'en')
-- Incorrect password '' for user '204' (context = default)
-- Playing 'vm-incorrect' (language 'en')

As you can see the VM does not excepts the PW.
Please help to find what is wrong?
I'm running Trixbox 1.2.3 FreePBX 2.1.3
I don't think it's related to DTMF detedction because I can check my VM box using DISA from the same cell phone



mvsystems
Posts: 1120
Member Since:
2006-06-05
Re: VM Notify (have voicemail call your cell phone)

this script works great. is there a way i can put in a 30 second pause before it dials out to the cell phone?

--

Tim Booth FtOCC
MaineVoIP Systems
VisionCom
Portland, Maine



mvsystems
Posts: 1120
Member Since:
2006-06-05
Re: Help test VM Notify (have voicemail call your cell phone)

HI BobH-
Is it possible to change this script to do a pager notification? I need it to dial out to the pager wait 5 seconds then insert dtmf 911.

This ia for an afterhours emergency mailbox. They would like to keep pagers instead of the cell phone notification.

Any help would be appreciated.

--

Tim Booth FtOCC
MaineVoIP Systems
VisionCom
Portland, Maine



BobH
Posts: 223
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

This shouldn't be a problem, just find this part

;Somebody answered or we timed out let them know it's a voicemail
exten => talk,1,Wait(1)
exten => talk,n,Background(this-is-the-voice-mail-system)
exten => talk,n,Background(to-log-in-to-voice-mail)
exten => talk,n,Background(press-1)
exten => talk,n,Background(or)
exten => talk,n,Background(to-hang-up)
exten => talk,n,Background(press-2)
;Wait a little bit then repeat the message
exten => talk,n,Wait(3)
exten => talk,n,Background(this-is-the-voice-mail-system)
exten => talk,n,Background(to-log-in-to-voice-mail)
exten => talk,n,Background(press-1)
exten => talk,n,Background(or)
exten => talk,n,Background(to-hang-up)
exten => talk,n,Background(press-2)

;drop them into the voicemail system
exten => 1,1,Wait(1)
exten => 1,n,VoiceMailMain(${vmext}@default)

;they don't want to talk to us
exten => 2,1,Wait(1)
exten => 2,n,Playback(vm-goodbye)
exten => 2,n,Hangup

;They must be ignoring us
exten => t,1,Hangup

And replace it with something like this (untested)

exten => talk,1,Wait(5)
exten => talk,n,SendDTMF(911)
exten => talk,n,Hangup

You may have to adjust the Wait(5) to suit the pager service wait time.

Let me know if this works as I haven't tried it.



mvsystems
Posts: 1120
Member Since:
2006-06-05
Re: Help test VM Notify (have voicemail call your cell phone)

thanks, I will give it a try.

--

Tim Booth FtOCC
MaineVoIP Systems
VisionCom
Portland, Maine



mvsystems
Posts: 1120
Member Since:
2006-06-05
Re: Help test VM Notify (have voicemail call your cell phone)

hi BobH
that worked fine. I only needed to dial a 7 digit number to make it work. Where in the script can I change it to say dial the 10 digit phone number to say dial the 7 digit phone number. I have changed a couple things that I thought i was but it did'nt work.

Thanks again.

--

Tim Booth FtOCC
MaineVoIP Systems
VisionCom
Portland, Maine



BobH
Posts: 223
Member Since:
2006-05-31
Re: Help test VM Notify (have voicemail call your cell phone)

It's up towards the beginning here:

exten => 1,1,Playback(enter-phone-number10)

exten => 1,1,Playback(enter-phone-number10)
exten => 1,2,Read(phonenumber,then-press-pound)
exten => 1,3,Set(DB(vmnotify/${vmextension})=${phonenumber})
exten => 1,4,Playback(enabled&telephone-number&is-set-to)
exten => 1,5,SayDigits(${phonenumber})
exten => 1,6,Hangup()

If you find a more appropriate prompt please let me know and I will change it. That was the best I could find in the standard prompts but I didn't look too hard... I'm pretty sure there wasn't an enter-phone-number7



fepotaco
Posts: 1
Member Since:
2006-12-18
Re: Help test VM Notify (have voicemail call your cell phone)

Hi
my trunk chanel is sip

exten => s,112,System(echo "Channel: Sip/???????"${phonenumber} > ${spooldir}/${ARG1}.call)

How this place????

help!!

Thanks :-(



manula
Posts: 34
Member Since:
2006-07-05
Re: Help test VM Notify (have voicemail call your cell phone)

Hello,
great application, congrats and thanks for writing it and sharing with us, BobH.

I had a little problem getting it to work at the beginning. The code I copied had what i found to be an error, at least on my machine:
;now build a .call file and then move it into the spool
exten => s,111,SetVar(spooldir=/var/spool/asterisk)
I changed the priority to 11 and it all worked.

My problem though is that when I get the call from the system (as soon as someone - myself! - leaves a voice message) and I log into my voice mail, the system tells me I have no voice messages!!! How come?
I've just left one!

has anyone else experienced this problem?

Thanks a lot



manula
Posts: 34
Member Since:
2006-07-05
Re: Help test VM Notify (have voicemail call your cell phone)

SOLVED!

The voicemail for the extension I was leaving voice messages for was configured to DELETE voicemails after they had been emailed by asterisk. Therefore, as soon as I left myself a voice message this was emails by the system more quickly than the VM Notify application could call me and play it for me.



rpotthoff
Posts: 146
Member Since:
2006-12-19
Group Paging

Can I use this to send a message to a group of pagers?
I need to have a message go out to everyone in the company when a message is left in the Gen voicemail box.



bubbapcguy
Posts: 3578
Member Since:
2006-06-02
channel

Only you can tell us..
The name of trunk in Freepbx

if you make a outbound call and watch the Asterisk CLI when it calls out you will see it say some like that sip/vitout/12223334444 (somenumber you called)

Bubba
The views and options expressed by me in no way are the views of others.
http://pbx4pros.com



busster8
Posts: 226
Member Since:
2006-06-25
notification

Works great. Have you thought of a way to insure that the notification worked? Could it be possible that the notification keeps trying every 5 minutes until the password is put in? This would insure that late at night the message is delivered.

Another suggestion would be an escalation number if the first person did not answer in say 30 minutes, it starts notifying someone else. Then possibly a second escalation point after 30 more minutes.



JSylvia007
Posts: 29
Member Since:
2007-03-15
Dial Internal Pager Ext

Hello, I have an internal pager device, with a local extension, and I'm not very familiar with the freePBX macros. What I am trying to do is modify the area that calls an EXTERNAL line by using the Zap Trunk and have it call an internal extension. I have a sample below of what i am trying to do. Any help would be appreciated.

${phonenumber} in this example below is actually the 3 digit pager number.

[macro-vm-notify]

exten => s,1,Set(phonenumber=${DB(vmnotify/${ARG1})})
exten => s,2,Gotoif($["foo${phonenumber}" = "foo"]?0:10) ;see if this vmbox has out-calling enabled

exten => s,10,HasNewVoicemail(${ARG1}) ;check for new voicemails first

exten => Macro(dial,$DIAL_TIMER,$DIAL_OPTIONS,2411) ;this should call x2411 but I dont know how to do that
exten => s,1,Answer
exten => s,n,NoOp( Waiting for Answer )
exten => s,n,WaitForSilence(2000)
exten => s,n,NoOp( Hello )
exten => s,n,Goto(talk,1)

exten => talk,1,Wait(3) ;wait 3 seconds for the pager system to tell you to enter the pager number
exten => talk,n,SendDTMF(${phonenumber}#) ;enter the pager number followed by # sign
exten => talk,n,SendDTMF(${vmext}#) ;enter the persons extension as the message, followed by the # sign
exten => talk,n,Hangup

Am i even on the correct path??



BobH
Posts: 223
Member Since:
2006-05-31
I'm not sure I understand

I'm not sure I understand what you are trying to do. I think you would just need to change this line to get it to dial only internal numbers. The problem is we aren't passing the caller ID of the caller who left the message. Are you wanting to send the number of the caller who left the message? Maybe you can explain the plan in detail and something can be worked out.

exten => s,n,System(echo "Channel: Zap/g0/"${phonenumber} > ${spooldir}/${ARG1}.call)

to this if your internal extension is 2411

exten => s,n,System(echo "Channel: Local/2411" > ${spooldir}/${ARG1}.call)



JSylvia007
Posts: 29
Member Since:
2007-03-15
the pager is a simple

the pager is a simple numeric pager. all that needs to happen, is the following:

x2222 gets Voicemail
System Calls Paging Unit (x2411)
System Waits 3 seconds for Unit to stop speaking
System enters Pager Number for specific person (157#)
System Enters Message (in this case 2222#)
System Hangs Up

Is that a little clearer?



BobH
Posts: 223
Member Since:
2006-05-31
OK I think I understand the

OK I think I understand the process.

change this line


exten => s,n,System(echo "Channel: Zap/g0/"${phonenumber} > ${spooldir}/${ARG1}.call)

to


exten => s,n,System(echo "Channel: Local/2411" > ${spooldir}/${ARG1}.call)

change this


exten => talk,1,Wait(3)
exten => talk,n,Background(this-is-the-voice-mail-system)
exten => talk,n,Background(to-log-in-to-voice-mail)
exten => talk,n,Background(press-1)
exten => talk,n,Background(or)
exten => talk,n,Background(to-hang-up)
exten => talk,n,Background(press-2)
;Wait a little bit then repeat the message
exten => talk,n,Wait(3)
exten => talk,n,Background(this-is-the-voice-mail-system)
exten => talk,n,Background(to-log-in-to-voice-mail)
exten => talk,n,Background(press-1)
exten => talk,n,Background(or)
exten => talk,n,Background(to-hang-up)
exten => talk,n,Background(press-2)

;drop them into the voicemail system
exten => 1,1,Wait(1)
exten => 1,n,VoiceMailMain(${vmext}@default)

;they don't want to talk to us
exten => 2,1,Wait(1)
exten => 2,n,Playback(vm-goodbye)
exten => 2,n,Hangup

;They must be ignoring us
exten => t,1,Hangup

to


exten => talk,1,Wait(3)
exten => talk,n,SendDTMF(${phonenumber}#)
exten => talk,n,SendDTMF(${vmext}#)
exten => talk,n,Hangup

Let me know if that works. It looks like it will follow how you do it. You may need to tweak the waits.



JSylvia007
Posts: 29
Member Since:
2007-03-15
It's actually working

It's actually working great!

The only line that isnt is this line:

exten => talk,n,SendDTMF(${phonenumber})

On the Log it shows that line actually sends "" (null).

Any ideas?



BobH
Posts: 223
Member Since:
2006-05-31
You have used *26 to setup

You have used *26 to setup the pager number right?

To see if the variables have the correct data you can change to this and then look in the log.


exten => talk,1,Wait(3)
exten => talk,n,Noop(${phonenumber})
exten => talk,n,SendDTMF(${phonenumber}#)
exten => talk,n,Noop(${vmext})
exten => talk,n,SendDTMF(${vmext}#)
exten => talk,n,Hangup


j10152
Posts: 5
Member Since:
2007-07-06
Re: Help test VM Notify (have voicemail call your cell phone)

Does anyone have a current link to the post mentioned below, or to the script/module itself?
I'm in need of just such a utility.

on Wed, 08/09/2006 - 9:09am, BobH wrote:
For calling a list of numbers this was suggested in another post

Automated Outbound Call Notification System

TIA,
Jim



cosmos
Posts: 27
Member Since:
2007-05-06
Hi this works great! When I

Hi this works great! When I get a call on my cell phone it says its from Unknown, how do I change that to say from voicemail ???? Thanks!!!



BobH
Posts: 223
Member Since:
2006-05-31
That is a whole other

That is a whole other subject that depends on your service provider allowing you to change your outgoing caller ID info. If your provider allows this then you should be able to add a line to the code to make this happen. Add this line between the other two in the existing code.

exten => s,n,System(echo "CallerID: Some Name <1234>" >> ${spooldir}/${ARG1}.call)

exten => s,n,System(echo "Channel: Zap/g0/"${phonenumber} > ${spooldir}/${ARG1}.call)
exten => s,n,System(echo "MaxRetries: 1" >> ${spooldir}/${ARG1}.call)

****** DON'T WRAP THE LINES ******



mmitchel
Posts: 320
Member Since:
2007-01-10
Great work... I appreciate the post!

I had a customer ask me about this functionality yesterday... I've already added the code and have it working for them. Thanks alot!

I'm encountering the same "unknown" on caller id, not sure if you have any other thoughts..
i have added the "CallerID: name " as you mentioned above, I also have name and number on the sip trunk (vitelity) which allows me to add name/number to calls... I'll continue to play...just wanted to post a thanks for this feature...

I agree, should be added in freepbx

- Matt



norperu
Posts: 12
Member Since:
2007-07-08
where to drop this code

would it not be better to throw this code to :
[from-internal-trixbox]
this way all you extensions can access it?
I am currently restricting calls by using this website as a ref :
http://dumbme.voipeye.com.au/trixbox/calls_handling.htm#How%20to%...
but if I create this then I loose the access to all the from-internal-trixbox codes.
I ended putting the following to my restricted context to make it work:
include => from-internal-trixbox
include => custom-vm-notify
at this point I asked my self if I could move the custom-vm-notify code to from-internal-trixbox. Is this a good idea?



Undrhil
Posts: 264
Member Since:
2006-06-25
Has anyone converted this to

Has anyone converted this to a FreePBX module yet? It seems to be polished enough that it should be a viable option in FreePBX. Any status?

I notice that most people on here are using SIP or Zap lines for outcall. Has anyone tested this on IAX2 lines? Also, what about using it across ENUM or DUNDi or between two PBXs tied together with SIP or IAX?

Edit: Here is the current link for the Automated Outgoing Notification thread linked to previously:

http://www.trixbox.org/forums/trixbox-forums/open-discussion/auto...



busster8
Posts: 226
Member Since:
2006-06-25
Has stopped accepting touch tones

We have used this for about 6 months, now the vm-notify no longer accepts touchtones.
It calls the phone, but no matter what you press, there is no reaction / acceptance of the button press.



mmitchel
Posts: 320
Member Since:
2007-01-10
HasNewVoicemail broken...

I've been using the vm to cell script since you posted... on a TB 2.0 system...works awesome, customer loves it!

I'm building a newer server and testing all the functions before deployment. This is pretty much one of the last things I need to test, new server running great.

I've copied over all the code and built the includes as noted, and as I did with my existing server, however the process dies/fails at s:10 after it checks the "HasNewVoicemail".

UPDATE.. more details...
I've realized that the HasNewVoicemail app is returning that there are no new voicemails for this box. Soo... I created the example script out of the handy "the future of telephony" book and in deed, the HasVoicemail and HasNewVoicemail is returning that my vm box has no new voicemails. YET, when i log into the box, i actually do have new voicemails...

So this script is NOT broken...Can anyone suggest why "HasNewVoicemail" would return false results?

This is a deal breaker... not sure how to proceed, so I'll take anyone's helpful hints.



mmitchel
Posts: 320
Member Since:
2007-01-10
More details ...

If anyone is interested in assisting... here is some more info cuz I can't go to sleep until i have this fixed..(start mt dew drip)

I'm getting wierd results, need someone with some higher understanding of the HasNewVoicemail/HasVoicemail app to assist.

I have two servers, production and development. Production vm to cell script works, Development vm to cell script doesn't...
Prod=tb 2.0
dev=tb 2.2.8

my results vary from the box's, but neither give me (what i feel is) the right answer.

I have built a new extension on both machines with a vm box. and I have the script below on both box's looking at the respective new vm box.

Prod says "you have 0 messages" - when in fact i have 2 new vm's
Dev says "you have no messages" - when in fact i have MANY

Oddly enough, the script works for the prod box, and calls me ... the "HasNewVoicemail" seems to work, even though I can't make it work with this simple script. I've got about 4 hairs left on my head, if anyone can take a shot ...

[custom-hasvoicemail]
exten => 1010,1,Answer
exten => 1010,2,HasNewVoicemail(1009,count)
exten => 1010,3,Playback(vm-youhave)
exten => 1010,4,Playback(vm-no)
exten => 1010,5,Playback(vm-messages)
exten => 1010,6,Goto(1010,106)
exten => 1010,103,Playback(vm-youhave)
exten => 1010,104,SayNumber($count)
exten => 1010,105,Playback(vm-messages)
exten => 1010,106,Hangup()



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.