Pager Email Address Info

Status
Not open for further replies.

Amphibian

Joined
Sep 8, 2009
Messages
1,128
Reaction score
1
Hey Team,

Elastix Ver 2.6.18

Could some one advise where to modify the Pager Email Address Text information that is sent when a person receives a voicemail. I need to change the text information the Elastix Server sends out to the cell or pager..... I know that it was a file that had .rpmnew before but that file does not seem to be available in 2.6....

Thank you,

amphibian
 
ELX 2.6 ? Are you sure ?
 
Sir Franck,

You are right, glad you caught that.. It is Elastix Version 2.5.0.1

I'm telling you, them coke bottle glasses are getting harder to see out of.....

Do you know where the code I am looking for is? I need to modify it seriously bad and for some reason haven't been able to locate it...


Thanks for catching that,

amphibian
 
No idea, but i could take some time to check.
Maybe later. I'm tired tonight , sorry. :wink:

But you could try to explain us, how it works with some real parameter in detail.
In this case, maybe i could understand how it works, and perhaps i could find a way.
Like i said, i never use this feature.

Let me know.
 
Sir Franck,

In the "Extensions" section, under Voice Mail setup info there is a place to put the email address so that when someone leaves a vm it will send a email notice of a received vm that is waiting to be heard. Right under it, there is a box to enter a pager number or cell phone number so the systme can send a SMS message to a cell phone when you have a vm.

So say I call you, you don't answer, I then leave you a voicemail, as soon as I hang up the server will then send a email of the voicemail, and it will (if you have the information entered in the bx) send you a text mesage on your phone that displays:
FRM: Asterisk PBX
Sub: New VM
MSG: New 0.06 long msg
in box 8001 from william-funnyman, on
Monday, February 22, 2016 at 064:24:43 AM

and that's it.... I need to completely re-do that message, in fact I need the abilty to enter a custome message per client... but for the life of me I have not found where that function is located.... I know its got to be part of a module but which one is beyond me....

Update: In prior version of asterisk a line like this was in the voicemail.conf file...."pagerbody=${VM_DATE} - ${VM_MAILBOX} has a new voicemail from ${VM_CALLERID} (${VM_DUR} seconds)." I haven't found it.

I'm wondering if is has been moved from voicemail.conf to a "externnotify" module that I am not aware of?


Thank you Sir,

amphibain
 
http://www.voip-info.org/wiki/view/Aste ... email.conf

They talk about that:
pagerfromstring
This setting allows the adminstrator to override a portion of the From: line in the voicemail pager notification message. By default, Asterisk sends the string "From: Asterisk PBX <who>. The "Asterisk PBX" portion of the From: line can be overridden by specifying your own string as the value for this setting. One might use this to customize the voicemail pager notification message and/or remove the reference to "Asterisk PBX".

pagerbody
This setting overrides the normal message text seen in the body of a SMS voicemail notification message. It also supports variable substitution which can be used to make the message more meaningful.

Next question, You said I need the abilty to enter a custome message per client so the pagerbody, is unique for each client or it could be changed in the time, for example: Pagerbody A, Pagerbody B, Pagerbody C, Pagerbody A....etc
 
Hello.
I found a way.
The idea is, to create a voicemail context for each custom pager.
Steps:
  1. Go to Extensions settings.
  2. Select an extension
  3. Select VM Context
  4. Change Default by Feature1
  5. Submit and apply the changes.
  6. Use SSH
  7. Edit /etc/asterisk/voicemail.conf.
  8. Below each context (default & Feature1) braquets, add this line with pagerbody=....Etc
  9. Save your files.
  10. Go to CLI mode
  11. Launch this cmd line : voicemail reload
  12. Lanche this cmd line : voicemail show users

Result:
Code:
FRDEV064*CLI> voicemail show users
Context    Mbox  User                      Zone       NewMsg
default    1004  Olivier                                   0
default    pagerbody  on ${VM_DATE}\n\n Dial 770-123-1224 to pick up messages \n\n                 0
Feature1   1002  Franck                                    0
Feature1   pagerbody  on ${VM_DATE}\n\n Dial 0000000000  to pick up messages \n\n                 0
4 voicemail users configured.

Content of voicemail.conf:
Code:
[general]
#include vm_general.inc
#include vm_email.inc
[default]

1004 => 0000,Olivier,,,attach=yes|saycid=no|envelope=no|delete=no
pagerbody=New ${VM_DUR} long msg in box ${VM_MAILBOX}\nfrom ${VM_CALLERID}, on ${VM_DATE}\n\n Dial 770-123-1224 to pick up messages \n\n

[Feature1]
1002 => 1234,Franck,[email protected],[email protected],attach=yes|saycid=yes|envelope=yes|delete=no
pagerbody=New ${VM_DUR} long msg in box ${VM_MAILBOX}\nfrom ${VM_CALLERID}, on ${VM_DATE}\n\n Dial 0000000000  to pick up messages \n\n

I can't make any tests here.
Let me know.
 
Sir Franck,

I tried that, but for some reason it has no effect on the "pager email address" text information that is sent out...

I have tried several times to restart voicemail to reboot, to cmd voicemail reload and to no end does the added lines change anything.

Im thinking now, that maybe we need to put the [Feature1] part into the file called vm_email.inc or place "Feature1" under the "defaul"t in the "voicemail.conf.template" because it appears that within the voicemail.conf there is something that prevents it from acting on the [Features].... Just my guessing...

