[Freeswitch-users] freeswitch never seems to call sendmail when trying to email voicemails

Jason Lewis jason at dickson.st
Mon Feb 23 01:43:04 MSK 2015


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 at 192.168.1.3>
Net::SMTP=GLOB(0x23f7748)<<< 501 5.1.7 Bad sender address syntax
Net::SMTP=GLOB(0x23f7748)>>> RCPT TO:<jason at 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 at dickson.st
> <mailto:jason at 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 at xyz.com.au
>     <mailto:jason at xyz.com.au>"/>
>           <param name="vm-mailfrom" value="vm at freeswitch.xyz.com.au
>     <mailto:vm at 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 at freeswitch.org <mailto:consulting at 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 at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at 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 at 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 at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150223/ce77cc7d/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150223/ce77cc7d/attachment-0001.bin 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list