Voicemail Notification

fhb

New Member
Joined
Mar 11, 2009
Messages
5
Reaction score
0
Hrm, this could be the cause right here:

bell:~/vm_notify# ./vm_notify_check.sh
Checking Voicemail Notification script against Source Data
--------------------------------------------------------------------------------
./vm_notify_check.sh: line 67: [: !=: unary operator expected
No changes detected...
bell:~/vm_notify#

Me not being able to understand _what_ that actually means, it could be part of the cause.
Added manually and still doesn't seem to fire. Bizarre.
 

TheShniz

Guru
Joined
Nov 15, 2007
Messages
560
Reaction score
2
Line 67 of vm_notify_check.sh is testing to see if your system was determined (starting on line 37) to be either a new or existing install. It is doing so by checking if vm_notify_custom.conf is a 0-byte file or not.

I am unable to reproduce your error, so can't really offer much in terms of an update. However, if you want to remove the syntax check completely (and rebuild it every time)... simply remove the section (lines 66-81).

In the end, your vm_notify_custom.conf should be such that it is...

_header.dat + [macro-vm] + _footer.dat
 

tshif

Guru
Joined
Jan 3, 2008
Messages
1,240
Reaction score
4
-J
With the recent update for the FreePBX modules, there is a message about moving certain VM related override codes to a different location in FreePBX - since apparently something has been changed about the VM auto generated code. Did you review that info, and do you think it will have any impact on VM Notify script? (These comments were visible in the Module Manager release notes for the most recent updates)
 

TheShniz

Guru
Joined
Nov 15, 2007
Messages
560
Reaction score
2
I wasn't aware of any updates since the IAX extension fix... you've piqued my interest tho, will look into it, and hopefully have an answer before I leave work later today. Dialplan issues asside, the underlining problem w/ integrating into FreePBX has always been [macro-vm].

Remember, extensions and voicemail continue to be the dark side of FreePBX. They have slowly and steadily been trying to clean up the mess for a long while now. Knowing nothing else, I wonder if it's being prompted by a new or expanded feature of 2.6. Just a thought. Regardless, I'll check it out :)
 

tshif

Guru
Joined
Jan 3, 2008
Messages
1,240
Reaction score
4
The update was in module CORE, here are the notes:
Change Log for version 2.5.1.6

2.5.1.6: #3439, #3526, #3534, moved macro-vm to auto-generation (WARNING: custom modification of macro-vm in extensions_custom.conf need to be moved to extensions_override_freepbx.conf

This seems to involve some of the areas this script is concerned with right?
 

fhb

New Member
Joined
Mar 11, 2009
Messages
5
Reaction score
0
An Update. I installed Elastix 1.52 in a Virtual machine and was able to run the script and it passed the script checking option. Yet I installed another Virtual Machine in a remote location, restored the backup from the original Virtual Machine to it and still have the same problem with line 67.
 

mp1111

Member
Joined
Dec 23, 2007
Messages
38
Reaction score
0
The update was in module CORE, here are the notes:
Change Log for version 2.5.1.6

2.5.1.6: #3439, #3526, #3534, moved macro-vm to auto-generation (WARNING: custom modification of macro-vm in extensions_custom.conf need to be moved to extensions_override_freepbx.conf

This seems to involve some of the areas this script is concerned with right?

i tried to install it on a new box and i am getting a sintax error