It seems to me though that there should be a file somewhere that has the content parameters of what is normally sent out when using the pager email address. That content is coming from somewhere...., just like there is content within the vm_email.inc there should be a file like say vm_pager.inc with the standar content for the pager email address info......just my thoughts.

Thank you sir, as I continue to seek that which I have not found.... yet......

amphibian
 
Ok, if you are present at home in about 5 or 6 hours, we will try to find a way.
 
Sir,

I will make it a point to be here at 10:00 my time which should be 6:00 your time...


amphibian
 
Ok,

From what I am hearing from the asterisk team, the file "vm_email.in" must be a change that Elastix put into the software..... instead of leaving the portion of code within the vm_email.inc in the voicemail.conf for some reason it was removed and put into this file.....

So, anyone with connections to the powers to be maybe have some answers?



amphibian
 
Sorry William for the late.

About your issue, i think you should have more than one parameters for pager.
Try to read voicemail.conf.rpmnew.
The sample looks talking about that:

; You can also change the Pager From: string, the pager body and/or subject.
; The above defined variables also can be used here
;pagerfromstring=The Asterisk PBX
;pagersubject=New VM
;pagerbody=New ${VM_DUR} long msg in box ${VM_MAILBOX}\nfrom ${VM_CALLERID}, on ${VM_DATE}
;
; Set the date format on outgoing mails. Valid arguments can be found on the
; strftime(3) man page
;
; Default
emaildateformat=%A, %B %d, %Y at %r
; 24h date format
;emaildateformat=%A, %d %B %Y at %H:%M:%S
;
; Default for pager use
pagerdateformat=%A, %B %d, %Y at %r
; Short 24h date format for pager use
;pagerdateformat=%T %D
;
Perhaps you need to setting up more than one parameter.

Just an idea like that.
 
Sir Franck,

Ok, I figured out some of it, at least I think I did....

In order to change the "Pager Email Address" parameters you have to doit thru the FreePbx module. You go to FreePBX, then to "Settings" then to "Voicemail Admin"...then click on "settings", that is where most of the mods for email & pager email are set. Scroll down to almost at the bottom and one can see that there is the info for the pager settings. The system has a default setting until one enters text info in the boxes for the pager.

I have it sending out at least one of my text... Now then, if I can get the "Feature1, Feature2, or etc...." working that would be the icing on the cake...

I have tried the method of adding the context of the pagerbody= in the suggested location, but that has no effect. I have changed like three extension voicemail "Pager Email Adress" from "default" to the Feature1, Feature2, Feauter3 ... but the system does not send out what is in those Features, it continues to send out what is in the "pager" information under the "Voicemail Admin" section.....

I'm sure it has to do with maybe the wrong location of the features or maybe there is a different way to set it up like leave the "default" there and enter something in the VM Options box..... Maybe someone can tell us more....

Any help would be and is most defiantly appreciated....

Thanks,

amphibian
 
Hi William.

I wondered why this way doesn't want to work.
In the template file below:

;4073 => 1099,Bianca Paige,[email protected],,delete=1|emailsubject=You have a new voicemail.|emailbody=Click on the attachment to listen.|rip=2010-06-04
Would say: You could have a custom mail for each one voicelmail, right?

Into my test, i just replaced every mail object by pager object.
Read the voicemail 100 bellow.

Code:
[general]
pagerfromstring=From Elastix
pagersubject=Nouveau Message
pagerdateformat=%T %D

#include vm_general.inc
#include vm_email.inc
[default]
106 => 2876,Franck Danard,[email protected],,attach=yes|saycid=yes|envelope=yes|delete=no

[feature1]
100 => 1664,Accueil,,[email protected],attach=no|pagerfromstring=Feature1|pagersubject=Message|pagerbody=Nouveau|saycid=yes|envelope=yes|delete=no|

This way works only with these informations below:
pagerfromstring=From Elastix
pagersubject=Nouveau Message
pagerdateformat=%T %D

But the voicemail option about pagerbody is missing.
It's weird

So question: it's permit to put some pager options into this line, like email options?.
One option need to be separated by a pipe.

This question should be sent to Digium (Forum).
 
Sir Franck,

I had originally sent the question to the asterisk forum, several there stated that the [Feature1] should work but they concluded that since asterisk doesn't use vm_email.inc (the info in that file is in the voivemail.config) or vm_general.inc that I would need to contact the third party or front end provider of the asterisk software I was using as it had been modified by them.... So furth investigation I found that it was apparent that FreePBX did the modifing.... So I have a question into their forum awaing to see if they can provide the reason why the feature doesn't work or the proper place/way to make it work.....


Thank you Sir,

amphibian
 
So, for resume, it doesn't work because the voicemail is declined in 2 parts (general.inc and mail.inc) ?
Tsssss !!! Unthinkable !!
 
We have to wait and follow both threads and bug issue report I sent...

It's between asterisk and FreePbx....


amphibian
 
Really?
To be honest, I think this bug is more for Asterisk than for FreePBX!
In the reality, who has already tried this kind of settings until now? No many people i guess.
In this case, this bug could be existing since a long time.
 
Status
Not open for further replies.

Forum statistics

Threads
111,857
Messages
589,422
Members
164,697
Latest member
LKU