[asterisk-users] Asterisk 1.6.2.7 + app_fax + OpenBSD 4.7 minor issue

Noah Pugsley noah.p at bendtel.com
Fri May 28 13:24:23 CDT 2010


Hi folks,

I am having a small problem with asterisk-1.6.2.7 + app_fax on OpenBSD 
4.7 -release. Everything seems to work fine. I have a macro which 
answers, receives the fax to a tiff, and then runs a script (mailfax) to 
convert that to pdf and email it. It all works perfectly except for some 
errors I am seeing in the console. After it hangs up I get a dozen or so 
messages in the cli saying,"[May 27 14:21:51] WARNING[26225]: rtp.c:1632 
ast_rtp_read: RTP Read too short" Perhaps I shouldn't worry since it 
works but I am nervous to put it in production with these errors.

Also, I am not sure that t38 is actually working and being used here. Is 
there any way to see this at the asterisk cli or is tcpdump the only way?

If anyone can suggest any solutions or point me to some documentation 
that may help I would greatly appreciate it.

Regards,
noah



# asterisk -rvvvvvvvvvvvv
Asterisk 1.6.2.7, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster at digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' 
for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it 
under
certain conditions. Type 'core show license' for details.
=========================================================================
   == Parsing '/etc/asterisk/asterisk.conf':   == Found
Running as group '_asterisk'
   == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.7 currently running on fax1 (pid = 26225)
Verbosity is at least 14
     -- Executing [9995551212 at default:1] 