3:24:01 (32.9 KB/s) - `vm_notify.tgz' saved [3469/3469]
vm_notify/
vm_notify/vm_notify_header.dat
vm_notify/vm_notify_install.sh
vm_notify/vm_notify_footer.dat
vm_notify/vm_notify_uninstall.sh
vm_notify/vm_notify_check.sh
Installing Voicemail Notification script
--------------------------------------------------------------------------------
Logging installation to /var/log/asterisk/vm_notify.log
--------------------------------------------------------------------------------
Script Installed - Source Update is STRONGLY Recommended
Updating Script with Source Data - Press ENTER to Continue (Ctrl-C to Cancel)
--------------------------------------------------------------------------------
Checking Voicemail Notification script against Source Data
--------------------------------------------------------------------------------
Creating script for the first time...
Syntax changed in SOURCE, please check pattern matching...
Logging Syntax Change to /var/log/asterisk/vm_notify.log
root@pbx:~ $


Do you think we can get this fixed in the new version -to match the freepbx recent changes?
2.5.1.6: #3439, #3526, #3534, moved macro-vm to auto-generation (WARNING: custom modification of macro-vm in extensions_custom.conf need to be moved to extensions_override_freepbx.conf
 

tshif

Guru
Joined
Jan 3, 2008
Messages
1,240
Reaction score
4
MV Notify Moved to SVN

Attention interested parties: This is a very cool function - and for a variety of reasons - we are not making much progress with nailing down the inconsistencies that have been uncovered by various users.

In hopes of stimulating developer and community interest in the project - we have opened a project for it at the SVN and Dev Support site.

If you are interested in this project - especially if you can help resolve its last few issues and get it stable, as well as address the most recent FreePBX changes to vmmacro - please drop by the Project Dev site and sign up to participate.
 

TheShniz

Guru
Joined
Nov 15, 2007
Messages
560
Reaction score
2
As an update: I've been quite busy these past couple weeks, so right now my intentions are to catch up on the boards and hopefully get this script updated by the end of the week. I don't forsee any difficulties, and I fully intend to make the script aware of both locations.
 

fhb

New Member
Joined
Mar 11, 2009
Messages
5
Reaction score
0
Just checking in to see if any status has changed.. Still not working on my end.
 

TheShniz

Guru
Joined
Nov 15, 2007
Messages
560
Reaction score
2
I appologize for the delay guys, as I've been overwhelmingly busy these past couple weeks... I'm (hopefully) in the final stages of a large project that's been occupying my time, and I appreciate your patience!

I have uploaded for you (and everyone else for that matter) a beta version of the updated script which I believe should work just fine. As the script has not been made aware of the old structure, you will need to run the uninstall to remove the old script if already installed and re-run. If I can get a couple people to test successful (or get enough time myself), then I'll complete the version check and update the script for all to use.

You can install the new beta script by doing:

wget http://www.edgeproductions.com/sites/default/files/TheShniz/voip/install...
chmod +x ./install-vm_notify_beta
./install-vm_notify_beta
 

tshif

Guru
Joined
Jan 3, 2008
Messages
1,240
Reaction score
4
8 days and counting - does anyone have any feedback? I love this function - when it works its really a workhorse.
 

MyKroFt

Guru
Joined
Oct 31, 2008
Messages
659
Reaction score
3
ok, i installed it and started playing with it

upon dialing *26 it answers, and asks me my ext # - cant it figure this out itself? Like maybe press 1# to use current ext number - otherwise enter number then #?

then is tells me the service is disabled and hit 1 to enable - press 1 and nothing goes no further.

What do i need to look for?

Code:
[2009-06-17 11:20:54] VERBOSE[16714] logger.c:     -- Executing [*26@from-internal:1] Answer("SIP/1000-0a092c70", "") in new stack
[2009-06-17 11:20:54] VERBOSE[16714] logger.c:     -- Executing [*26@from-internal:2] Wait("SIP/1000-0a092c70", "2") in new stack
[2009-06-17 11:20:56] VERBOSE[16714] logger.c:     -- Executing [*26@from-internal:3] Playback("SIP/1000-0a092c70", "please-enter-your&extension") in new stack
[2009-06-17 11:20:56] VERBOSE[16714] logger.c:     -- <SIP/1000-0a092c70> Playing 'please-enter-your' (language 'en')
[2009-06-17 11:20:57] VERBOSE[16714] logger.c:     -- <SIP/1000-0a092c70> Playing 'extension' (language 'en')
[2009-06-17 11:20:58] VERBOSE[16714] logger.c:     -- Executing [*26@from-internal:4] Read("SIP/1000-0a092c70", "vmextension|then-press-pound") in new stack
[2009-06-17 11:20:58] VERBOSE[16714] logger.c:     -- <SIP/1000-0a092c70> Playing 'then-press-pound' (language 'en')
[2009-06-17 11:21:00] VERBOSE[16714] logger.c:     -- User entered '1000'
[2009-06-17 11:21:00] DEBUG[16714] func_db.c: DB: vmnotify/1000 not found in database.
[2009-06-17 11:21:00] VERBOSE[16714] logger.c:     -- Executing [*26@from-internal:5] Set("SIP/1000-0a092c70", "phonenumber=") in new stack
[2009-06-17 11:21:00] VERBOSE[16714] logger.c:     -- Executing [*26@from-internal:6] GotoIf("SIP/1000-0a092c70", "1?20:10") in new stack
[2009-06-17 11:21:00] VERBOSE[16714] logger.c:     -- Goto (from-internal,*26,20)
[2009-06-17 11:21:00] VERBOSE[16714] logger.c:     -- Executing [*26@from-internal:20] Playback("SIP/1000-0a092c70", "disabled") in new stack
[2009-06-17 11:21:00] VERBOSE[16714] logger.c:     -- <SIP/1000-0a092c70> Playing 'disabled' (language 'en')
[2009-06-17 11:21:01] VERBOSE[16714] logger.c:     -- Executing [*26@from-internal:21] BackGround("SIP/1000-0a092c70", "press-1&for&enabled") in new stack
[2009-06-17 11:21:01] VERBOSE[16714] logger.c:     -- <SIP/1000-0a092c70> Playing 'press-1' (language 'en')
[2009-06-17 11:21:02] VERBOSE[16714] logger.c:     -- <SIP/1000-0a092c70> Playing 'for' (language 'en')
[2009-06-17 11:21:02] VERBOSE[16714] logger.c:     -- <SIP/1000-0a092c70> Playing 'enabled' (language 'en')
[2009-06-17 11:21:03] VERBOSE[16714] logger.c:     -- Executing [*26@from-internal:22] WaitExten("SIP/1000-0a092c70", "") in new stack
[2009-06-17 11:21:09] VERBOSE[16714] logger.c:   == CDR updated on SIP/1000-0a092c70
[2009-06-17 11:21:09] VERBOSE[16714] logger.c:     -- Executing [1@from-internal:1] Playback("SIP/1000-0a092c70", "enter-phone-number10") in new stack
[2009-06-17 11:21:09] VERBOSE[16714] logger.c:     -- <SIP/1000-0a092c70> Playing 'enter-phone-number10' (language 'en')
[2009-06-17 11:21:09] VERBOSE[16714] logger.c:   == Spawn extension (from-internal, 1, 1) exited non-zero on 'SIP/1000-0a092c70'
[2009-06-17 11:21:09] VERBOSE[16714] logger.c:     -- Executing [h@from-internal:1] Macro("SIP/1000-0a092c70", "hangupcall") in new stack
[2009-06-17 11:21:09] VERBOSE[16714] logger.c:     -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/1000-0a092c70", "vw") in new stack
[2009-06-17 11:21:09] DEBUG[16714] app_macro.c: Executed application: ResetCDR
[2009-06-17 11:21:09] VERBOSE[16714] logger.c:     -- Executing [s@macro-hangupcall:2] NoCDR("SIP/1000-0a092c70", "") in new stack
[2009-06-17 11:21:09] DEBUG[16714] app_macro.c: Executed application: NoCDR
[2009-06-17 11:21:09] VERBOSE[16714] logger.c:     -- Executing [s@macro-hangupcall:3] GotoIf("SIP/1000-0a092c70", "1?skiprg") in new stack
[2009-06-17 11:21:09] VERBOSE[16714] logger.c:     -- Goto (macro-hangupcall,s,6)
[2009-06-17 11:21:09] DEBUG[16714] app_macro.c: Executed application: GotoIf
[2009-06-17 11:21:09] VERBOSE[16714] logger.c:     -- Executing [s@macro-hangupcall:6] GotoIf("SIP/1000-0a092c70", "1?skipblkvm") in new stack
[2009-06-17 11:21:09] VERBOSE[16714] logger.c:     -- Goto (macro-hangupcall,s,9)
[2009-06-17 11:21:09] DEBUG[16714] app_macro.c: Executed application: GotoIf
[2009-06-17 11:21:09] VERBOSE[16714] logger.c:     -- Executing [s@macro-hangupcall:9] GotoIf("SIP/1000-0a092c70", "1?theend") in new stack
[2009-06-17 11:21:09] VERBOSE[16714] logger.c:     -- Goto (macro-hangupcall,s,11)
[2009-06-17 11:21:09] DEBUG[16714] app_macro.c: Executed application: GotoIf
[2009-06-17 11:21:09] VERBOSE[16714] logger.c:     -- Executing [s@macro-hangupcall:11] Hangup("SIP/1000-0a092c70", "") in new stack
[2009-06-17 11:21:09] VERBOSE[16714] logger.c:   == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/1000-0a092c70' in macro 'hangupcall'
[2009-06-17 11:21:09] VERBOSE[16714] logger.c:   == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/1000-0a092c70'
The executing lines are *26@from-internal until after it tells me to press 1 for enable, then it goes to 1@from-internal on the playback line of enter phone number.....

Myk
 

MyKroFt

Guru
Joined
Oct 31, 2008
Messages
659
Reaction score
3
Nevermine....

I reloaded Asterisk again...

and now it works.....

dunno why it was not asking me for phone number before
 

tshif

Guru
Joined
Jan 3, 2008
Messages
1,240
Reaction score
4
MyKroFt - can you tell us:
1. about your platform. Asterisk ver, FreePBX ver, OS ver, etc.
2. what kind of trunks you use (SIP IAX ZAP)
3. Do you enable VMX on any of the extension involved in your test.

-tshif
 

MyKroFt

Guru
Joined
Oct 31, 2008
Messages
659
Reaction score
3
MyKroFt - can you tell us:
1. about your platform. Asterisk ver, FreePBX ver, OS ver, etc.
2. what kind of trunks you use (SIP IAX ZAP)
3. Do you enable VMX on any of the extension involved in your test.

-tshif


PBXIAF 1.4, - current
using SIP trunks with VoicePulse. do iave a interlinked AIX to work box
no VMX on any extension
 

fhb

New Member
Joined
Mar 11, 2009
Messages
5
Reaction score
0
Stilll having troubles with this.

I'm not sure whats going on, I have had to change the *26 to *226 just because it conflicts with one of my extensions.

I am able to enter in a number, and when I leave myself a voicemail it looks as if it is executing macro-vm-notify but then stops as shown in the log.

== Spawn extension (from-internal, *33, 1) exited non-zero on 'SIP/33-c4026a00'
-- Executing [h@macro-vm:1] Macro("SIP/33-c4026a00", "vm-notify|") in new stack
-- Executing [s@macro-vm-notify:1] Set("SIP/33-c4026a00", "phonenumber=") in new stack
-- Executing [s@macro-vm-notify:2] GotoIf("SIP/33-c4026a00", "1?0:10") in new stack
-- Goto (macro-vm-notify,s,0)
 

GlenPittman

New Member
Joined
Jun 29, 2008
Messages
27
Reaction score
1
I have a question about how to make this do something a bit different. I would like to have the message notification actually dial an internal ring group number, and then have the ring group consist of extensions that are set to ring outside to cell phones. How can I make this script dial an internal number instead of accessing a trunk?

The idea here is to have an emergency box, where a customer leaves a message, and then the system calls all of the cell phones in order until someone acknowledges receipt of the message.

Is there an easier way? If the customer had a DID trunk, we could point a DID at the ring group, and have the notification dial the DID... but all we have is analog trunks (fxo)

Thanks
 

Members online

No members online now.

Forum statistics

Threads
25,810
Messages
167,754
Members
19,240
Latest member
nikko
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top