<div dir="ltr">Hi,<div><br></div><div>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?</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-24 16:51 GMT+01:00 Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">When you file the JIRA please attach your voicemail.conf.xml.</div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Tue, Feb 24, 2015 at 8:21 AM, Sergey Safarov <span dir="ltr"><<a href="mailto:s.safarov@gmail.com" target="_blank">s.safarov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If you want to FS correctly processed parameters vm-mailfrom and email-from, write a request to <a href="https://freeswitch.org/jira/" target="_blank">https://freeswitch.org/jira/</a></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 24, 2015 at 5:52 AM, Jason Lewis <span dir="ltr"><<a href="mailto:jason@dickson.st" target="_blank">jason@dickson.st</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="background-color:rgb(255,255,255);color:rgb(0,0,0)" bgcolor="#FFFFFF" text="#000000">
Thanks Sergey,<br>
<br>
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: <br>
<param name="vm-email-all-messages" value="true"/><br>
<param name="vm-attach-file" value="true" /><br>
<br>
I'm not sure how I managed to miss those but anyway, that seems to
have resolved things.<br>
<br>
It seems as though vm-mailfrom is still being ignored though.
Currently I have it set to:<span><br>
<br>
<param name="vm-mailfrom"
value=<a href="mailto:vm@freeswitch.xyz.com.au" target="_blank">"vm@freeswitch.xyz.com.au"</a>/><br>
<br></span>
but voicemails get delivered from:<br>
<br>
<a href="mailto:1001@freeswitch.xyz.com.au" target="_blank">1001@freeswitch.xyz.com.au</a><br>
<br>
Is this worth investigating further?<br>
<br>
Jason<br>
<br>
<div>Sergey Safarov wrote on 23/02/2015 5:05
PM:<br>
</div><div><div>
<blockquote type="cite">
<div dir="ltr">Try configure "domain" variable in vars.xml
<div><br>
</div>
<div><X-PRE-PROCESS cmd="set"
data="domain=you_domain_name"/><br>
</div>
<div><br>
</div>
<div>After it verify that user registered with domain name</div>
<div><br>
</div>
<div>freeswitch@internal> sofia status profile internal reg<br>
</div>
<div>
<div><br>
</div>
<div>Registrations:</div>
<div>=================================================================================================</div>
<div>Call-ID: <span style="white-space:pre-wrap"> </span>1B26-2327-466848134BEBC9719CDE-002@SipHost</div>
<div>User: <span style="white-space:pre-wrap"> </span>1201@you_domain_name</div>
<div>Contact: <span style="white-space:pre-wrap"> </span>"1201"
<a><sip:1201@10.21.18.22:5060;fs_nat=yes;fs_path=sip%3A1201%4010.21.18.22%3A5060></a></div>
<div>Agent: <span style="white-space:pre-wrap"> </span>204
12-3868-2416-0.10.56.1-DS</div>
<div>Status: <span style="white-space:pre-wrap"> </span>Registered(UDP-NAT)(unknown)
EXP(2015-02-23 06:05:22) EXPSECS(139)</div>
<div>Ping-Status:<span style="white-space:pre-wrap"> </span>Reachable</div>
<div>Host: <span style="white-space:pre-wrap"> </span>fs1.you_domain_name</div>
<div>IP: <span style="white-space:pre-wrap"> </span>10.21.18.22</div>
<div>Port: <span style="white-space:pre-wrap"> </span>5060</div>
<div>Auth-User: <span style="white-space:pre-wrap"> </span>1201</div>
<div>Auth-Realm: <span style="white-space:pre-wrap"> </span>you_domain_name</div>
<div>MWI-Account:<span style="white-space:pre-wrap"> </span>1201@you_domain_name</div>
</div>
<div><br>
</div>
<div>Sergey</div>
<div><br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Feb 23, 2015 at 1:43 AM,
Jason Lewis <span dir="ltr"><<a href="mailto:jason@dickson.st" target="_blank">jason@dickson.st</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>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?<br>
<br>
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.<br>
<br>
Any ideas?<br>
<br>
Net::SMTP>>> Net::SMTP(2.33)<br>
Net::SMTP>>> Net::Cmd(2.30)<br>
Net::SMTP>>> Exporter(5.71)<br>
Net::SMTP>>> IO::Socket::INET(1.35)<br>
Net::SMTP>>> IO::Socket(1.37)<br>
Net::SMTP>>> IO::Handle(1.35)<br>
Net::SMTP=GLOB(0x23f7748)<<< 220 <a href="http://mb.xyz.com.au" target="_blank">mb.xyz.com.au</a> ESMTP Postfix
(Debian/GNU)<br>
Net::SMTP=GLOB(0x23f7748)>>> EHLO
localhost.localdomain<br>
Net::SMTP=GLOB(0x23f7748)<<< <a href="http://250-mb.bongalong.st" target="_blank">250-mb.bongalong.st</a><br>
Net::SMTP=GLOB(0x23f7748)<<< 250-PIPELINING<br>
Net::SMTP=GLOB(0x23f7748)<<< 250-SIZE
10240000<br>
Net::SMTP=GLOB(0x23f7748)<<< 250-VRFY<br>
Net::SMTP=GLOB(0x23f7748)<<< 250-ETRN<br>
Net::SMTP=GLOB(0x23f7748)<<< 250-STARTTLS<br>
Net::SMTP=GLOB(0x23f7748)<<<
250-ENHANCEDSTATUSCODES<br>
Net::SMTP=GLOB(0x23f7748)<<< 250-8BITMIME<br>
Net::SMTP=GLOB(0x23f7748)<<< 250 DSN<span><br>
Net::SMTP=GLOB(0x23f7748)>>> MAIL FROM:<a href="mailto:1002@192.168.1.3" target="_blank"><1002@192.168.1.3></a><br>
Net::SMTP=GLOB(0x23f7748)<<< 501 5.1.7 Bad
sender address syntax<br>
</span> Net::SMTP=GLOB(0x23f7748)>>> RCPT TO:<a href="mailto:jason@xyz.com.au" target="_blank"><jason@xyz.com.au></a><br>
Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error:
need MAIL command<br>
Net::SMTP=GLOB(0x23f7748)>>> DATA<br>
Net::SMTP=GLOB(0x23f7748)<<< 503 5.5.1 Error:
need RCPT command<br>
Net::SMTP=GLOB(0x23f7748)>>> QUIT<br>
Net::SMTP=GLOB(0x23f7748)<<< 221 2.0.0 Bye<br>
2015-02-22 11:08:14.145852 [NOTICE]
switch_core_session.c:1633 Session 3
(loopback/voicemail-a) Ended<br>
2015-02-22 11:08:14.145852 [NOTICE]
switch_core_session.c:1637 Close Channel
loopback/voicemail-a [CS_DESTROY]<br>
2015-02-22 11:08:14.145852 [NOTICE]
switch_core_session.c:1633 Session 4
(loopback/voicemail-b) Ended<br>
2015-02-22 11:08:14.145852 [NOTICE]
switch_core_session.c:1637 Close Channel
loopback/voicemail-b [CS_DESTROY]<span><br>
<br>
<br>
On 20/02/2015 7:10 pm, Sergey Safarov wrote:<br>
</span></div>
<div>
<div>
<blockquote type="cite">
<div dir="ltr">
<p>You mailer is not understand
"mailer-app-args" has been configured in
"switch.conf.xml"</p>
<p>Remove extra arg or add required</p>
<br>
<div class="gmail_quote">пт, 20 февр. 2015,
7:49, Jason Lewis <<a href="mailto:jason@dickson.st" target="_blank">jason@dickson.st</a>>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
I've been trying to make freeswitch email
voicemails but as far as I can<br>
tell, it never even calls sendmail.<br>
<br>
I have setting mailer-app to "sendmail" and
"/usr/sbin/sendmail" to no<br>
avail. I can successfully send an email from
the commandline using<br>
sendmail. (sendmail in this case is provided
by postfix)<br>
<br>
I see no emails in the postfix mail logs
when I leave a voicemail message.<br>
<br>
I also tried creating a shell just to see if
it even gets called from<br>
fs, but it does not get called when a
voicemail is deposited:<br>
#!/bin/bash<br>
echo $(date --rfc-3339=ns): $* >>
/tmp/freeswitchsendmail.log<br>
<br>
After every change, I have run reloadxml and
reload mod_voicemail. I<br>
have also tried restarting freeswitch.<br>
<br>
I am running the debian packages of
FreeSWITCH Version 1.4.15-1~64bit<br>
(-1 64bit)<br>
<br>
my configuration is based on the vanilla
configuration with only very<br>
minor changes.<br>
<br>
I'm at a loss as to how to debug further,
but I'm pretty sure the<br>
mailer-app is never called. Is there some
setting I'm missing or<br>
something obvious I'm not doing?<br>
<br>
<br>
My config:<br>
1001.xml:<br>
<include><br>
<user id="1001"><br>
<params><br>
<param name="password"
value="$${default_password}"/><br>
<param name="vm-password"
value="1001"/><br>
<param name="vm-mailto" value="<a href="mailto:jason@xyz.com.au" target="_blank">jason@xyz.com.au</a>"/><br>
<param name="vm-mailfrom" value="<a href="mailto:vm@freeswitch.xyz.com.au" target="_blank">vm@freeswitch.xyz.com.au</a>"/><br>
<!-- <param
name="vm-message-ext" value="wav"/>
--><br>
</params><br>
<variables><br>
<variable name="toll_allow"
value="domestic,international,local"/><br>
<variable name="accountcode"
value="1001"/><br>
<variable name="user_context"
value="default"/><br>
<variable
name="effective_caller_id_name"
value="Extension 1001"/><br>
<variable
name="effective_caller_id_number"
value="1001"/><br>
<variable
name="outbound_caller_id_name"<br>
value="$${outbound_caller_name}"/><br>
<variable
name="outbound_caller_id_number"<br>
value="$${outbound_caller_id}"/><br>
<variable name="callgroup"
value="techsupport"/><br>
</variables><br>
</user><br>
</include><br>
<br>
and in switch.conf.xml I have the following
set:<br>
<br>
<param name="mailer-app"
value="/usr/sbin/sendmail"/><br>
<param name="mailer-app-args"
value="-t"/><br>
<br>
<br>
I made a log at level 7 and put it on the
pastebin:<br>
<br>
<a href="https://pastebin.freeswitch.org/23921" target="_blank">https://pastebin.freeswitch.org/23921</a><br>
<br>
<br>
Jason Lewis<br>
<a href="http://emacstragic.net" target="_blank">http://emacstragic.net</a><br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></blockquote>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></pre>
</blockquote>
<br>
<br>
</div>
</div>
<span>
<pre cols="72">--
Jason Lewis
<a href="http://emacstragic.net" target="_blank">http://emacstragic.net</a></pre>
</span></div>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></pre>
</blockquote>
<br>
<pre cols="72">--
Jason Lewis
<a href="http://emacstragic.net" target="_blank">http://emacstragic.net</a></pre>
</div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br></div></div><span class=""><div><div dir="ltr">
<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font face="courier new, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p>
<p><font face="courier new, monospace"><b>T:</b><a href="tel:%2B19184209001" value="+19184209001" target="_blank">+19184209001</a> | <b>F:</b><a href="tel:%2B19184209002" value="+19184209002" target="_blank">+19184209002</a> | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div>
</span></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>