Macro("SIP/metaswitch-00000001", "receivefax,noah.p at bendtel.com"
) in new stack
     -- Executing [s at macro-receivefax:1] Set("SIP/metaswitch-00000001", 
"FAXFILE=/var/spool/asterisk-fax/
1274995265.1.tif") in new stack
     -- Executing [s at macro-receivefax:2] Set("SIP/metaswitch-00000001", 
"EMAILADDR=noah.p at bendtel.com") i
n new stack
     -- Executing [s at macro-receivefax:3] 
Answer("SIP/metaswitch-00000001", "") in new stack
     -- Executing [s at macro-receivefax:4] Wait("SIP/metaswitch-00000001", 
"2") in new stack
     -- Executing [s at macro-receivefax:5] 
ReceiveFAX("SIP/metaswitch-00000001", "/var/spool/asterisk-fax/1
274995265.1.tif") in new stack
     -- Executing [s at macro-receivefax:6] 
System("SIP/metaswitch-00000001", "/usr/local/bin/mailfax /var/s
pool/asterisk-fax/1274995265.1.tif noah.p at bendtel.com "4445556666 
BendTel"") in new stack
fax1*CLI> [May 27 14:21:51] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP 
Read too short
[May 27 14:21:51] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP Read too 
short
fax1*CLI> [May 27 14:21:51] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP 
Read too short
[May 27 14:21:51] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP Read too 
short
fax1*CLI> [May 27 14:21:51] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP 
Read too short
[May 27 14:21:51] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP Read too 
short
fax1*CLI> [May 27 14:21:51] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP 
Read too short
[May 27 14:21:51] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP Read too 
short
fax1*CLI> [May 27 14:21:51] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP 
Read too short
[May 27 14:21:51] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP Read too 
short
fax1*CLI> [May 27 14:21:51] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP 
Read too short
[May 27 14:21:51] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP Read too 
short
fax1*CLI> [May 27 14:21:51] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP 
Read too short
[May 27 14:21:51] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP Read too 
short
fax1*CLI> [May 27 14:21:51] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP 
Read too short
[May 27 14:21:51] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP Read too 
short
fax1*CLI> [May 27 14:21:51] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP 
Read too short
[May 27 14:21:51] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP Read too 
short
fax1*CLI> [May 27 14:21:51] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP 
Read too short
[May 27 14:21:51] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP Read too 
short
fax1*CLI> [May 27 14:21:52] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP 
Read too short
[May 27 14:21:52] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP Read too 
short
fax1*CLI> [May 27 14:21:52] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP 
Read too short
[May 27 14:21:52] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP Read too 
short
fax1*CLI> [May 27 14:21:52] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP 
Read too short
[May 27 14:21:52] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP Read too 
short
fax1*CLI> [May 27 14:21:52] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP 
Read too short
[May 27 14:21:52] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP Read too 
short
fax1*CLI> [May 27 14:21:52] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP 
Read too short
[May 27 14:21:52] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP Read too 
short
fax1*CLI> [May 27 14:21:52] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP 
Read too short
[May 27 14:21:52] WARNING[26225]: rtp.c:1632 ast_rtp_read: RTP Read too 
short
     -- Executing [s at macro-receivefax:7] 
Hangup("SIP/metaswitch-00000001", "") in new stack
   == Spawn extension (macro-receivefax, s, 7) exited non-zero on 
'SIP/metaswitch-00000001' in macro 'rec
eivefax'
   == Spawn extension (default, 9995551212, 1) exited non-zero on 
'SIP/metaswitch-00000001'
fax1*CLI> qui
No such command 'qui' (type 'core show help qui' for other possible 
commands)
fax1*CLI> quit

sip.conf:
; $OpenBSD: sip.conf.sample,v 1.3 2007/09/05 22:42:52 sthen Exp $
; Longer example available in /usr/local/share/examples/asterisk/default

[general]
disallow=all
allow=ulaw
t38pt_udptl=yes

[metaswitch]
qualify=yes
type=friend
insecure=invite
host=172.25.0.101
context=default
canreinvite=no
t38pt_udptl=yes

********************************************************************
extensions.conf:
[macro-receivefax]
exten => s,1,Set(FAXFILE=/var/spool/asterisk-fax/${UNIQUEID}.tif)
exten => s,n,Set(EMAILADDR=${ARG1})
exten => s,n,Answer()
exten => s,n,Wait(2)
exten => s,n,ReceiveFax(${FAXFILE})
exten => s,n,system(/usr/local/bin/mailfax ${FAXFILE} ${EMAILADDR} 
"${CALLERID(num)} ${CALLERID(name)}")
exten => s,n,Hangup

[default]

; Test
exten => 9995551212,1,Macro(receivefax,noah.p at bendtel.com)

Libraries used:

/usr/local/sbin/asterisk:
         Start    End      Type Open Ref GrpRef Name
         1c000000 3c05b000 exe  1    0   0      /usr/local/sbin/asterisk
         07c38000 27c45000 rlib 0    1   0      /usr/lib/libssl.so.15.1
         02e6b000 22eab000 rlib 0    1   0      /usr/lib/libcrypto.so.18.0
         04fb6000 24fba000 rlib 0    1   0 
/usr/local/lib/libexecinfo.so.0.0
         05fee000 2601e000 rlib 0    1   0 
/usr/local/lib/libxml2.so.11.0
         0042a000 20432000 rlib 0    2   0      /usr/lib/libz.so.4.1
         0a31c000 2a3fb000 rlib 0    2   0 
/usr/local/lib/libiconv.so.6.0
         0c1da000 2c1e4000 rlib 0    3   0      /usr/lib/libm.so.5.2
         0a1f7000 2a208000 rlib 0    1   0      /usr/lib/libtermcap.so.11.0
         09e0a000 29e13000 rlib 0    1   0      /usr/lib/libpthread.so.12.0
         099f9000 29a32000 rlib 0    1   0      /usr/lib/libc.so.53.1
         047b2000 047b2000 rtld 0    1   0      /usr/libexec/ld.so

app_fax.so:
         Start    End      Type Open Ref GrpRef Name
         0eb6b000 2eb6f000 dlib 1    0   0 
/usr/local/lib/asterisk/modules/app_fax.so
         07140000 27186000 rlib 0    1   0 
/usr/local/lib/libspandsp.so.5.0
         0f53e000 2f563000 rlib 0    2   0 
/usr/local/lib/libtiff.so.38.2
         01411000 21417000 rlib 0    2   0 
/usr/local/lib/libjpeg.so.63.0
         01016000 2101e000 rlib 0    2   0      /usr/lib/libz.so.4.1
         0ed98000 2eda2000 rlib 0    2   0      /usr/lib/libm.so.5.2

/usr/local/lib/libspandsp.so.5.0:
         Start    End      Type Open Ref GrpRef Name
         0a92e000 2a974000 dlib 1    0   0 
/usr/local/lib/libspandsp.so.5.0
         00675000 2069a000 rlib 0    1   0 
/usr/local/lib/libtiff.so.38.2
         0e43f000 2e445000 rlib 0    2   0 
/usr/local/lib/libjpeg.so.63.0
         034e8000 234f0000 rlib 0    2   0      /usr/lib/libz.so.4.1
         07636000 27640000 rlib 0    2   0      /usr/lib/libm.so.5.2




More information about the asterisk-users mailing list