freeswitch never seems to call sendmail when trying to email voicemails
Hi, I've been trying to make freeswitch email voicemails but as far as I can tell, it never even calls sendmail. I have setting mailer-app to "sendmail" and "/usr/sbin/sendmail" to no avail. I can successfully send an email from the commandline using sendmail. (sendmail in this case is provided by postfix) I see no emails in the postfix mail logs when I leave a voicemail message. I also tried creating a shell just to see if it even gets called from fs, but it does not get called when a voicemail is deposited: #!/bin/bash echo $(date --rfc-3339=ns): $* >> /tmp/freeswitchsendmail.log After every change, I have run reloadxml and reload mod_voicemail. I have also tried restarting freeswitch. I am running the debian packages of FreeSWITCH Version 1.4.15-1~64bit (-1 64bit) my configuration is based on the vanilla configuration with only very minor changes. I'm at a loss as to how to debug further, but I'm pretty sure the mailer-app is never called. Is there some setting I'm missing or something obvious I'm not doing? My config: 1001.xml: <include> <user id="1001"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1001"/> <param name="vm-mailto" value="jason@xyz.com.au"/> <param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au"/> <!-- <param name="vm-message-ext" value="wav"/> --> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1001"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 1001"/> <variable name="effective_caller_id_number" value="1001"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include> and in switch.conf.xml I have the following set: <param name="mailer-app" value="/usr/sbin/sendmail"/> <param name="mailer-app-args" value="-t"/> I made a log at level 7 and put it on the pastebin: https://pastebin.freeswitch.org/23921 Jason Lewis http://emacstragic.net
You mailer is not understand "mailer-app-args" has been configured in "switch.conf.xml" Remove extra arg or add required пт, 20 февр. 2015, 7:49, Jason Lewis <jason@dickson.st>:
Hi,
I've been trying to make freeswitch email voicemails but as far as I can tell, it never even calls sendmail.
I have setting mailer-app to "sendmail" and "/usr/sbin/sendmail" to no avail. I can successfully send an email from the commandline using sendmail. (sendmail in this case is provided by postfix)
I see no emails in the postfix mail logs when I leave a voicemail message.
I also tried creating a shell just to see if it even gets called from fs, but it does not get called when a voicemail is deposited: #!/bin/bash echo $(date --rfc-3339=ns): $* >> /tmp/freeswitchsendmail.log
After every change, I have run reloadxml and reload mod_voicemail. I have also tried restarting freeswitch.
I am running the debian packages of FreeSWITCH Version 1.4.15-1~64bit (-1 64bit)
my configuration is based on the vanilla configuration with only very minor changes.
I'm at a loss as to how to debug further, but I'm pretty sure the mailer-app is never called. Is there some setting I'm missing or something obvious I'm not doing?
My config: 1001.xml: <include> <user id="1001"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1001"/> <param name="vm-mailto" value="jason@xyz.com.au"/> <param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au"/> <!-- <param name="vm-message-ext" value="wav"/> --> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1001"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 1001"/> <variable name="effective_caller_id_number" value="1001"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
and in switch.conf.xml I have the following set:
<param name="mailer-app" value="/usr/sbin/sendmail"/> <param name="mailer-app-args" value="-t"/>
I made a log at level 7 and put it on the pastebin:
https://pastebin.freeswitch.org/23921
Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
Hi Sergey, thanks for the tip. I dug around more and managed to get some actual output from the sendmail program (which in this case is a perl wrapper around postfix) it seems the from email address is invalid, but I'm not sure why. I have set it in the directory for this extension.... <param name="vm-mailto" value="jason@xyz.com"/> <param name="vm-mailfrom" value="vmfreeswitch@xyz.com"/> <param name="email-from" value="vmfreeswitch@xyz.com"/> but in the logs I see this: Net::SMTP=GLOB(0x23f7748)>>> MAIL FROM:<1002@192.168.1.3> Net::SMTP=GLOB(0x23f7748)<<< 501 5.1.7 Bad sender address syntax Thanks, Jason On 20/02/2015 7:10 pm, Sergey Safarov wrote:
You mailer is not understand "mailer-app-args" has been configured in "switch.conf.xml"
Remove extra arg or add required
пт, 20 февр. 2015, 7:49, Jason Lewis <jason@dickson.st <mailto:jason@dickson.st>>:
Hi,
I've been trying to make freeswitch email voicemails but as far as I can tell, it never even calls sendmail.
I have setting mailer-app to "sendmail" and "/usr/sbin/sendmail" to no avail. I can successfully send an email from the commandline using sendmail. (sendmail in this case is provided by postfix)
I see no emails in the postfix mail logs when I leave a voicemail message.
I also tried creating a shell just to see if it even gets called from fs, but it does not get called when a voicemail is deposited: #!/bin/bash echo $(date --rfc-3339=ns): $* >> /tmp/freeswitchsendmail.log
After every change, I have run reloadxml and reload mod_voicemail. I have also tried restarting freeswitch.
I am running the debian packages of FreeSWITCH Version 1.4.15-1~64bit (-1 64bit)
my configuration is based on the vanilla configuration with only very minor changes.
I'm at a loss as to how to debug further, but I'm pretty sure the mailer-app is never called. Is there some setting I'm missing or something obvious I'm not doing?
My config: 1001.xml: <include> <user id="1001"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1001"/> <param name="vm-mailto" value="jason@xyz.com.au <mailto:jason@xyz.com.au>"/> <param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au <mailto:vm@freeswitch.xyz.com.au>"/> <!-- <param name="vm-message-ext" value="wav"/> --> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1001"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 1001"/> <variable name="effective_caller_id_number" value="1001"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
and in switch.conf.xml I have the following set:
<param name="mailer-app" value="/usr/sbin/sendmail"/> <param name="mailer-app-args" value="-t"/>
I made a log at level 7 and put it on the pastebin:
https://pastebin.freeswitch.org/23921
Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Jason Lewis http://emacstragic.net
Required debugging of source code to find reason of ignoring params vm-mailfrom and email-from On Sun, Feb 22, 2015 at 3:24 AM, Jason Lewis <jason@dickson.st> wrote:
Hi Sergey, thanks for the tip.
I dug around more and managed to get some actual output from the sendmail program (which in this case is a perl wrapper around postfix)
it seems the from email address is invalid, but I'm not sure why. I have set it in the directory for this extension....
<param name="vm-mailto" value="jason@xyz.com" <jason@xyz.com>/> <param name="vm-mailfrom" value="vmfreeswitch@xyz.com" <vmfreeswitch@xyz.com>/> <param name="email-from" value="vmfreeswitch@xyz.com" <vmfreeswitch@xyz.com>/>
but in the logs I see this:
Net::SMTP=GLOB(0x23f7748)>>> MAIL FROM:<1002@192.168.1.3> <1002@192.168.1.3> Net::SMTP=GLOB(0x23f7748)<<< 501 5.1.7 Bad sender address syntax
Thanks,
Jason
On 20/02/2015 7:10 pm, Sergey Safarov wrote:
You mailer is not understand "mailer-app-args" has been configured in "switch.conf.xml"
Remove extra arg or add required
пт, 20 февр. 2015, 7:49, Jason Lewis <jason@dickson.st>:
Hi,
I've been trying to make freeswitch email voicemails but as far as I can tell, it never even calls sendmail.
I have setting mailer-app to "sendmail" and "/usr/sbin/sendmail" to no avail. I can successfully send an email from the commandline using sendmail. (sendmail in this case is provided by postfix)
I see no emails in the postfix mail logs when I leave a voicemail message.
I also tried creating a shell just to see if it even gets called from fs, but it does not get called when a voicemail is deposited: #!/bin/bash echo $(date --rfc-3339=ns): $* >> /tmp/freeswitchsendmail.log
After every change, I have run reloadxml and reload mod_voicemail. I have also tried restarting freeswitch.
I am running the debian packages of FreeSWITCH Version 1.4.15-1~64bit (-1 64bit)
my configuration is based on the vanilla configuration with only very minor changes.
I'm at a loss as to how to debug further, but I'm pretty sure the mailer-app is never called. Is there some setting I'm missing or something obvious I'm not doing?
My config: 1001.xml: <include> <user id="1001"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1001"/> <param name="vm-mailto" value="jason@xyz.com.au"/> <param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au"/> <!-- <param name="vm-message-ext" value="wav"/> --> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1001"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 1001"/> <variable name="effective_caller_id_number" value="1001"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
and in switch.conf.xml I have the following set:
<param name="mailer-app" value="/usr/sbin/sendmail"/> <param name="mailer-app-args" value="-t"/>
I made a log at level 7 and put it on the pastebin:
https://pastebin.freeswitch.org/23921
Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
-- Jason Lewishttp://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
Sounds like someone may need to file a JIRA so that this is fixed if its really not working or the docs are just wrong. Either way, we should correct it. On Mon, Feb 23, 2015 at 12:52 AM, Sergey Safarov <s.safarov@gmail.com> wrote:
Required debugging of source code to find reason of ignoring params vm-mailfrom and email-from
On Sun, Feb 22, 2015 at 3:24 AM, Jason Lewis <jason@dickson.st> wrote:
Hi Sergey, thanks for the tip.
I dug around more and managed to get some actual output from the sendmail program (which in this case is a perl wrapper around postfix)
it seems the from email address is invalid, but I'm not sure why. I have set it in the directory for this extension....
<param name="vm-mailto" value="jason@xyz.com" <jason@xyz.com>/> <param name="vm-mailfrom" value="vmfreeswitch@xyz.com" <vmfreeswitch@xyz.com>/> <param name="email-from" value="vmfreeswitch@xyz.com" <vmfreeswitch@xyz.com>/>
but in the logs I see this:
Net::SMTP=GLOB(0x23f7748)>>> MAIL FROM:<1002@192.168.1.3> <1002@192.168.1.3> Net::SMTP=GLOB(0x23f7748)<<< 501 5.1.7 Bad sender address syntax
Thanks,
Jason
On 20/02/2015 7:10 pm, Sergey Safarov wrote:
You mailer is not understand "mailer-app-args" has been configured in "switch.conf.xml"
Remove extra arg or add required
пт, 20 февр. 2015, 7:49, Jason Lewis <jason@dickson.st>:
Hi,
I've been trying to make freeswitch email voicemails but as far as I can tell, it never even calls sendmail.
I have setting mailer-app to "sendmail" and "/usr/sbin/sendmail" to no avail. I can successfully send an email from the commandline using sendmail. (sendmail in this case is provided by postfix)
I see no emails in the postfix mail logs when I leave a voicemail message.
I also tried creating a shell just to see if it even gets called from fs, but it does not get called when a voicemail is deposited: #!/bin/bash echo $(date --rfc-3339=ns): $* >> /tmp/freeswitchsendmail.log
After every change, I have run reloadxml and reload mod_voicemail. I have also tried restarting freeswitch.
I am running the debian packages of FreeSWITCH Version 1.4.15-1~64bit (-1 64bit)
my configuration is based on the vanilla configuration with only very minor changes.
I'm at a loss as to how to debug further, but I'm pretty sure the mailer-app is never called. Is there some setting I'm missing or something obvious I'm not doing?
My config: 1001.xml: <include> <user id="1001"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1001"/> <param name="vm-mailto" value="jason@xyz.com.au"/> <param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au"/> <!-- <param name="vm-message-ext" value="wav"/> --> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1001"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 1001"/> <variable name="effective_caller_id_number" value="1001"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
and in switch.conf.xml I have the following set:
<param name="mailer-app" value="/usr/sbin/sendmail"/> <param name="mailer-app-args" value="-t"/>
I made a log at level 7 and put it on the pastebin:
https://pastebin.freeswitch.org/23921
Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
-- Jason Lewishttp://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
So I've managed to see some output from the sendmail program in the FS logs. It appears that my fs instance isn't correctly setting its domain? the FS box has a fqdn, and I also set the domain parameter in the vars.xml file, but still the voicemail is sent with a from address of an IP address. Any ideas? Net::SMTP>>> Net::SMTP(2.33) Net::SMTP>>> Net::Cmd(2.30) Net::SMTP>>> Exporter(5.71) Net::SMTP>>> IO::Socket::INET(1.35) Net::SMTP>>> IO::Socket(1.37) Net::SMTP>>> IO::Handle(1.35) Net::SMTP=GLOB(0x23f7748)<<< 220 mb.xyz.com.au ESMTP Postfix (Debian/GNU) Net::SMTP=GLOB(0x23f7748)>>> EHLO localhost.localdomain Net::SMTP=GLOB(0x23f7748)<<< 250-mb.bongalong.st Net::SMTP=GLOB(0x23f7748)<<< 250-PIPELINING Net::SMTP=GLOB(0x23f7748)<<< 250-SIZE 10240000 Net::SMTP=GLOB(0x23f7748)<<< 250-VRFY Net::SMTP=GLOB(0x23f7748)<<< 250-ETRN Net::SMTP=GLOB(0x23f7748)<<< 250-STARTTLS Net::SMTP=GLOB(0x23f7748)<<< 250-ENHANCEDSTATUSCODES Net::SMTP=GLOB(0x23f7748)<<< 250-8BITMIME Net::SMTP=GLOB(0x23f7748)<<< 250 DSN Net::SMTP=GLOB(0x23f7748)>>> MAIL FROM:<1002@192.168.1.3> Net::SMTP=GLOB(0x23f7748)<<< 501 5.1.7 Bad sender address syntax Net::SMTP=GLOB(0x23f7748)>>> RCPT TO:<jason@xyz.com.au> Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need MAIL command Net::SMTP=GLOB(0x23f7748)>>> DATA Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need RCPT command Net::SMTP=GLOB(0x23f7748)>>> QUIT Net::SMTP=GLOB(0x23f7748)<<< 221 2.0.0 Bye 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 3 (loopback/voicemail-a) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-a [CS_DESTROY] 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 4 (loopback/voicemail-b) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-b [CS_DESTROY] On 20/02/2015 7:10 pm, Sergey Safarov wrote:
You mailer is not understand "mailer-app-args" has been configured in "switch.conf.xml"
Remove extra arg or add required
пт, 20 февр. 2015, 7:49, Jason Lewis <jason@dickson.st <mailto:jason@dickson.st>>:
Hi,
I've been trying to make freeswitch email voicemails but as far as I can tell, it never even calls sendmail.
I have setting mailer-app to "sendmail" and "/usr/sbin/sendmail" to no avail. I can successfully send an email from the commandline using sendmail. (sendmail in this case is provided by postfix)
I see no emails in the postfix mail logs when I leave a voicemail message.
I also tried creating a shell just to see if it even gets called from fs, but it does not get called when a voicemail is deposited: #!/bin/bash echo $(date --rfc-3339=ns): $* >> /tmp/freeswitchsendmail.log
After every change, I have run reloadxml and reload mod_voicemail. I have also tried restarting freeswitch.
I am running the debian packages of FreeSWITCH Version 1.4.15-1~64bit (-1 64bit)
my configuration is based on the vanilla configuration with only very minor changes.
I'm at a loss as to how to debug further, but I'm pretty sure the mailer-app is never called. Is there some setting I'm missing or something obvious I'm not doing?
My config: 1001.xml: <include> <user id="1001"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1001"/> <param name="vm-mailto" value="jason@xyz.com.au <mailto:jason@xyz.com.au>"/> <param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au <mailto:vm@freeswitch.xyz.com.au>"/> <!-- <param name="vm-message-ext" value="wav"/> --> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1001"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 1001"/> <variable name="effective_caller_id_number" value="1001"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
and in switch.conf.xml I have the following set:
<param name="mailer-app" value="/usr/sbin/sendmail"/> <param name="mailer-app-args" value="-t"/>
I made a log at level 7 and put it on the pastebin:
https://pastebin.freeswitch.org/23921
Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Jason Lewis http://emacstragic.net
Try configure "domain" variable in vars.xml <X-PRE-PROCESS cmd="set" data="domain=you_domain_name"/> After it verify that user registered with domain name freeswitch@internal> sofia status profile internal reg Registrations: ================================================================================================= Call-ID: 1B26-2327-466848134BEBC9719CDE-002@SipHost User: 1201@you_domain_name Contact: "1201" <sip:1201@10.21.18.22:5060 ;fs_nat=yes;fs_path=sip%3A1201%4010.21.18.22%3A5060> Agent: 204 12-3868-2416-0.10.56.1-DS Status: Registered(UDP-NAT)(unknown) EXP(2015-02-23 06:05:22) EXPSECS(139) Ping-Status: Reachable Host: fs1.you_domain_name IP: 10.21.18.22 Port: 5060 Auth-User: 1201 Auth-Realm: you_domain_name MWI-Account: 1201@you_domain_name Sergey On Mon, Feb 23, 2015 at 1:43 AM, Jason Lewis <jason@dickson.st> wrote:
So I've managed to see some output from the sendmail program in the FS logs. It appears that my fs instance isn't correctly setting its domain?
the FS box has a fqdn, and I also set the domain parameter in the vars.xml file, but still the voicemail is sent with a from address of an IP address.
Any ideas?
Net::SMTP>>> Net::SMTP(2.33) Net::SMTP>>> Net::Cmd(2.30) Net::SMTP>>> Exporter(5.71) Net::SMTP>>> IO::Socket::INET(1.35) Net::SMTP>>> IO::Socket(1.37) Net::SMTP>>> IO::Handle(1.35) Net::SMTP=GLOB(0x23f7748)<<< 220 mb.xyz.com.au ESMTP Postfix (Debian/GNU) Net::SMTP=GLOB(0x23f7748)>>> EHLO localhost.localdomain Net::SMTP=GLOB(0x23f7748)<<< 250-mb.bongalong.st Net::SMTP=GLOB(0x23f7748)<<< 250-PIPELINING Net::SMTP=GLOB(0x23f7748)<<< 250-SIZE 10240000 Net::SMTP=GLOB(0x23f7748)<<< 250-VRFY Net::SMTP=GLOB(0x23f7748)<<< 250-ETRN Net::SMTP=GLOB(0x23f7748)<<< 250-STARTTLS Net::SMTP=GLOB(0x23f7748)<<< 250-ENHANCEDSTATUSCODES Net::SMTP=GLOB(0x23f7748)<<< 250-8BITMIME Net::SMTP=GLOB(0x23f7748)<<< 250 DSN Net::SMTP=GLOB(0x23f7748)>>> MAIL FROM:<1002@192.168.1.3> <1002@192.168.1.3> Net::SMTP=GLOB(0x23f7748)<<< 501 5.1.7 Bad sender address syntax Net::SMTP=GLOB(0x23f7748)>>> RCPT TO:<jason@xyz.com.au> <jason@xyz.com.au> Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need MAIL command Net::SMTP=GLOB(0x23f7748)>>> DATA Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need RCPT command Net::SMTP=GLOB(0x23f7748)>>> QUIT Net::SMTP=GLOB(0x23f7748)<<< 221 2.0.0 Bye 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 3 (loopback/voicemail-a) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-a [CS_DESTROY] 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 4 (loopback/voicemail-b) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-b [CS_DESTROY]
On 20/02/2015 7:10 pm, Sergey Safarov wrote:
You mailer is not understand "mailer-app-args" has been configured in "switch.conf.xml"
Remove extra arg or add required
пт, 20 февр. 2015, 7:49, Jason Lewis <jason@dickson.st>:
Hi,
I've been trying to make freeswitch email voicemails but as far as I can tell, it never even calls sendmail.
I have setting mailer-app to "sendmail" and "/usr/sbin/sendmail" to no avail. I can successfully send an email from the commandline using sendmail. (sendmail in this case is provided by postfix)
I see no emails in the postfix mail logs when I leave a voicemail message.
I also tried creating a shell just to see if it even gets called from fs, but it does not get called when a voicemail is deposited: #!/bin/bash echo $(date --rfc-3339=ns): $* >> /tmp/freeswitchsendmail.log
After every change, I have run reloadxml and reload mod_voicemail. I have also tried restarting freeswitch.
I am running the debian packages of FreeSWITCH Version 1.4.15-1~64bit (-1 64bit)
my configuration is based on the vanilla configuration with only very minor changes.
I'm at a loss as to how to debug further, but I'm pretty sure the mailer-app is never called. Is there some setting I'm missing or something obvious I'm not doing?
My config: 1001.xml: <include> <user id="1001"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1001"/> <param name="vm-mailto" value="jason@xyz.com.au"/> <param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au"/> <!-- <param name="vm-message-ext" value="wav"/> --> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1001"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 1001"/> <variable name="effective_caller_id_number" value="1001"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
and in switch.conf.xml I have the following set:
<param name="mailer-app" value="/usr/sbin/sendmail"/> <param name="mailer-app-args" value="-t"/>
I made a log at level 7 and put it on the pastebin:
https://pastebin.freeswitch.org/23921
Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
-- Jason Lewishttp://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
Thanks Sergey, I had configured the domain variable to the fqdn of the machine. I eventually got it working though, I was missing two key lines from my user config: <param name="vm-email-all-messages" value="true"/> <param name="vm-attach-file" value="true" /> I'm not sure how I managed to miss those but anyway, that seems to have resolved things. It seems as though vm-mailfrom is still being ignored though. Currently I have it set to: <param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au"/> but voicemails get delivered from: 1001@freeswitch.xyz.com.au Is this worth investigating further? Jason Sergey Safarov wrote on 23/02/2015 5:05 PM:
Try configure "domain" variable in vars.xml
<X-PRE-PROCESS cmd="set" data="domain=you_domain_name"/>
After it verify that user registered with domain name
freeswitch@internal> sofia status profile internal reg
Registrations: ================================================================================================= Call-ID: 1B26-2327-466848134BEBC9719CDE-002@SipHost User: 1201@you_domain_name Contact: "1201" <sip:1201@10.21.18.22:5060;fs_nat=yes;fs_path=sip%3A1201%4010.21.18.22%3A5060> Agent: 204 12-3868-2416-0.10.56.1-DS Status: Registered(UDP-NAT)(unknown) EXP(2015-02-23 06:05:22) EXPSECS(139) Ping-Status:Reachable Host: fs1.you_domain_name IP: 10.21.18.22 Port: 5060 Auth-User: 1201 Auth-Realm: you_domain_name MWI-Account:1201@you_domain_name
Sergey
On Mon, Feb 23, 2015 at 1:43 AM, Jason Lewis <jason@dickson.st <mailto:jason@dickson.st>> wrote:
So I've managed to see some output from the sendmail program in the FS logs. It appears that my fs instance isn't correctly setting its domain?
the FS box has a fqdn, and I also set the domain parameter in the vars.xml file, but still the voicemail is sent with a from address of an IP address.
Any ideas?
Net::SMTP>>> Net::SMTP(2.33) Net::SMTP>>> Net::Cmd(2.30) Net::SMTP>>> Exporter(5.71) Net::SMTP>>> IO::Socket::INET(1.35) Net::SMTP>>> IO::Socket(1.37) Net::SMTP>>> IO::Handle(1.35) Net::SMTP=GLOB(0x23f7748)<<< 220 mb.xyz.com.au <http://mb.xyz.com.au> ESMTP Postfix (Debian/GNU) Net::SMTP=GLOB(0x23f7748)>>> EHLO localhost.localdomain Net::SMTP=GLOB(0x23f7748)<<< 250-mb.bongalong.st <http://250-mb.bongalong.st> Net::SMTP=GLOB(0x23f7748)<<< 250-PIPELINING Net::SMTP=GLOB(0x23f7748)<<< 250-SIZE 10240000 Net::SMTP=GLOB(0x23f7748)<<< 250-VRFY Net::SMTP=GLOB(0x23f7748)<<< 250-ETRN Net::SMTP=GLOB(0x23f7748)<<< 250-STARTTLS Net::SMTP=GLOB(0x23f7748)<<< 250-ENHANCEDSTATUSCODES Net::SMTP=GLOB(0x23f7748)<<< 250-8BITMIME Net::SMTP=GLOB(0x23f7748)<<< 250 DSN Net::SMTP=GLOB(0x23f7748)>>> MAIL FROM:<1002@192.168.1.3> <mailto:1002@192.168.1.3> Net::SMTP=GLOB(0x23f7748)<<< 501 5.1.7 Bad sender address syntax Net::SMTP=GLOB(0x23f7748)>>> RCPT TO:<jason@xyz.com.au> <mailto:jason@xyz.com.au> Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need MAIL command Net::SMTP=GLOB(0x23f7748)>>> DATA Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need RCPT command Net::SMTP=GLOB(0x23f7748)>>> QUIT Net::SMTP=GLOB(0x23f7748)<<< 221 2.0.0 Bye 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 3 (loopback/voicemail-a) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-a [CS_DESTROY] 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 4 (loopback/voicemail-b) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-b [CS_DESTROY]
On 20/02/2015 7:10 pm, Sergey Safarov wrote:
You mailer is not understand "mailer-app-args" has been configured in "switch.conf.xml"
Remove extra arg or add required
пт, 20 февр. 2015, 7:49, Jason Lewis <jason@dickson.st <mailto:jason@dickson.st>>:
Hi,
I've been trying to make freeswitch email voicemails but as far as I can tell, it never even calls sendmail.
I have setting mailer-app to "sendmail" and "/usr/sbin/sendmail" to no avail. I can successfully send an email from the commandline using sendmail. (sendmail in this case is provided by postfix)
I see no emails in the postfix mail logs when I leave a voicemail message.
I also tried creating a shell just to see if it even gets called from fs, but it does not get called when a voicemail is deposited: #!/bin/bash echo $(date --rfc-3339=ns): $* >> /tmp/freeswitchsendmail.log
After every change, I have run reloadxml and reload mod_voicemail. I have also tried restarting freeswitch.
I am running the debian packages of FreeSWITCH Version 1.4.15-1~64bit (-1 64bit)
my configuration is based on the vanilla configuration with only very minor changes.
I'm at a loss as to how to debug further, but I'm pretty sure the mailer-app is never called. Is there some setting I'm missing or something obvious I'm not doing?
My config: 1001.xml: <include> <user id="1001"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1001"/> <param name="vm-mailto" value="jason@xyz.com.au <mailto:jason@xyz.com.au>"/> <param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au <mailto:vm@freeswitch.xyz.com.au>"/> <!-- <param name="vm-message-ext" value="wav"/> --> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1001"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 1001"/> <variable name="effective_caller_id_number" value="1001"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
and in switch.conf.xml I have the following set:
<param name="mailer-app" value="/usr/sbin/sendmail"/> <param name="mailer-app-args" value="-t"/>
I made a log at level 7 and put it on the pastebin:
https://pastebin.freeswitch.org/23921
Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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
-- Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Jason Lewis http://emacstragic.net
If you want to FS correctly processed parameters vm-mailfrom and email-from, write a request to https://freeswitch.org/jira/ On Tue, Feb 24, 2015 at 5:52 AM, Jason Lewis <jason@dickson.st> wrote:
Thanks Sergey,
I had configured the domain variable to the fqdn of the machine. I eventually got it working though, I was missing two key lines from my user config: <param name="vm-email-all-messages" value="true"/> <param name="vm-attach-file" value="true" />
I'm not sure how I managed to miss those but anyway, that seems to have resolved things.
It seems as though vm-mailfrom is still being ignored though. Currently I have it set to:
<param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au" <vm@freeswitch.xyz.com.au>/>
but voicemails get delivered from:
1001@freeswitch.xyz.com.au
Is this worth investigating further?
Jason
Sergey Safarov wrote on 23/02/2015 5:05 PM:
Try configure "domain" variable in vars.xml
<X-PRE-PROCESS cmd="set" data="domain=you_domain_name"/>
After it verify that user registered with domain name
freeswitch@internal> sofia status profile internal reg
Registrations:
================================================================================================= Call-ID: 1B26-2327-466848134BEBC9719CDE-002@SipHost User: 1201@you_domain_name Contact: "1201" <sip:1201@10.21.18.22:5060;fs_nat=yes;fs_path=sip%3A1201%4010.21.18.22%3A5060> Agent: 204 12-3868-2416-0.10.56.1-DS Status: Registered(UDP-NAT)(unknown) EXP(2015-02-23 06:05:22) EXPSECS(139) Ping-Status: Reachable Host: fs1.you_domain_name IP: 10.21.18.22 Port: 5060 Auth-User: 1201 Auth-Realm: you_domain_name MWI-Account: 1201@you_domain_name
Sergey
On Mon, Feb 23, 2015 at 1:43 AM, Jason Lewis <jason@dickson.st> wrote:
So I've managed to see some output from the sendmail program in the FS logs. It appears that my fs instance isn't correctly setting its domain?
the FS box has a fqdn, and I also set the domain parameter in the vars.xml file, but still the voicemail is sent with a from address of an IP address.
Any ideas?
Net::SMTP>>> Net::SMTP(2.33) Net::SMTP>>> Net::Cmd(2.30) Net::SMTP>>> Exporter(5.71) Net::SMTP>>> IO::Socket::INET(1.35) Net::SMTP>>> IO::Socket(1.37) Net::SMTP>>> IO::Handle(1.35) Net::SMTP=GLOB(0x23f7748)<<< 220 mb.xyz.com.au ESMTP Postfix (Debian/GNU) Net::SMTP=GLOB(0x23f7748)>>> EHLO localhost.localdomain Net::SMTP=GLOB(0x23f7748)<<< 250-mb.bongalong.st Net::SMTP=GLOB(0x23f7748)<<< 250-PIPELINING Net::SMTP=GLOB(0x23f7748)<<< 250-SIZE 10240000 Net::SMTP=GLOB(0x23f7748)<<< 250-VRFY Net::SMTP=GLOB(0x23f7748)<<< 250-ETRN Net::SMTP=GLOB(0x23f7748)<<< 250-STARTTLS Net::SMTP=GLOB(0x23f7748)<<< 250-ENHANCEDSTATUSCODES Net::SMTP=GLOB(0x23f7748)<<< 250-8BITMIME Net::SMTP=GLOB(0x23f7748)<<< 250 DSN Net::SMTP=GLOB(0x23f7748)>>> MAIL FROM:<1002@192.168.1.3> <1002@192.168.1.3> Net::SMTP=GLOB(0x23f7748)<<< 501 5.1.7 Bad sender address syntax Net::SMTP=GLOB(0x23f7748)>>> RCPT TO:<jason@xyz.com.au> <jason@xyz.com.au> Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need MAIL command Net::SMTP=GLOB(0x23f7748)>>> DATA Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need RCPT command Net::SMTP=GLOB(0x23f7748)>>> QUIT Net::SMTP=GLOB(0x23f7748)<<< 221 2.0.0 Bye 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 3 (loopback/voicemail-a) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-a [CS_DESTROY] 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 4 (loopback/voicemail-b) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-b [CS_DESTROY]
On 20/02/2015 7:10 pm, Sergey Safarov wrote:
You mailer is not understand "mailer-app-args" has been configured in "switch.conf.xml"
Remove extra arg or add required
пт, 20 февр. 2015, 7:49, Jason Lewis <jason@dickson.st>:
Hi,
I've been trying to make freeswitch email voicemails but as far as I can tell, it never even calls sendmail.
I have setting mailer-app to "sendmail" and "/usr/sbin/sendmail" to no avail. I can successfully send an email from the commandline using sendmail. (sendmail in this case is provided by postfix)
I see no emails in the postfix mail logs when I leave a voicemail message.
I also tried creating a shell just to see if it even gets called from fs, but it does not get called when a voicemail is deposited: #!/bin/bash echo $(date --rfc-3339=ns): $* >> /tmp/freeswitchsendmail.log
After every change, I have run reloadxml and reload mod_voicemail. I have also tried restarting freeswitch.
I am running the debian packages of FreeSWITCH Version 1.4.15-1~64bit (-1 64bit)
my configuration is based on the vanilla configuration with only very minor changes.
I'm at a loss as to how to debug further, but I'm pretty sure the mailer-app is never called. Is there some setting I'm missing or something obvious I'm not doing?
My config: 1001.xml: <include> <user id="1001"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1001"/> <param name="vm-mailto" value="jason@xyz.com.au"/> <param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au"/> <!-- <param name="vm-message-ext" value="wav"/> --> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1001"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 1001"/> <variable name="effective_caller_id_number" value="1001"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
and in switch.conf.xml I have the following set:
<param name="mailer-app" value="/usr/sbin/sendmail"/> <param name="mailer-app-args" value="-t"/>
I made a log at level 7 and put it on the pastebin:
https://pastebin.freeswitch.org/23921
Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
-- Jason Lewishttp://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
-- Jason Lewishttp://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
When you file the JIRA please attach your voicemail.conf.xml. On Tue, Feb 24, 2015 at 8:21 AM, Sergey Safarov <s.safarov@gmail.com> wrote:
If you want to FS correctly processed parameters vm-mailfrom and email-from, write a request to https://freeswitch.org/jira/
On Tue, Feb 24, 2015 at 5:52 AM, Jason Lewis <jason@dickson.st> wrote:
Thanks Sergey,
I had configured the domain variable to the fqdn of the machine. I eventually got it working though, I was missing two key lines from my user config: <param name="vm-email-all-messages" value="true"/> <param name="vm-attach-file" value="true" />
I'm not sure how I managed to miss those but anyway, that seems to have resolved things.
It seems as though vm-mailfrom is still being ignored though. Currently I have it set to:
<param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au" <vm@freeswitch.xyz.com.au>/>
but voicemails get delivered from:
1001@freeswitch.xyz.com.au
Is this worth investigating further?
Jason
Sergey Safarov wrote on 23/02/2015 5:05 PM:
Try configure "domain" variable in vars.xml
<X-PRE-PROCESS cmd="set" data="domain=you_domain_name"/>
After it verify that user registered with domain name
freeswitch@internal> sofia status profile internal reg
Registrations:
================================================================================================= Call-ID: 1B26-2327-466848134BEBC9719CDE-002@SipHost User: 1201@you_domain_name Contact: "1201" <sip:1201@10.21.18.22:5060;fs_nat=yes;fs_path=sip%3A1201%4010.21.18.22%3A5060> Agent: 204 12-3868-2416-0.10.56.1-DS Status: Registered(UDP-NAT)(unknown) EXP(2015-02-23 06:05:22) EXPSECS(139) Ping-Status: Reachable Host: fs1.you_domain_name IP: 10.21.18.22 Port: 5060 Auth-User: 1201 Auth-Realm: you_domain_name MWI-Account: 1201@you_domain_name
Sergey
On Mon, Feb 23, 2015 at 1:43 AM, Jason Lewis <jason@dickson.st> wrote:
So I've managed to see some output from the sendmail program in the FS logs. It appears that my fs instance isn't correctly setting its domain?
the FS box has a fqdn, and I also set the domain parameter in the vars.xml file, but still the voicemail is sent with a from address of an IP address.
Any ideas?
Net::SMTP>>> Net::SMTP(2.33) Net::SMTP>>> Net::Cmd(2.30) Net::SMTP>>> Exporter(5.71) Net::SMTP>>> IO::Socket::INET(1.35) Net::SMTP>>> IO::Socket(1.37) Net::SMTP>>> IO::Handle(1.35) Net::SMTP=GLOB(0x23f7748)<<< 220 mb.xyz.com.au ESMTP Postfix (Debian/GNU) Net::SMTP=GLOB(0x23f7748)>>> EHLO localhost.localdomain Net::SMTP=GLOB(0x23f7748)<<< 250-mb.bongalong.st Net::SMTP=GLOB(0x23f7748)<<< 250-PIPELINING Net::SMTP=GLOB(0x23f7748)<<< 250-SIZE 10240000 Net::SMTP=GLOB(0x23f7748)<<< 250-VRFY Net::SMTP=GLOB(0x23f7748)<<< 250-ETRN Net::SMTP=GLOB(0x23f7748)<<< 250-STARTTLS Net::SMTP=GLOB(0x23f7748)<<< 250-ENHANCEDSTATUSCODES Net::SMTP=GLOB(0x23f7748)<<< 250-8BITMIME Net::SMTP=GLOB(0x23f7748)<<< 250 DSN Net::SMTP=GLOB(0x23f7748)>>> MAIL FROM:<1002@192.168.1.3> <1002@192.168.1.3> Net::SMTP=GLOB(0x23f7748)<<< 501 5.1.7 Bad sender address syntax Net::SMTP=GLOB(0x23f7748)>>> RCPT TO:<jason@xyz.com.au> <jason@xyz.com.au> Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need MAIL command Net::SMTP=GLOB(0x23f7748)>>> DATA Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need RCPT command Net::SMTP=GLOB(0x23f7748)>>> QUIT Net::SMTP=GLOB(0x23f7748)<<< 221 2.0.0 Bye 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 3 (loopback/voicemail-a) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-a [CS_DESTROY] 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 4 (loopback/voicemail-b) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-b [CS_DESTROY]
On 20/02/2015 7:10 pm, Sergey Safarov wrote:
You mailer is not understand "mailer-app-args" has been configured in "switch.conf.xml"
Remove extra arg or add required
пт, 20 февр. 2015, 7:49, Jason Lewis <jason@dickson.st>:
Hi,
I've been trying to make freeswitch email voicemails but as far as I can tell, it never even calls sendmail.
I have setting mailer-app to "sendmail" and "/usr/sbin/sendmail" to no avail. I can successfully send an email from the commandline using sendmail. (sendmail in this case is provided by postfix)
I see no emails in the postfix mail logs when I leave a voicemail message.
I also tried creating a shell just to see if it even gets called from fs, but it does not get called when a voicemail is deposited: #!/bin/bash echo $(date --rfc-3339=ns): $* >> /tmp/freeswitchsendmail.log
After every change, I have run reloadxml and reload mod_voicemail. I have also tried restarting freeswitch.
I am running the debian packages of FreeSWITCH Version 1.4.15-1~64bit (-1 64bit)
my configuration is based on the vanilla configuration with only very minor changes.
I'm at a loss as to how to debug further, but I'm pretty sure the mailer-app is never called. Is there some setting I'm missing or something obvious I'm not doing?
My config: 1001.xml: <include> <user id="1001"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1001"/> <param name="vm-mailto" value="jason@xyz.com.au"/> <param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au"/> <!-- <param name="vm-message-ext" value="wav"/> --> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1001"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 1001"/> <variable name="effective_caller_id_number" value="1001"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
and in switch.conf.xml I have the following set:
<param name="mailer-app" value="/usr/sbin/sendmail"/> <param name="mailer-app-args" value="-t"/>
I made a log at level 7 and put it on the pastebin:
https://pastebin.freeswitch.org/23921
Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
-- Jason Lewishttp://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
-- Jason Lewishttp://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
Hi, my FS is calling the sendmail-command, but sendmail ends with an segfault. It seems like there is no email under /tmp/. Did your sendmail also ends in a segfault? 2015-02-24 16:51 GMT+01:00 Brian West <brian@freeswitch.org>:
When you file the JIRA please attach your voicemail.conf.xml.
On Tue, Feb 24, 2015 at 8:21 AM, Sergey Safarov <s.safarov@gmail.com> wrote:
If you want to FS correctly processed parameters vm-mailfrom and email-from, write a request to https://freeswitch.org/jira/
On Tue, Feb 24, 2015 at 5:52 AM, Jason Lewis <jason@dickson.st> wrote:
Thanks Sergey,
I had configured the domain variable to the fqdn of the machine. I eventually got it working though, I was missing two key lines from my user config: <param name="vm-email-all-messages" value="true"/> <param name="vm-attach-file" value="true" />
I'm not sure how I managed to miss those but anyway, that seems to have resolved things.
It seems as though vm-mailfrom is still being ignored though. Currently I have it set to:
<param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au" <vm@freeswitch.xyz.com.au>/>
but voicemails get delivered from:
1001@freeswitch.xyz.com.au
Is this worth investigating further?
Jason
Sergey Safarov wrote on 23/02/2015 5:05 PM:
Try configure "domain" variable in vars.xml
<X-PRE-PROCESS cmd="set" data="domain=you_domain_name"/>
After it verify that user registered with domain name
freeswitch@internal> sofia status profile internal reg
Registrations:
================================================================================================= Call-ID: 1B26-2327-466848134BEBC9719CDE-002@SipHost User: 1201@you_domain_name Contact: "1201" <sip:1201@10.21.18.22:5060;fs_nat=yes;fs_path=sip%3A1201%4010.21.18.22%3A5060> Agent: 204 12-3868-2416-0.10.56.1-DS Status: Registered(UDP-NAT)(unknown) EXP(2015-02-23 06:05:22) EXPSECS(139) Ping-Status: Reachable Host: fs1.you_domain_name IP: 10.21.18.22 Port: 5060 Auth-User: 1201 Auth-Realm: you_domain_name MWI-Account: 1201@you_domain_name
Sergey
On Mon, Feb 23, 2015 at 1:43 AM, Jason Lewis <jason@dickson.st> wrote:
So I've managed to see some output from the sendmail program in the FS logs. It appears that my fs instance isn't correctly setting its domain?
the FS box has a fqdn, and I also set the domain parameter in the vars.xml file, but still the voicemail is sent with a from address of an IP address.
Any ideas?
Net::SMTP>>> Net::SMTP(2.33) Net::SMTP>>> Net::Cmd(2.30) Net::SMTP>>> Exporter(5.71) Net::SMTP>>> IO::Socket::INET(1.35) Net::SMTP>>> IO::Socket(1.37) Net::SMTP>>> IO::Handle(1.35) Net::SMTP=GLOB(0x23f7748)<<< 220 mb.xyz.com.au ESMTP Postfix (Debian/GNU) Net::SMTP=GLOB(0x23f7748)>>> EHLO localhost.localdomain Net::SMTP=GLOB(0x23f7748)<<< 250-mb.bongalong.st Net::SMTP=GLOB(0x23f7748)<<< 250-PIPELINING Net::SMTP=GLOB(0x23f7748)<<< 250-SIZE 10240000 Net::SMTP=GLOB(0x23f7748)<<< 250-VRFY Net::SMTP=GLOB(0x23f7748)<<< 250-ETRN Net::SMTP=GLOB(0x23f7748)<<< 250-STARTTLS Net::SMTP=GLOB(0x23f7748)<<< 250-ENHANCEDSTATUSCODES Net::SMTP=GLOB(0x23f7748)<<< 250-8BITMIME Net::SMTP=GLOB(0x23f7748)<<< 250 DSN Net::SMTP=GLOB(0x23f7748)>>> MAIL FROM:<1002@192.168.1.3> <1002@192.168.1.3> Net::SMTP=GLOB(0x23f7748)<<< 501 5.1.7 Bad sender address syntax Net::SMTP=GLOB(0x23f7748)>>> RCPT TO:<jason@xyz.com.au> <jason@xyz.com.au> Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need MAIL command Net::SMTP=GLOB(0x23f7748)>>> DATA Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need RCPT command Net::SMTP=GLOB(0x23f7748)>>> QUIT Net::SMTP=GLOB(0x23f7748)<<< 221 2.0.0 Bye 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 3 (loopback/voicemail-a) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-a [CS_DESTROY] 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 4 (loopback/voicemail-b) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-b [CS_DESTROY]
On 20/02/2015 7:10 pm, Sergey Safarov wrote:
You mailer is not understand "mailer-app-args" has been configured in "switch.conf.xml"
Remove extra arg or add required
пт, 20 февр. 2015, 7:49, Jason Lewis <jason@dickson.st>:
Hi,
I've been trying to make freeswitch email voicemails but as far as I can tell, it never even calls sendmail.
I have setting mailer-app to "sendmail" and "/usr/sbin/sendmail" to no avail. I can successfully send an email from the commandline using sendmail. (sendmail in this case is provided by postfix)
I see no emails in the postfix mail logs when I leave a voicemail message.
I also tried creating a shell just to see if it even gets called from fs, but it does not get called when a voicemail is deposited: #!/bin/bash echo $(date --rfc-3339=ns): $* >> /tmp/freeswitchsendmail.log
After every change, I have run reloadxml and reload mod_voicemail. I have also tried restarting freeswitch.
I am running the debian packages of FreeSWITCH Version 1.4.15-1~64bit (-1 64bit)
my configuration is based on the vanilla configuration with only very minor changes.
I'm at a loss as to how to debug further, but I'm pretty sure the mailer-app is never called. Is there some setting I'm missing or something obvious I'm not doing?
My config: 1001.xml: <include> <user id="1001"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1001"/> <param name="vm-mailto" value="jason@xyz.com.au"/> <param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au"/> <!-- <param name="vm-message-ext" value="wav"/> --> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1001"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 1001"/> <variable name="effective_caller_id_number" value="1001"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
and in switch.conf.xml I have the following set:
<param name="mailer-app" value="/usr/sbin/sendmail"/> <param name="mailer-app-args" value="-t"/>
I made a log at level 7 and put it on the pastebin:
https://pastebin.freeswitch.org/23921
Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
-- Jason Lewishttp://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
-- Jason Lewishttp://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
Why can.t you create your own script and use it to send vm over email? 27 июля 2015 г. 18:32 пользователь "Berthold Karl" < sendmeallyouroffers@googlemail.com> написал:
Hi,
my FS is calling the sendmail-command, but sendmail ends with an segfault. It seems like there is no email under /tmp/. Did your sendmail also ends in a segfault?
2015-02-24 16:51 GMT+01:00 Brian West <brian@freeswitch.org>:
When you file the JIRA please attach your voicemail.conf.xml.
On Tue, Feb 24, 2015 at 8:21 AM, Sergey Safarov <s.safarov@gmail.com> wrote:
If you want to FS correctly processed parameters vm-mailfrom and email-from, write a request to https://freeswitch.org/jira/
On Tue, Feb 24, 2015 at 5:52 AM, Jason Lewis <jason@dickson.st> wrote:
Thanks Sergey,
I had configured the domain variable to the fqdn of the machine. I eventually got it working though, I was missing two key lines from my user config: <param name="vm-email-all-messages" value="true"/> <param name="vm-attach-file" value="true" />
I'm not sure how I managed to miss those but anyway, that seems to have resolved things.
It seems as though vm-mailfrom is still being ignored though. Currently I have it set to:
<param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au" <vm@freeswitch.xyz.com.au>/>
but voicemails get delivered from:
1001@freeswitch.xyz.com.au
Is this worth investigating further?
Jason
Sergey Safarov wrote on 23/02/2015 5:05 PM:
Try configure "domain" variable in vars.xml
<X-PRE-PROCESS cmd="set" data="domain=you_domain_name"/>
After it verify that user registered with domain name
freeswitch@internal> sofia status profile internal reg
Registrations:
================================================================================================= Call-ID: 1B26-2327-466848134BEBC9719CDE-002@SipHost User: 1201@you_domain_name Contact: "1201" <sip:1201@10.21.18.22:5060;fs_nat=yes;fs_path=sip%3A1201%4010.21.18.22%3A5060> Agent: 204 12-3868-2416-0.10.56.1-DS Status: Registered(UDP-NAT)(unknown) EXP(2015-02-23 06:05:22) EXPSECS(139) Ping-Status: Reachable Host: fs1.you_domain_name IP: 10.21.18.22 Port: 5060 Auth-User: 1201 Auth-Realm: you_domain_name MWI-Account: 1201@you_domain_name
Sergey
On Mon, Feb 23, 2015 at 1:43 AM, Jason Lewis <jason@dickson.st> wrote:
So I've managed to see some output from the sendmail program in the FS logs. It appears that my fs instance isn't correctly setting its domain?
the FS box has a fqdn, and I also set the domain parameter in the vars.xml file, but still the voicemail is sent with a from address of an IP address.
Any ideas?
Net::SMTP>>> Net::SMTP(2.33) Net::SMTP>>> Net::Cmd(2.30) Net::SMTP>>> Exporter(5.71) Net::SMTP>>> IO::Socket::INET(1.35) Net::SMTP>>> IO::Socket(1.37) Net::SMTP>>> IO::Handle(1.35) Net::SMTP=GLOB(0x23f7748)<<< 220 mb.xyz.com.au ESMTP Postfix (Debian/GNU) Net::SMTP=GLOB(0x23f7748)>>> EHLO localhost.localdomain Net::SMTP=GLOB(0x23f7748)<<< 250-mb.bongalong.st Net::SMTP=GLOB(0x23f7748)<<< 250-PIPELINING Net::SMTP=GLOB(0x23f7748)<<< 250-SIZE 10240000 Net::SMTP=GLOB(0x23f7748)<<< 250-VRFY Net::SMTP=GLOB(0x23f7748)<<< 250-ETRN Net::SMTP=GLOB(0x23f7748)<<< 250-STARTTLS Net::SMTP=GLOB(0x23f7748)<<< 250-ENHANCEDSTATUSCODES Net::SMTP=GLOB(0x23f7748)<<< 250-8BITMIME Net::SMTP=GLOB(0x23f7748)<<< 250 DSN Net::SMTP=GLOB(0x23f7748)>>> MAIL FROM:<1002@192.168.1.3> <1002@192.168.1.3> Net::SMTP=GLOB(0x23f7748)<<< 501 5.1.7 Bad sender address syntax Net::SMTP=GLOB(0x23f7748)>>> RCPT TO:<jason@xyz.com.au> <jason@xyz.com.au> Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need MAIL command Net::SMTP=GLOB(0x23f7748)>>> DATA Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need RCPT command Net::SMTP=GLOB(0x23f7748)>>> QUIT Net::SMTP=GLOB(0x23f7748)<<< 221 2.0.0 Bye 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 3 (loopback/voicemail-a) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-a [CS_DESTROY] 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 4 (loopback/voicemail-b) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-b [CS_DESTROY]
On 20/02/2015 7:10 pm, Sergey Safarov wrote:
You mailer is not understand "mailer-app-args" has been configured in "switch.conf.xml"
Remove extra arg or add required
пт, 20 февр. 2015, 7:49, Jason Lewis <jason@dickson.st>:
Hi,
I've been trying to make freeswitch email voicemails but as far as I can tell, it never even calls sendmail.
I have setting mailer-app to "sendmail" and "/usr/sbin/sendmail" to no avail. I can successfully send an email from the commandline using sendmail. (sendmail in this case is provided by postfix)
I see no emails in the postfix mail logs when I leave a voicemail message.
I also tried creating a shell just to see if it even gets called from fs, but it does not get called when a voicemail is deposited: #!/bin/bash echo $(date --rfc-3339=ns): $* >> /tmp/freeswitchsendmail.log
After every change, I have run reloadxml and reload mod_voicemail. I have also tried restarting freeswitch.
I am running the debian packages of FreeSWITCH Version 1.4.15-1~64bit (-1 64bit)
my configuration is based on the vanilla configuration with only very minor changes.
I'm at a loss as to how to debug further, but I'm pretty sure the mailer-app is never called. Is there some setting I'm missing or something obvious I'm not doing?
My config: 1001.xml: <include> <user id="1001"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1001"/> <param name="vm-mailto" value="jason@xyz.com.au"/> <param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au"/> <!-- <param name="vm-message-ext" value="wav"/> --> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1001"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 1001"/> <variable name="effective_caller_id_number" value="1001"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
and in switch.conf.xml I have the following set:
<param name="mailer-app" value="/usr/sbin/sendmail"/> <param name="mailer-app-args" value="-t"/>
I made a log at level 7 and put it on the pastebin:
https://pastebin.freeswitch.org/23921
Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
-- Jason Lewishttp://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
-- Jason Lewishttp://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
Hi, Why do not use some simple script after the ends session? For example simple bash script send_voicemail.sh #!/bin/sh cd /usr/local/freeswitch/recordings/voicemail/ f=`find -name \*.wav` for file in $f do echo "Processing ${file}" CURRENT=$(date +%d.%m.%y_%H:%M:%S) datetime=$CURRENT echo $datetime sendemail -f voicemail@mail.com -t somemail@mail.com -m "Voicemail" -u "Voicemail od $datetime" -a ${file} -s smtp.mail.com -xu user -xp pass echo "BackUP ${file}" mv ${file} /usr/local/freeswitch/recordings/backup_voicemail/ done And in dialplan start like this <action application="export" data="api_hangup_hook=system /usr/local/freeswitch/scripts/send_voicemail.sh"/> -- S pozdravem, Ing.Denis Jakovlev mob.tel. 775-415-382 pondělí 27. července 2015, 17:11:10, napsal jste: Why can.t you create your own script and use it to send vm over email? 27 июля 2015 г. 18:32 пользователь "Berthold Karl" <sendmeallyouroffers@googlemail.com> написал: Hi, my FS is calling the sendmail-command, but sendmail ends with an segfault. It seems like there is no email under /tmp/. Did your sendmail also ends in a segfault? 2015-02-24 16:51 GMT+01:00 Brian West <brian@freeswitch.org>: When you file the JIRA please attach your voicemail.conf.xml. On Tue, Feb 24, 2015 at 8:21 AM, Sergey Safarov <s.safarov@gmail.com> wrote: If you want to FS correctly processed parameters vm-mailfrom and email-from, write a request to https://freeswitch.org/jira/ On Tue, Feb 24, 2015 at 5:52 AM, Jason Lewis <jason@dickson.st> wrote: Thanks Sergey, I had configured the domain variable to the fqdn of the machine. I eventually got it working though, I was missing two key lines from my user config: <param name="vm-email-all-messages" value="true"/> <param name="vm-attach-file" value="true" /> I'm not sure how I managed to miss those but anyway, that seems to have resolved things. It seems as though vm-mailfrom is still being ignored though. Currently I have it set to: <param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au"/> but voicemails get delivered from: 1001@freeswitch.xyz.com.au Is this worth investigating further? Jason Sergey Safarov wrote on 23/02/2015 5:05 PM: Try configure "domain" variable in vars.xml <X-PRE-PROCESS cmd="set" data="domain=you_domain_name"/> After it verify that user registered with domain name freeswitch@internal> sofia status profile internal reg Registrations: ================================================================================================= Call-ID: 1B26-2327-466848134BEBC9719CDE-002@SipHost User: 1201@you_domain_name Contact: "1201" <sip:1201@10.21.18.22:5060;fs_nat=yes;fs_path=sip%3A1201%4010.21.18.22%3A5060> Agent: 204 12-3868-2416-0.10.56.1-DS Status: Registered(UDP-NAT)(unknown) EXP(2015-02-23 06:05:22) EXPSECS(139) Ping-Status:Reachable Host: fs1.you_domain_name IP: 10.21.18.22 Port: 5060 Auth-User: 1201 Auth-Realm: you_domain_name MWI-Account:1201@you_domain_name Sergey On Mon, Feb 23, 2015 at 1:43 AM, Jason Lewis <jason@dickson.st> wrote: So I've managed to see some output from the sendmail program in the FS logs. It appears that my fs instance isn't correctly setting its domain? the FS box has a fqdn, and I also set the domain parameter in the vars.xml file, but still the voicemail is sent with a from address of an IP address. Any ideas? Net::SMTP>>> Net::SMTP(2.33) Net::SMTP>>> Net::Cmd(2.30) Net::SMTP>>> Exporter(5.71) Net::SMTP>>> IO::Socket::INET(1.35) Net::SMTP>>> IO::Socket(1.37) Net::SMTP>>> IO::Handle(1.35) Net::SMTP=GLOB(0x23f7748)<<< 220 mb.xyz.com.au ESMTP Postfix (Debian/GNU) Net::SMTP=GLOB(0x23f7748)>>> EHLO localhost.localdomain Net::SMTP=GLOB(0x23f7748)<<< 250-mb.bongalong.st Net::SMTP=GLOB(0x23f7748)<<< 250-PIPELINING Net::SMTP=GLOB(0x23f7748)<<< 250-SIZE 10240000 Net::SMTP=GLOB(0x23f7748)<<< 250-VRFY Net::SMTP=GLOB(0x23f7748)<<< 250-ETRN Net::SMTP=GLOB(0x23f7748)<<< 250-STARTTLS Net::SMTP=GLOB(0x23f7748)<<< 250-ENHANCEDSTATUSCODES Net::SMTP=GLOB(0x23f7748)<<< 250-8BITMIME Net::SMTP=GLOB(0x23f7748)<<< 250 DSN Net::SMTP=GLOB(0x23f7748)>>> MAIL FROM:<1002@192.168.1.3> Net::SMTP=GLOB(0x23f7748)<<< 501 5.1.7 Bad sender address syntax Net::SMTP=GLOB(0x23f7748)>>> RCPT TO:<jason@xyz.com.au> Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need MAIL command Net::SMTP=GLOB(0x23f7748)>>> DATA Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need RCPT command Net::SMTP=GLOB(0x23f7748)>>> QUIT Net::SMTP=GLOB(0x23f7748)<<< 221 2.0.0 Bye 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 3 (loopback/voicemail-a) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-a [CS_DESTROY] 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 4 (loopback/voicemail-b) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-b [CS_DESTROY] On 20/02/2015 7:10 pm, Sergey Safarov wrote: You mailer is not understand "mailer-app-args" has been configured in "switch.conf.xml" Remove extra arg or add required пт, 20 февр. 2015, 7:49, Jason Lewis <jason@dickson.st>: Hi, I've been trying to make freeswitch email voicemails but as far as I can tell, it never even calls sendmail. I have setting mailer-app to "sendmail" and "/usr/sbin/sendmail" to no avail. I can successfully send an email from the commandline using sendmail. (sendmail in this case is provided by postfix) I see no emails in the postfix mail logs when I leave a voicemail message. I also tried creating a shell just to see if it even gets called from fs, but it does not get called when a voicemail is deposited: #!/bin/bash echo $(date --rfc-3339=ns): $* >> /tmp/freeswitchsendmail.log After every change, I have run reloadxml and reload mod_voicemail. I have also tried restarting freeswitch. I am running the debian packages of FreeSWITCH Version 1.4.15-1~64bit (-1 64bit) my configuration is based on the vanilla configuration with only very minor changes. I'm at a loss as to how to debug further, but I'm pretty sure the mailer-app is never called. Is there some setting I'm missing or something obvious I'm not doing? My config: 1001.xml: <include> <user id="1001"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1001"/> <param name="vm-mailto" value="jason@xyz.com.au"/> <param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au"/> <!-- <param name="vm-message-ext" value="wav"/> --> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1001"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 1001"/> <variable name="effective_caller_id_number" value="1001"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include> and in switch.conf.xml I have the following set: <param name="mailer-app" value="/usr/sbin/sendmail"/> <param name="mailer-app-args" value="-t"/> I made a log at level 7 and put it on the pastebin: https://pastebin.freeswitch.org/23921 Jason Lewis http://emacstragic.net _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com 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 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com 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 -- Jason Lewis http://emacstragic.net _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com 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 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com 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 -- Jason Lewis http://emacstragic.net _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com 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 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com 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 -- Brian West brian@freeswitch.org Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378) iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com 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 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com 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
Although this is in the Mac OS X page I wrote this up which may help: https://freeswitch.org/confluence/display/FREESWITCH/Installation+and+Setup+... To test your email you can do this from a command line: printf "Subject: TestnHello" | sendmail -f you@domain.com you@domain.com Mareio G
On Jul 27, 2015, at 8:33 AM, Denis Jakovlev <yadenis@seznam.cz> wrote:
Hi,
Why do not use some simple script after the ends session?
For example simple bash script send_voicemail.sh
#!/bin/sh cd /usr/local/freeswitch/recordings/voicemail/ f=`find -name \*.wav` for file in $f do echo "Processing ${file}" CURRENT=$(date +%d.%m.%y_%H:%M:%S) datetime=$CURRENT echo $datetime sendemail -f voicemail@mail.com -t somemail@mail.com -m "Voicemail" -u "Voicemail od $datetime" -a ${file} -s smtp.mail.com -xu user -xp pass echo "BackUP ${file}" mv ${file} /usr/local/freeswitch/recordings/backup_voicemail/ done
And in dialplan start like this <action application="export" data="api_hangup_hook=system /usr/local/freeswitch/scripts/send_voicemail.sh"/>
-- S pozdravem, Ing.Denis Jakovlev mob.tel. 775-415-382
pondělí 27. července 2015, 17:11:10, napsal jste:
Why can.t you create your own script and use it to send vm over email? 27 июля 2015 г. 18:32 пользователь "Berthold Karl" <sendmeallyouroffers@googlemail.com <mailto:sendmeallyouroffers@googlemail.com>> написал: Hi,
my FS is calling the sendmail-command, but sendmail ends with an segfault. It seems like there is no email under /tmp/. Did your sendmail also ends in a segfault?
2015-02-24 16:51 GMT+01:00 Brian West <brian@freeswitch.org <mailto:brian@freeswitch.org>>: When you file the JIRA please attach your voicemail.conf.xml.
On Tue, Feb 24, 2015 at 8:21 AM, Sergey Safarov <s.safarov@gmail.com <mailto:s.safarov@gmail.com>> wrote: If you want to FS correctly processed parameters vm-mailfrom and email-from, write a request to https://freeswitch.org/jira/ <https://freeswitch.org/jira/>
On Tue, Feb 24, 2015 at 5:52 AM, Jason Lewis <jason@dickson.st <mailto:jason@dickson.st>> wrote: Thanks Sergey,
I had configured the domain variable to the fqdn of the machine. I eventually got it working though, I was missing two key lines from my user config: <param name="vm-email-all-messages" value="true"/> <param name="vm-attach-file" value="true" />
I'm not sure how I managed to miss those but anyway, that seems to have resolved things.
It seems as though vm-mailfrom is still being ignored though. Currently I have it set to:
<param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au" <mailto:vm@freeswitch.xyz.com.au>/>
but voicemails get delivered from:
1001@freeswitch.xyz.com.au <mailto:1001@freeswitch.xyz.com.au>
Is this worth investigating further?
Jason
Sergey Safarov wrote on 23/02/2015 5:05 PM: Try configure "domain" variable in vars.xml
<X-PRE-PROCESS cmd="set" data="domain=you_domain_name"/>
After it verify that user registered with domain name
freeswitch@internal> sofia status profile internal reg
Registrations: ================================================================================================= Call-ID: 1B26-2327-466848134BEBC9719CDE-002@SipHost User: 1201@you_domain_name Contact: "1201" <sip:1201@10.21.18.22:5060;fs_nat=yes;fs_path=sip%3A1201%4010.21.18.22%3A5060> Agent: 204 12-3868-2416-0.10.56.1-DS Status: Registered(UDP-NAT)(unknown) EXP(2015-02-23 06:05:22) EXPSECS(139) Ping-Status:Reachable Host: fs1.you_domain_name IP: 10.21.18.22 Port: 5060 Auth-User: 1201 Auth-Realm: you_domain_name MWI-Account:1201@you_domain_name
Sergey
On Mon, Feb 23, 2015 at 1:43 AM, Jason Lewis <jason@dickson.st <mailto:jason@dickson.st>> wrote: So I've managed to see some output from the sendmail program in the FS logs. It appears that my fs instance isn't correctly setting its domain?
the FS box has a fqdn, and I also set the domain parameter in the vars.xml file, but still the voicemail is sent with a from address of an IP address.
Any ideas?
Net::SMTP>>> Net::SMTP(2.33) Net::SMTP>>> Net::Cmd(2.30) Net::SMTP>>> Exporter(5.71) Net::SMTP>>> IO::Socket::INET(1.35) Net::SMTP>>> IO::Socket(1.37) Net::SMTP>>> IO::Handle(1.35) Net::SMTP=GLOB(0x23f7748)<<< 220 mb.xyz.com.au <http://mb.xyz.com.au/> ESMTP Postfix (Debian/GNU) Net::SMTP=GLOB(0x23f7748)>>> EHLO localhost.localdomain Net::SMTP=GLOB(0x23f7748)<<< 250-mb.bongalong.st <http://250-mb.bongalong.st/> Net::SMTP=GLOB(0x23f7748)<<< 250-PIPELINING Net::SMTP=GLOB(0x23f7748)<<< 250-SIZE 10240000 Net::SMTP=GLOB(0x23f7748)<<< 250-VRFY Net::SMTP=GLOB(0x23f7748)<<< 250-ETRN Net::SMTP=GLOB(0x23f7748)<<< 250-STARTTLS Net::SMTP=GLOB(0x23f7748)<<< 250-ENHANCEDSTATUSCODES Net::SMTP=GLOB(0x23f7748)<<< 250-8BITMIME Net::SMTP=GLOB(0x23f7748)<<< 250 DSN Net::SMTP=GLOB(0x23f7748)>>> MAIL FROM:<1002@192.168.1.3> <mailto:1002@192.168.1.3> Net::SMTP=GLOB(0x23f7748)<<< 501 5.1.7 Bad sender address syntax Net::SMTP=GLOB(0x23f7748)>>> RCPT TO:<jason@xyz.com.au> <mailto:jason@xyz.com.au> Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need MAIL command Net::SMTP=GLOB(0x23f7748)>>> DATA Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need RCPT command Net::SMTP=GLOB(0x23f7748)>>> QUIT Net::SMTP=GLOB(0x23f7748)<<< 221 2.0.0 Bye 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 3 (loopback/voicemail-a) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-a [CS_DESTROY] 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 4 (loopback/voicemail-b) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-b [CS_DESTROY]
On 20/02/2015 7:10 pm, Sergey Safarov wrote: You mailer is not understand "mailer-app-args" has been configured in "switch.conf.xml" Remove extra arg or add required
пт, 20 февр. 2015, 7:49, Jason Lewis <jason@dickson.st <mailto:jason@dickson.st>>: Hi,
I've been trying to make freeswitch email voicemails but as far as I can tell, it never even calls sendmail.
I have setting mailer-app to "sendmail" and "/usr/sbin/sendmail" to no avail. I can successfully send an email from the commandline using sendmail. (sendmail in this case is provided by postfix)
I see no emails in the postfix mail logs when I leave a voicemail message.
I also tried creating a shell just to see if it even gets called from fs, but it does not get called when a voicemail is deposited: #!/bin/bash echo $(date --rfc-3339=ns): $* >> /tmp/freeswitchsendmail.log
After every change, I have run reloadxml and reload mod_voicemail. I have also tried restarting freeswitch.
I am running the debian packages of FreeSWITCH Version 1.4.15-1~64bit (-1 64bit)
my configuration is based on the vanilla configuration with only very minor changes.
I'm at a loss as to how to debug further, but I'm pretty sure the mailer-app is never called. Is there some setting I'm missing or something obvious I'm not doing?
My config: 1001.xml: <include> <user id="1001"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1001"/> <param name="vm-mailto" value="jason@xyz.com.au <mailto:jason@xyz.com.au>"/> <param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au <mailto:vm@freeswitch.xyz.com.au>"/> <!-- <param name="vm-message-ext" value="wav"/> --> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1001"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 1001"/> <variable name="effective_caller_id_number" value="1001"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
and in switch.conf.xml I have the following set:
<param name="mailer-app" value="/usr/sbin/sendmail"/> <param name="mailer-app-args" value="-t"/>
I made a log at level 7 and put it on the pastebin:
https://pastebin.freeswitch.org/23921 <https://pastebin.freeswitch.org/23921>
Jason Lewis http://emacstragic.net <http://emacstragic.net/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
-- Jason Lewis http://emacstragic.net <http://emacstragic.net/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
-- Jason Lewis http://emacstragic.net <http://emacstragic.net/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
-- Brian West brian@freeswitch.org <mailto:brian@freeswitch.org> Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com <http://www.freeswitchbook.com/> http://www.freeswitchcookbook.com <http://www.freeswitchcookbook.com/> T:+19184209001 <tel:%2B19184209001> | F:+19184209002 <tel:%2B19184209002> | M:+1918424WEST (9378) iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
Thanks for the replies! I've tested sendmail, it works for the user which is running freeswitch. I'am running FS 1.4.8 under Debian. I want to use the FS internal VM-to-E-Mail because all informations about To-, From- etc are configured in the user.xml. If I'am running my own script, I have to setup everything in a second configuration or have to parse the user.xml a second time.. Thx Dennis for the Sample script, Any ideas? I've tested sendmail with few arguments... everytime its ends with a segfault... It seems FS isn't creating the Mail under /tmp/. /tmp is World writable/readable. Regards 2015-07-27 19:01 GMT+02:00 Mario <mario_fs@mgtech.com>:
Although this is in the Mac OS X page I wrote this up which may help: https://freeswitch.org/confluence/display/FREESWITCH/Installation+and+Setup+...
To test your email you can do this from a command line: printf "Subject: TestnHello" | sendmail -f you@domain.com you@domain.com Mareio G
On Jul 27, 2015, at 8:33 AM, Denis Jakovlev <yadenis@seznam.cz> wrote:
Hi,
Why do not use some simple script after the ends session?
For example simple bash script send_voicemail.sh
#!/bin/sh cd /usr/local/freeswitch/recordings/voicemail/ f=`find -name \*.wav` for file in $f do echo "Processing ${file}" CURRENT=$(date +%d.%m.%y_%H:%M:%S) datetime=$CURRENT echo $datetime sendemail -f voicemail@mail.com -t somemail@mail.com -m "Voicemail" -u "Voicemail od $datetime" -a ${file} -s smtp.mail.com -xu user -xp pass echo "BackUP ${file}" mv ${file} /usr/local/freeswitch/recordings/backup_voicemail/ done
And in dialplan start like this <action application="export" data="api_hangup_hook=system /usr/local/freeswitch/scripts/send_voicemail.sh"/>
*-- S pozdravem, Ing.Denis Jakovlev mob.tel <http://mob.tel>. 775-415-382 pondělí 27. července 2015, 17:11:10, napsal jste: *
Why can.t you create your own script and use it to send vm over email? 27 июля 2015 г. 18:32 пользователь "Berthold Karl" < sendmeallyouroffers@googlemail.com> написал: Hi,
my FS is calling the sendmail-command, but sendmail ends with an segfault. It seems like there is no email under /tmp/. Did your sendmail also ends in a segfault?
2015-02-24 16:51 GMT+01:00 Brian West <brian@freeswitch.org>: When you file the JIRA please attach your voicemail.conf.xml.
On Tue, Feb 24, 2015 at 8:21 AM, Sergey Safarov <s.safarov@gmail.com> wrote: If you want to FS correctly processed parameters vm-mailfrom and email-from, write a request to https://freeswitch.org/jira/
On Tue, Feb 24, 2015 at 5:52 AM, Jason Lewis <jason@dickson.st> wrote: Thanks Sergey,
I had configured the domain variable to the fqdn of the machine. I eventually got it working though, I was missing two key lines from my user config: <param name="vm-email-all-messages" value="true"/> <param name="vm-attach-file" value="true" />
I'm not sure how I managed to miss those but anyway, that seems to have resolved things.
It seems as though vm-mailfrom is still being ignored though. Currently I have it set to:
<param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au" <vm@freeswitch.xyz.com.au>/>
but voicemails get delivered from:
1001@freeswitch.xyz.com.au
Is this worth investigating further?
Jason
Sergey Safarov wrote on 23/02/2015 5:05 PM: Try configure "domain" variable in vars.xml
<X-PRE-PROCESS cmd="set" data="domain=you_domain_name"/>
After it verify that user registered with domain name
freeswitch@internal> sofia status profile internal reg
Registrations:
================================================================================================= Call-ID: 1B26-2327-466848134BEBC9719CDE-002@SipHost User: 1201@you_domain_name Contact: "1201" < sip:1201@10.21.18.22:5060;fs_nat=yes;fs_path=sip%3A1201%4010.21.18.22%3A5060
Agent: 204 12-3868-2416-0.10.56.1-DS Status: Registered(UDP-NAT)(unknown) EXP(2015-02-23 06:05:22) EXPSECS(139) Ping-Status:Reachable Host: fs1.you_domain_name IP: 10.21.18.22 Port: 5060 Auth-User: 1201 Auth-Realm: you_domain_name MWI-Account:1201@you_domain_name
Sergey
On Mon, Feb 23, 2015 at 1:43 AM, Jason Lewis <jason@dickson.st
wrote:
So I've managed to see some output from the sendmail program in the FS logs. It appears that my fs instance isn't correctly setting its domain?
the FS box has a fqdn, and I also set the domain parameter in the vars.xml file, but still the voicemail is sent with a from address of an IP address.
Any ideas?
Net::SMTP>>> Net::SMTP(2.33) Net::SMTP>>> Net::Cmd(2.30) Net::SMTP>>> Exporter(5.71) Net::SMTP>>> IO::Socket::INET(1.35) Net::SMTP>>> IO::Socket(1.37) Net::SMTP>>> IO::Handle(1.35) Net::SMTP=GLOB(0x23f7748)<<< 220 mb.xyz.com.au ESMTP Postfix (Debian/GNU) Net::SMTP=GLOB(0x23f7748)>>> EHLO localhost.localdomain Net::SMTP=GLOB(0x23f7748)<<< 250-mb.bongalong.st
Net::SMTP=GLOB(0x23f7748)<<< 250-PIPELINING Net::SMTP=GLOB(0x23f7748)<<< 250-SIZE 10240000 Net::SMTP=GLOB(0x23f7748)<<< 250-VRFY Net::SMTP=GLOB(0x23f7748)<<< 250-ETRN Net::SMTP=GLOB(0x23f7748)<<< 250-STARTTLS Net::SMTP=GLOB(0x23f7748)<<< 250-ENHANCEDSTATUSCODES Net::SMTP=GLOB(0x23f7748)<<< 250-8BITMIME Net::SMTP=GLOB(0x23f7748)<<< 250 DSN Net::SMTP=GLOB(0x23f7748)>>> MAIL FROM:<1002@192.168.1.3> <1002@192.168.1.3> Net::SMTP=GLOB(0x23f7748)<<< 501 5.1.7 Bad sender address syntax Net::SMTP=GLOB(0x23f7748)>>> RCPT TO:<jason@xyz.com.au> <jason@xyz.com.au> Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need MAIL command Net::SMTP=GLOB(0x23f7748)>>> DATA Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need RCPT command Net::SMTP=GLOB(0x23f7748)>>> QUIT Net::SMTP=GLOB(0x23f7748)<<< 221 2.0.0 Bye 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 3 (loopback/voicemail-a) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-a [CS_DESTROY] 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 4 (loopback/voicemail-b) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-b [CS_DESTROY]
On 20/02/2015 7:10 pm, Sergey Safarov wrote: You mailer is not understand "mailer-app-args" has been configured in "switch.conf.xml" Remove extra arg or add required
пт, 20 февр. 2015, 7:49, Jason Lewis <jason@dickson.st>: Hi,
I've been trying to make freeswitch email voicemails but as far as I can tell, it never even calls sendmail.
I have setting mailer-app to "sendmail" and "/usr/sbin/sendmail" to no avail. I can successfully send an email from the commandline using sendmail. (sendmail in this case is provided by postfix)
I see no emails in the postfix mail logs when I leave a voicemail message.
I also tried creating a shell just to see if it even gets called from fs, but it does not get called when a voicemail is deposited: #!/bin/bash echo $(date --rfc-3339=ns): $* >> /tmp/freeswitchsendmail.log
After every change, I have run reloadxml and reload mod_voicemail. I have also tried restarting freeswitch.
I am running the debian packages of FreeSWITCH Version 1.4.15-1~64bit (-1 64bit)
my configuration is based on the vanilla configuration with only very minor changes.
I'm at a loss as to how to debug further, but I'm pretty sure the mailer-app is never called. Is there some setting I'm missing or something obvious I'm not doing?
My config: 1001.xml: <include> <user id="1001"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1001"/> <param name="vm-mailto" value="jason@xyz.com.au"/> <param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au"/> <!-- <param name="vm-message-ext" value="wav"/> --> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1001"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 1001"/> <variable name="effective_caller_id_number" value="1001"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
and in switch.conf.xml I have the following set:
<param name="mailer-app" value="/usr/sbin/sendmail"/> <param name="mailer-app-args" value="-t"/>
I made a log at level 7 and put it on the pastebin:
https://pastebin.freeswitch.org/23921
Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
--
*Brian West *brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest *http://www.freeswitchbook.com http://www.freeswitchcookbook.com *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
Hi, so I wrote a hangup hook script... I'am not able to get sendmail running with freeswitch. I wrote a perl script which is called as hangup_hook. Thanks to $env, its serves all the informations I needed. After some testings and playing with hangup_hook I've added some more features. Only one Problem left. How can I tell FS, thats MWI is not needed. Regards 2015-07-28 9:19 GMT+02:00 Berthold Karl <sendmeallyouroffers@googlemail.com> :
Thanks for the replies!
I've tested sendmail, it works for the user which is running freeswitch.
I'am running FS 1.4.8 under Debian.
I want to use the FS internal VM-to-E-Mail because all informations about To-, From- etc are configured in the user.xml. If I'am running my own script, I have to setup everything in a second configuration or have to parse the user.xml a second time..
Thx Dennis for the Sample script,
Any ideas? I've tested sendmail with few arguments... everytime its ends with a segfault... It seems FS isn't creating the Mail under /tmp/. /tmp is World writable/readable.
Regards
2015-07-27 19:01 GMT+02:00 Mario <mario_fs@mgtech.com>:
Although this is in the Mac OS X page I wrote this up which may help: https://freeswitch.org/confluence/display/FREESWITCH/Installation+and+Setup+...
To test your email you can do this from a command line: printf "Subject: TestnHello" | sendmail -f you@domain.com you@domain.com Mareio G
On Jul 27, 2015, at 8:33 AM, Denis Jakovlev <yadenis@seznam.cz> wrote:
Hi,
Why do not use some simple script after the ends session?
For example simple bash script send_voicemail.sh
#!/bin/sh cd /usr/local/freeswitch/recordings/voicemail/ f=`find -name \*.wav` for file in $f do echo "Processing ${file}" CURRENT=$(date +%d.%m.%y_%H:%M:%S) datetime=$CURRENT echo $datetime sendemail -f voicemail@mail.com -t somemail@mail.com -m "Voicemail" -u "Voicemail od $datetime" -a ${file} -s smtp.mail.com -xu user -xp pass echo "BackUP ${file}" mv ${file} /usr/local/freeswitch/recordings/backup_voicemail/ done
And in dialplan start like this <action application="export" data="api_hangup_hook=system /usr/local/freeswitch/scripts/send_voicemail.sh"/>
*-- S pozdravem, Ing.Denis Jakovlev mob.tel <http://mob.tel>. 775-415-382 pondělí 27. července 2015, 17:11:10, napsal jste: *
Why can.t you create your own script and use it to send vm over email? 27 июля 2015 г. 18:32 пользователь "Berthold Karl" < sendmeallyouroffers@googlemail.com> написал: Hi,
my FS is calling the sendmail-command, but sendmail ends with an segfault. It seems like there is no email under /tmp/. Did your sendmail also ends in a segfault?
2015-02-24 16:51 GMT+01:00 Brian West <brian@freeswitch.org>: When you file the JIRA please attach your voicemail.conf.xml.
On Tue, Feb 24, 2015 at 8:21 AM, Sergey Safarov <s.safarov@gmail.com> wrote: If you want to FS correctly processed parameters vm-mailfrom and email-from, write a request to https://freeswitch.org/jira/
On Tue, Feb 24, 2015 at 5:52 AM, Jason Lewis <jason@dickson.st> wrote: Thanks Sergey,
I had configured the domain variable to the fqdn of the machine. I eventually got it working though, I was missing two key lines from my user config: <param name="vm-email-all-messages" value="true"/> <param name="vm-attach-file" value="true" />
I'm not sure how I managed to miss those but anyway, that seems to have resolved things.
It seems as though vm-mailfrom is still being ignored though. Currently I have it set to:
<param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au" <vm@freeswitch.xyz.com.au>/>
but voicemails get delivered from:
1001@freeswitch.xyz.com.au
Is this worth investigating further?
Jason
Sergey Safarov wrote on 23/02/2015 5:05 PM: Try configure "domain" variable in vars.xml
<X-PRE-PROCESS cmd="set" data="domain=you_domain_name"/>
After it verify that user registered with domain name
freeswitch@internal> sofia status profile internal reg
Registrations:
================================================================================================= Call-ID: 1B26-2327-466848134BEBC9719CDE-002@SipHost User: 1201@you_domain_name Contact: "1201" < sip:1201@10.21.18.22:5060;fs_nat=yes;fs_path=sip%3A1201%4010.21.18.22%3A5060
Agent: 204 12-3868-2416-0.10.56.1-DS Status: Registered(UDP-NAT)(unknown) EXP(2015-02-23 06:05:22) EXPSECS(139) Ping-Status:Reachable Host: fs1.you_domain_name IP: 10.21.18.22 Port: 5060 Auth-User: 1201 Auth-Realm: you_domain_name MWI-Account:1201@you_domain_name
Sergey
On Mon, Feb 23, 2015 at 1:43 AM, Jason Lewis <jason@dickson.st
wrote:
So I've managed to see some output from the sendmail program in the FS logs. It appears that my fs instance isn't correctly setting its domain?
the FS box has a fqdn, and I also set the domain parameter in the vars.xml file, but still the voicemail is sent with a from address of an IP address.
Any ideas?
Net::SMTP>>> Net::SMTP(2.33) Net::SMTP>>> Net::Cmd(2.30) Net::SMTP>>> Exporter(5.71) Net::SMTP>>> IO::Socket::INET(1.35) Net::SMTP>>> IO::Socket(1.37) Net::SMTP>>> IO::Handle(1.35) Net::SMTP=GLOB(0x23f7748)<<< 220 mb.xyz.com.au ESMTP Postfix (Debian/GNU) Net::SMTP=GLOB(0x23f7748)>>> EHLO localhost.localdomain Net::SMTP=GLOB(0x23f7748)<<< 250-mb.bongalong.st
Net::SMTP=GLOB(0x23f7748)<<< 250-PIPELINING Net::SMTP=GLOB(0x23f7748)<<< 250-SIZE 10240000 Net::SMTP=GLOB(0x23f7748)<<< 250-VRFY Net::SMTP=GLOB(0x23f7748)<<< 250-ETRN Net::SMTP=GLOB(0x23f7748)<<< 250-STARTTLS Net::SMTP=GLOB(0x23f7748)<<< 250-ENHANCEDSTATUSCODES Net::SMTP=GLOB(0x23f7748)<<< 250-8BITMIME Net::SMTP=GLOB(0x23f7748)<<< 250 DSN Net::SMTP=GLOB(0x23f7748)>>> MAIL FROM:<1002@192.168.1.3> <1002@192.168.1.3> Net::SMTP=GLOB(0x23f7748)<<< 501 5.1.7 Bad sender address syntax Net::SMTP=GLOB(0x23f7748)>>> RCPT TO:<jason@xyz.com.au> <jason@xyz.com.au> Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need MAIL command Net::SMTP=GLOB(0x23f7748)>>> DATA Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need RCPT command Net::SMTP=GLOB(0x23f7748)>>> QUIT Net::SMTP=GLOB(0x23f7748)<<< 221 2.0.0 Bye 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 3 (loopback/voicemail-a) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-a [CS_DESTROY] 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 4 (loopback/voicemail-b) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-b [CS_DESTROY]
On 20/02/2015 7:10 pm, Sergey Safarov wrote: You mailer is not understand "mailer-app-args" has been configured in "switch.conf.xml" Remove extra arg or add required
пт, 20 февр. 2015, 7:49, Jason Lewis <jason@dickson.st>: Hi,
I've been trying to make freeswitch email voicemails but as far as I can tell, it never even calls sendmail.
I have setting mailer-app to "sendmail" and "/usr/sbin/sendmail" to no avail. I can successfully send an email from the commandline using sendmail. (sendmail in this case is provided by postfix)
I see no emails in the postfix mail logs when I leave a voicemail message.
I also tried creating a shell just to see if it even gets called from fs, but it does not get called when a voicemail is deposited: #!/bin/bash echo $(date --rfc-3339=ns): $* >> /tmp/freeswitchsendmail.log
After every change, I have run reloadxml and reload mod_voicemail. I have also tried restarting freeswitch.
I am running the debian packages of FreeSWITCH Version 1.4.15-1~64bit (-1 64bit)
my configuration is based on the vanilla configuration with only very minor changes.
I'm at a loss as to how to debug further, but I'm pretty sure the mailer-app is never called. Is there some setting I'm missing or something obvious I'm not doing?
My config: 1001.xml: <include> <user id="1001"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1001"/> <param name="vm-mailto" value="jason@xyz.com.au"/> <param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au"/> <!-- <param name="vm-message-ext" value="wav"/> --> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1001"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 1001"/> <variable name="effective_caller_id_number" value="1001"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
and in switch.conf.xml I have the following set:
<param name="mailer-app" value="/usr/sbin/sendmail"/> <param name="mailer-app-args" value="-t"/>
I made a log at level 7 and put it on the pastebin:
https://pastebin.freeswitch.org/23921
Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
--
*Brian West *brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest *http://www.freeswitchbook.com http://www.freeswitchcookbook.com *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
Hi, can't find Informations about how to disable the MWI. So I've build a workaournd. When a voicemail is left, the script sends the recording to the user and than deletes the voicemail via API. The api command vm_delete deletes the Recording and also the MWI :) $api->executeString("vm_delete $voicemail_user\@$voicemail_domain $uuid"); perl hangup_hook is real fun. :) Regards 2015-07-28 10:40 GMT+02:00 Berthold Karl <sendmeallyouroffers@googlemail.com
:
Hi,
so I wrote a hangup hook script... I'am not able to get sendmail running with freeswitch.
I wrote a perl script which is called as hangup_hook. Thanks to $env, its serves all the informations I needed. After some testings and playing with hangup_hook I've added some more features.
Only one Problem left. How can I tell FS, thats MWI is not needed.
Regards
2015-07-28 9:19 GMT+02:00 Berthold Karl < sendmeallyouroffers@googlemail.com>:
Thanks for the replies!
I've tested sendmail, it works for the user which is running freeswitch.
I'am running FS 1.4.8 under Debian.
I want to use the FS internal VM-to-E-Mail because all informations about To-, From- etc are configured in the user.xml. If I'am running my own script, I have to setup everything in a second configuration or have to parse the user.xml a second time..
Thx Dennis for the Sample script,
Any ideas? I've tested sendmail with few arguments... everytime its ends with a segfault... It seems FS isn't creating the Mail under /tmp/. /tmp is World writable/readable.
Regards
2015-07-27 19:01 GMT+02:00 Mario <mario_fs@mgtech.com>:
Although this is in the Mac OS X page I wrote this up which may help: https://freeswitch.org/confluence/display/FREESWITCH/Installation+and+Setup+...
To test your email you can do this from a command line: printf "Subject: TestnHello" | sendmail -f you@domain.com you@domain.com Mareio G
On Jul 27, 2015, at 8:33 AM, Denis Jakovlev <yadenis@seznam.cz> wrote:
Hi,
Why do not use some simple script after the ends session?
For example simple bash script send_voicemail.sh
#!/bin/sh cd /usr/local/freeswitch/recordings/voicemail/ f=`find -name \*.wav` for file in $f do echo "Processing ${file}" CURRENT=$(date +%d.%m.%y_%H:%M:%S) datetime=$CURRENT echo $datetime sendemail -f voicemail@mail.com -t somemail@mail.com -m "Voicemail" -u "Voicemail od $datetime" -a ${file} -s smtp.mail.com -xu user -xp pass echo "BackUP ${file}" mv ${file} /usr/local/freeswitch/recordings/backup_voicemail/ done
And in dialplan start like this <action application="export" data="api_hangup_hook=system /usr/local/freeswitch/scripts/send_voicemail.sh"/>
*-- S pozdravem, Ing.Denis Jakovlev mob.tel <http://mob.tel>. 775-415-382 pondělí 27. července 2015, 17:11:10, napsal jste: *
Why can.t you create your own script and use it to send vm over email? 27 июля 2015 г. 18:32 пользователь "Berthold Karl" < sendmeallyouroffers@googlemail.com> написал: Hi,
my FS is calling the sendmail-command, but sendmail ends with an segfault. It seems like there is no email under /tmp/. Did your sendmail also ends in a segfault?
2015-02-24 16:51 GMT+01:00 Brian West <brian@freeswitch.org>: When you file the JIRA please attach your voicemail.conf.xml.
On Tue, Feb 24, 2015 at 8:21 AM, Sergey Safarov <s.safarov@gmail.com> wrote: If you want to FS correctly processed parameters vm-mailfrom and email-from, write a request to https://freeswitch.org/jira/
On Tue, Feb 24, 2015 at 5:52 AM, Jason Lewis <jason@dickson.st> wrote: Thanks Sergey,
I had configured the domain variable to the fqdn of the machine. I eventually got it working though, I was missing two key lines from my user config: <param name="vm-email-all-messages" value="true"/> <param name="vm-attach-file" value="true" />
I'm not sure how I managed to miss those but anyway, that seems to have resolved things.
It seems as though vm-mailfrom is still being ignored though. Currently I have it set to:
<param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au" <vm@freeswitch.xyz.com.au>/>
but voicemails get delivered from:
1001@freeswitch.xyz.com.au
Is this worth investigating further?
Jason
Sergey Safarov wrote on 23/02/2015 5:05 PM: Try configure "domain" variable in vars.xml
<X-PRE-PROCESS cmd="set" data="domain=you_domain_name"/>
After it verify that user registered with domain name
freeswitch@internal> sofia status profile internal reg
Registrations:
================================================================================================= Call-ID: 1B26-2327-466848134BEBC9719CDE-002@SipHost User: 1201@you_domain_name Contact: "1201" < sip:1201@10.21.18.22:5060;fs_nat=yes;fs_path=sip%3A1201%4010.21.18.22%3A5060
Agent: 204 12-3868-2416-0.10.56.1-DS Status: Registered(UDP-NAT)(unknown) EXP(2015-02-23 06:05:22) EXPSECS(139) Ping-Status:Reachable Host: fs1.you_domain_name IP: 10.21.18.22 Port: 5060 Auth-User: 1201 Auth-Realm: you_domain_name MWI-Account:1201@you_domain_name
Sergey
On Mon, Feb 23, 2015 at 1:43 AM, Jason Lewis <jason@dickson.st
wrote:
So I've managed to see some output from the sendmail program in the FS logs. It appears that my fs instance isn't correctly setting its domain?
the FS box has a fqdn, and I also set the domain parameter in the vars.xml file, but still the voicemail is sent with a from address of an IP address.
Any ideas?
Net::SMTP>>> Net::SMTP(2.33) Net::SMTP>>> Net::Cmd(2.30) Net::SMTP>>> Exporter(5.71) Net::SMTP>>> IO::Socket::INET(1.35) Net::SMTP>>> IO::Socket(1.37) Net::SMTP>>> IO::Handle(1.35) Net::SMTP=GLOB(0x23f7748)<<< 220 mb.xyz.com.au ESMTP Postfix (Debian/GNU) Net::SMTP=GLOB(0x23f7748)>>> EHLO localhost.localdomain Net::SMTP=GLOB(0x23f7748)<<< 250-mb.bongalong.st
Net::SMTP=GLOB(0x23f7748)<<< 250-PIPELINING Net::SMTP=GLOB(0x23f7748)<<< 250-SIZE 10240000 Net::SMTP=GLOB(0x23f7748)<<< 250-VRFY Net::SMTP=GLOB(0x23f7748)<<< 250-ETRN Net::SMTP=GLOB(0x23f7748)<<< 250-STARTTLS Net::SMTP=GLOB(0x23f7748)<<< 250-ENHANCEDSTATUSCODES Net::SMTP=GLOB(0x23f7748)<<< 250-8BITMIME Net::SMTP=GLOB(0x23f7748)<<< 250 DSN Net::SMTP=GLOB(0x23f7748)>>> MAIL FROM:<1002@192.168.1.3> <1002@192.168.1.3> Net::SMTP=GLOB(0x23f7748)<<< 501 5.1.7 Bad sender address syntax Net::SMTP=GLOB(0x23f7748)>>> RCPT TO:<jason@xyz.com.au> <jason@xyz.com.au> Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need MAIL command Net::SMTP=GLOB(0x23f7748)>>> DATA Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error: need RCPT command Net::SMTP=GLOB(0x23f7748)>>> QUIT Net::SMTP=GLOB(0x23f7748)<<< 221 2.0.0 Bye 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 3 (loopback/voicemail-a) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-a [CS_DESTROY] 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1633 Session 4 (loopback/voicemail-b) Ended 2015-02-22 11:08:14.145852 [NOTICE] switch_core_session.c:1637 Close Channel loopback/voicemail-b [CS_DESTROY]
On 20/02/2015 7:10 pm, Sergey Safarov wrote: You mailer is not understand "mailer-app-args" has been configured in "switch.conf.xml" Remove extra arg or add required
пт, 20 февр. 2015, 7:49, Jason Lewis <jason@dickson.st>: Hi,
I've been trying to make freeswitch email voicemails but as far as I can tell, it never even calls sendmail.
I have setting mailer-app to "sendmail" and "/usr/sbin/sendmail" to no avail. I can successfully send an email from the commandline using sendmail. (sendmail in this case is provided by postfix)
I see no emails in the postfix mail logs when I leave a voicemail message.
I also tried creating a shell just to see if it even gets called from fs, but it does not get called when a voicemail is deposited: #!/bin/bash echo $(date --rfc-3339=ns): $* >> /tmp/freeswitchsendmail.log
After every change, I have run reloadxml and reload mod_voicemail. I have also tried restarting freeswitch.
I am running the debian packages of FreeSWITCH Version 1.4.15-1~64bit (-1 64bit)
my configuration is based on the vanilla configuration with only very minor changes.
I'm at a loss as to how to debug further, but I'm pretty sure the mailer-app is never called. Is there some setting I'm missing or something obvious I'm not doing?
My config: 1001.xml: <include> <user id="1001"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1001"/> <param name="vm-mailto" value="jason@xyz.com.au"/> <param name="vm-mailfrom" value="vm@freeswitch.xyz.com.au"/> <!-- <param name="vm-message-ext" value="wav"/> --> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1001"/> <variable name="user_context" value="default"/> <variable name="effective_caller_id_name" value="Extension 1001"/> <variable name="effective_caller_id_number" value="1001"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
and in switch.conf.xml I have the following set:
<param name="mailer-app" value="/usr/sbin/sendmail"/> <param name="mailer-app-args" value="-t"/>
I made a log at level 7 and put it on the pastebin:
https://pastebin.freeswitch.org/23921
Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- Jason Lewis http://emacstragic.net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
--
*Brian West *brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest *http://www.freeswitchbook.com http://www.freeswitchcookbook.com *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
participants (7)
-
Berthold Karl
-
Brian West
-
Denis Jakovlev
-
Jason Lewis
-
Kamil Nigmatullin
-
Mario
-
Sergey Safarov