Hello,
while stuck config billing i gave the voicemail module a try. It compiled, installed and started without problems (only some minor changes in the example conf had been needed) but bails out after trying to send the mail.
I traced it back to: AmSmtpClient.cpp: function int base64_encode_file
It crashes in the following while-loop while trying to write to a pipe (out) with no listerner (signal 13). --- while(ooff >= 60){ fprintf(out,"%.*s\r\n",60,obuf + off); off += 60; ooff -= 60; } ---
The debug looks like this: ---- Jan 11 11:42:54 gk Sems[26260]: Debug: SENDED: To: xxxx@yyyy.net^M Jan 11 11:42:54 gk Sems[26260]: Debug: SENDED: Subject: Voice message from: Arnd sip:4223@yy.xxxxx.net^M Jan 11 11:42:54 gk Sems[26260]: Debug: SENDED: MIME-Version: 1.0^M Jan 11 11:42:54 gk Sems[26260]: Debug: SENDED: Content-Type: multipart/mixed; ^M Jan 11 11:42:54 gk Sems[26260]: Debug: SENDED: boundary="----=_NextPart_1073850174_26260"^M Jan 11 11:42:54 gk Sems[26260]: Debug: SENDED: ^M Jan 11 11:42:54 gk Sems[26260]: Debug: SENDED: ------=_NextPart_1073850174_26260^M Jan 11 11:42:54 gk Sems[26260]: Debug: SENDED: Content-Type: text/plain^M Jan 11 11:42:54 gk Sems[26260]: Debug: SENDED: ^M Jan 11 11:42:54 gk Sems[26260]: Debug: SENDED: Hello sip:4001@xxx.xxxxx.net, Arnd sip:4223@gk.yyyyy.net left a voice message for you. --------------------------------------------------------- This message was created the iptel.org voicemail system. --------------------------------------------------------- ^M Jan 11 11:42:54 gk Sems[26260]: Debug: SENDED: ------=_NextPart_1073850174_26260^M Jan 11 11:42:54 gk Sems[26260]: Debug: SENDED: Content-Type: audio/x-wav^M Jan 11 11:42:54 gk Sems[26260]: Debug: SENDED: Content-Transfer-Encoding: base64^M Jan 11 11:42:54 gk Sems[26260]: Debug: SENDED: Content-Disposition: inline; ^M Jan 11 11:42:54 gk Sems[26260]: Debug: SENDED: filename="message.wav"^M Jan 11 11:42:54 gk Sems[26260]: Debug: SENDED: ^M Jan 11 11:42:54 gk Sems[26260]: Warning: signal 13 received Jan 11 11:42:54 gk Sems[26260]: Info: finished Jan 11 11:42:54 gk Sems[26260]: Debug: isdngw: destructor of IsdnGatewayFactory: cleaning up. Jan 11 11:42:54 gk Sems[26255]: Warning: signal 17 received Jan 11 11:42:54 gk Sems[26255]: Info: finished ----
Any ideas? I am still using "0.8.13-dev-23-merged".. I can post the voicemail.cfg if needed.
best regards,
Arnd
Hi,
i figured this one out. Its probably a local problem. Changing the smtp-server from a remote one (which works otherwise) to "localhost" did the trick..
regards,
Arnd