Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] mod_voicemail email template variables


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
Nick.Lemberger at lkfd...
Guest





PostPosted: Thu Aug 27, 2009 12:46 pm    Post subject: [Freeswitch-users] mod_voicemail email template variables Reply with quote

Is there a way to use dialplan variables in the email that gets sent with the voicemail attachement. I tried using some but nothing seems to show up, I'm guessing it's a different channel or something...

Any ideas?

Thanks,
-Nick


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
anthony.minessale at g...
Guest





PostPosted: Thu Aug 27, 2009 12:49 pm    Post subject: [Freeswitch-users] mod_voicemail email template variables Reply with quote

all variables referenced in the template should expand when sending the email.


On Thu, Aug 27, 2009 at 12:41 PM, Nick Lemberger <Nick.Lemberger@lkfd.net (Nick.Lemberger@lkfd.net)> wrote:
Quote:
Is there a way to use dialplan variables in the email that gets sent with the voicemail attachement.  I tried using some but nothing seems to show up, I'm guessing it's a different channel or something...

Any ideas?

Thanks,
-Nick


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
Nick.Lemberger at lkfd...
Guest





PostPosted: Thu Aug 27, 2009 1:13 pm    Post subject: [Freeswitch-users] mod_voicemail email template variables Reply with quote

Thanks for the fast reply!

I just tried 10 random variables from http://wiki.freeswitch.org/wiki/Channel_Variables and I only see the whitespace where the variable should be. I've only been able to get the ones that are set in mod_voicemail.c circa line 1600 to work.

-Nick

Quote:
Quote:
Quote:
On 8/27/2009 at 12:44 PM, in message
<191c3a030908271044k63973088xeec12c578d02ef14@mail.gmail.com>, Anthony
Minessale <anthony.minessale@gmail.com> wrote:
Quote:
all variables referenced in the template should expand when sending the
email.


On Thu, Aug 27, 2009 at 12:41 PM, Nick Lemberger
<Nick.Lemberger@lkfd.net>wrote:

Quote:
Is there a way to use dialplan variables in the email that gets sent with
the voicemail attachement. I tried using some but nothing seems to show up,
I'm guessing it's a different channel or something...

Any ideas?

Thanks,
-Nick


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
anthony.minessale at g...
Guest





PostPosted: Thu Aug 27, 2009 2:09 pm    Post subject: [Freeswitch-users] mod_voicemail email template variables Reply with quote

you should be able to for instance put

<action application="set" data="test_var=this is a test"/>

right before the voicemail app is called

then put

${test_var} in your template.

making sure to issue reloadxml or restart FS


On Thu, Aug 27, 2009 at 1:06 PM, Nick Lemberger <Nick.Lemberger@lkfd.net (Nick.Lemberger@lkfd.net)> wrote:
Quote:
Thanks for the fast reply!

I just tried 10 random variables from http://wiki.freeswitch.org/wiki/Channel_Variables  and I only see the whitespace where the variable should be.  I've only been able to get the ones that are set in mod_voicemail.c circa line 1600 to work.

-Nick

Quote:
Quote:
Quote:
On 8/27/2009 at 12:44 PM, in message
<191c3a030908271044k63973088xeec12c578d02ef14@mail.gmail.com (191c3a030908271044k63973088xeec12c578d02ef14@mail.gmail.com)>, Anthony

Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)> wrote:
Quote:
all variables referenced in the template should expand when sending the
email.


On Thu, Aug 27, 2009 at 12:41 PM, Nick Lemberger
<Nick.Lemberger@lkfd.net (Nick.Lemberger@lkfd.net)>wrote:

Quote:
Is there a way to use dialplan variables in the email that gets sent with
the voicemail attachement.  I tried using some but nothing seems to show up,
I'm guessing it's a different channel or something...

Any ideas?

Thanks,
-Nick


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
Nick.Lemberger at lkfd...
Guest





PostPosted: Tue Sep 01, 2009 8:51 am    Post subject: [Freeswitch-users] mod_voicemail email template variables Reply with quote

I tried doing a set right before the application is called to make a customer variable but it doesn't get transferred to the template this way either:

---dialplan snip---
<action application="set" data="test_var=this is a test"/>
<action application="voicemail" data="default $${domain} $1"/>
---end snip---

---voicemail.tpl snip---
Created: ${voicemail_time}
${test_var}
From: "${voicemail_caller_id_name}" <${sip_from_user_stripped}>
Duration: ${voicemail_message_len}
---end snip---

---resultant email snip---
Created: Tuesday, September 01 2009, 08 30 AM

From: "LEMBERGER,NICK" <>
Duration: 00:00:07
---end snip---

Notice I also tried the channel variable ${sip_from_user_stripped} as it should be available as well, at least according to the 'info' app. Any ideas?

-Nick

Quote:
Quote:
Quote:
Anthony Minessale <anthony.minessale@gmail.com> 08/27/09 1:54 PM >>>
you should be able to for instance put

<action application="set" data="test_var=this is a test"/>

right before the voicemail app is called

then put

${test_var} in your template.

making sure to issue reloadxml or restart FS


On Thu, Aug 27, 2009 at 1:06 PM, Nick Lemberger <Nick.Lemberger@lkfd.net>wrote:

Quote:
Thanks for the fast reply!

I just tried 10 random variables from
http://wiki.freeswitch.org/wiki/Channel_Variables and I only see the
whitespace where the variable should be. I've only been able to get the
ones that are set in mod_voicemail.c circa line 1600 to work.

-Nick

Quote:
Quote:
Quote:
On 8/27/2009 at 12:44 PM, in message
<191c3a030908271044k63973088xeec12c578d02ef14@mail.gmail.com>, Anthony
Minessale <anthony.minessale@gmail.com> wrote:
Quote:
all variables referenced in the template should expand when sending the
email.


On Thu, Aug 27, 2009 at 12:41 PM, Nick Lemberger
<Nick.Lemberger@lkfd.net>wrote:

Quote:
Is there a way to use dialplan variables in the email that gets sent
with
Quote:
Quote:
the voicemail attachement. I tried using some but nothing seems to show
up,
Quote:
Quote:
I'm guessing it's a different channel or something...

Any ideas?

Thanks,
-Nick


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:
http://lists.freeswitch.org/mailman/options/freeswitch-users
Quote:
Quote:
http://www.freeswitch.org





_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org>
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org>
pstn:213-799-1400


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
anthony.minessale at g...
Guest





PostPosted: Tue Sep 01, 2009 12:53 pm    Post subject: [Freeswitch-users] mod_voicemail email template variables Reply with quote

get latest trunk and try again.
there was a single character out of place that caused the variables to not be expanded.


On Tue, Sep 1, 2009 at 8:38 AM, Nick Lemberger <Nick.Lemberger@lkfd.net (Nick.Lemberger@lkfd.net)> wrote:
Quote:
I tried doing a set right before the application is called to make a customer variable but it doesn't get transferred to the template this way either:

---dialplan snip---
     <action application="set" data="test_var=this is a test"/>

     <action application="voicemail" data="default $${domain} $1"/>
---end snip---

---voicemail.tpl snip---
Created: ${voicemail_time}
${test_var}
From: "${voicemail_caller_id_name}" <${sip_from_user_stripped}>
Duration: ${voicemail_message_len}
---end snip---

---resultant email snip---
Created: Tuesday, September 01 2009, 08 30 AM

From: "LEMBERGER,NICK" <>
Duration: 00:00:07
---end snip---

Notice I also tried the channel variable ${sip_from_user_stripped} as it should be available as well, at least according to the 'info' app.  Any ideas?

-Nick

Quote:
Quote:
Quote:
Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)> 08/27/09 1:54 PM >>>

you should be able to for instance put

<action application="set" data="test_var=this is a test"/>

right before the voicemail app is called

then put

${test_var} in your template.

making sure to issue reloadxml or restart FS


On Thu, Aug 27, 2009 at 1:06 PM, Nick Lemberger <Nick.Lemberger@lkfd.net (Nick.Lemberger@lkfd.net)>wrote:

Quote:
Thanks for the fast reply!

I just tried 10 random variables from
http://wiki.freeswitch.org/wiki/Channel_Variables  and I only see the
whitespace where the variable should be.  I've only been able to get the
ones that are set in mod_voicemail.c circa line 1600 to work.

-Nick

Quote:
Quote:
Quote:
On 8/27/2009 at 12:44 PM, in message
<191c3a030908271044k63973088xeec12c578d02ef14@mail.gmail.com (191c3a030908271044k63973088xeec12c578d02ef14@mail.gmail.com)>, Anthony
Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)> wrote:
Quote:
all variables referenced in the template should expand when sending the
email.


On Thu, Aug 27, 2009 at 12:41 PM, Nick Lemberger
<Nick.Lemberger@lkfd.net (Nick.Lemberger@lkfd.net)>wrote:

Quote:
Is there a way to use dialplan variables in the email that gets sent
with
Quote:
Quote:
the voicemail attachement.  I tried using some but nothing seems to show
up,
Quote:
Quote:
I'm guessing it's a different channel or something...

Any ideas?

Thanks,
-Nick


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:
http://lists.freeswitch.org/mailman/options/freeswitch-users
Quote:
Quote:
http://www.freeswitch.org





_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm


MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email]) <MSN%3Aanthony_minessale@hotmail.com ([email]MSN%253Aanthony_minessale@hotmail.com[/email])>
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])<PAYPAL%3Aanthony.minessale@gmail.com ([email]PAYPAL%253Aanthony.minessale@gmail.com[/email])>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference

sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email]) <sip%3A888@conference.freeswitch.org ([email]sip%253A888@conference.freeswitch.org[/email])>
iax:guest@conference.freeswitch.org/888

googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])<googletalk%3Aconf%2B888@conference.freeswitch.org ([email]googletalk%253Aconf%252B888@conference.freeswitch.org[/email])>
pstn:213-799-1400



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services