Empty voicemail file

Hello everyone,

I’m newbie with Asterisk and I have a problem with Voicemail and PJSIP on Asterisk 14.6

When I will leave a message, everything seems to work fine, but the voicemail file is empty. When I will listen the message, I get the following error:

[Aug 29 10:23:33] WARNING[26426][C-0000000c]: file.c:566 filehelper: File /var/spool/asterisk/voicemail/leucotron/595/Old/msg0000.gsm detected to have zero size.

voicemail.conf

[general]
format=gsm
maxmsg=100
maxsecs=15
skipms=3000
maxsilence=10
silencethreshold=128
maxlogins=3

[mailboxes]
551 => 551,551-9.28,rleitao@mailboxes.com.br
595 => 595,595-9.28,edgard@mailboxes.com.br

pjsip.conf

;=============== TRUNK pcv01 ===============
[simpletrans]
type=transport
protocol=udp
bind=0.0.0.0:5060

[pcv01]
type=registration
transport=simpletrans
outbound_auth=authpcv01
server_uri=sip:192.168.9.28:5060
client_uri=sip:pcv01@192.168.9.28:5060

[pcv01]
type=endpoint
context=from_external
disallow=all
allow = ulaw
allow = alaw
allow=gsm
transport=simpletrans
outbound_auth=authpcv01
aors=pcv01
dtmf_mode=auto
language=en


[authpcv01]
type=auth
auth_type=userpass
password=*****
username=pcv01

[pcv01]
type=aor
contact=sip:192.168.9.28:5060

[pcv01]
type=identify
endpoint=pcv01
match=192.168.9.28

extensions.conf

;********************************************************************
;*********************** EXTENSIONS CONTEXTS ************************
[from_external]
include=>features

[features]
exten=>pcv01,1,Goto(voicemail,s,1)

;************************  **************************
[voicemail]
exten=>s,1,Set(LDISPLAY=${CALLERID(name)})
exten=>s,n,Set(LTEST=${LDISPLAY:0:3})
exten=>s,n,Set(LTYPE=${LDISPLAY:3:1})
exten=>s,n,Set(LNAT=${LDISPLAY:4:1})
exten=>s,n,Set(LIDIOMA=${LDISPLAY:5:1})
exten=>s,n,Set(LHHHH=${LDISPLAY:6:4})
exten=>s,n,Set(LSTAMP=${LDISPLAY:10:8})
exten=>s,n,Set(LVM=${LDISPLAY:18})
exten=>s,n,Set(LID=${CALLERID(num)})
exten=>s,n,Set(LTYPEVM=${IF($[${LTYPE} = 2]?b:u)})
exten=>s,n,Set(CHANNEL(language)=${IF($[${LIDIOMA} = I]?it:${IF($[${LIDIOMA} = P]?pt_BR:${IF($[${LIDIOMA} = S]?es:${IF($[${LIDIOMA} = E]?en:${IF($[${LIDIOMA} = J]?jp:${IF($[${LIDIOMA} = G]?ge:${IF($[${LIDIOMA} = F]?fr:en)})})})})})})})
exten=>s,n,Ringing()
exten=>s,n,Wait(1)
exten=>s,n,GotoIf($[${LTYPE} = 0]?LMYVM)

exten=>s,n(LOTHERVM),Answer()
exten=>s,n,Wait(0.8)
exten=>s,n,(${LVM}@mailboxes,${LTYPEVM})
exten=>s,n,Hangup()

exten=>s,n(LMYVM),Answer()
exten=>s,n,Wait(1.0)
exten=>s,n,GotoIf($[${LNAT} = E]?LMYVMEXT)
exten=>s,n,Main(${LVM}@mailboxes)
exten=>s,n,Hangup()

exten=>s,n(LMYVMEXT),Main(@mailboxes)
exten=>s,n,Hangup()

exten=>s,n(LINVALIDO),Answer()
exten=>s,n,Wait(0.5)
exten=>s,n,Congestion()
exten=>s,n,Hangup()

Thanks!

Check your voicemail configuration file, also make sure you have the correct permissions on the directory

Thanks for the quick answer!

I’ve checked that points, but it is everything ok, actually, I believe the problem is in chan_pjsip, because if I change the configuration to chan_sip, everything works fine

My reply has nothing to do with your issue, but it’s not a good idea to explicitly define a transport for an endpoint.

1 Like

Thanks for the answers, but the problem persists. Maybe I must use chan_sip rather than chan_pjsip, but I don’t believe that is a good idea.

You need to narrow things down. For example: Does audio even get to Asterisk? You can test that using Echo.

I’ve just done test using Echo. And I don’t heard the audio which I said.

Acording Wireshark, my equipment(trunk) sends the audio correctly. But the voicemail file is empty.

Do you see the audio if you do “rtp set debug on”? That outputs a line each time media is sent or received. If not, then it’s not getting to Asterisk.

Enabling rtp debug, I see this output:

- Recording the message
    -- x=0, open writing:  /var/spool/asterisk/voicemail/leucotron/551/tmp/xbpTfI format: gsm, 0x7f47540019d8
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000579, ts 1504203437, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000580, ts 1504203597, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000581, ts 1504203757, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000582, ts 1504203917, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000583, ts 1504204077, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000584, ts 1504204237, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000585, ts 1504204397, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000586, ts 1504204557, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000587, ts 1504204717, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000588, ts 1504204877, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000589, ts 1504205037, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000590, ts 1504205197, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000591, ts 1504205357, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000592, ts 1504205517, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000593, ts 1504205677, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000594, ts 1504205837, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000595, ts 1504205997, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000596, ts 1504206157, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000597, ts 1504206317, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000598, ts 1504206477, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000599, ts 1504206637, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000600, ts 1504206797, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000601, ts 1504206957, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000602, ts 1504207117, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000603, ts 1504207277, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000604, ts 1504207437, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000605, ts 1504207597, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000606, ts 1504207757, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000607, ts 1504207917, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000608, ts 1504208077, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000609, ts 1504208237, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000610, ts 1504208397, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000611, ts 1504208557, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000612, ts 1504208717, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000613, ts 1504208877, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000614, ts 1504209037, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000615, ts 1504209197, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000616, ts 1504209357, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000617, ts 1504209517, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000618, ts 1504209677, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000619, ts 1504209837, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000620, ts 1504209997, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000621, ts 1504210157, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000622, ts 1504210317, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000623, ts 1504210477, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000624, ts 1504210637, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000625, ts 1504210797, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000626, ts 1504210957, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000627, ts 1504211117, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000628, ts 1504211277, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000629, ts 1504211437, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000630, ts 1504211597, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000631, ts 1504211757, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000632, ts 1504211917, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000633, ts 1504212077, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000634, ts 1504212237, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000635, ts 1504212397, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000636, ts 1504212557, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000637, ts 1504212717, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000638, ts 1504212877, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000639, ts 1504213037, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000640, ts 1504213197, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000641, ts 1504213357, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000642, ts 1504213517, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000643, ts 1504213677, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000644, ts 1504213837, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000645, ts 1504213997, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000646, ts 1504214157, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000647, ts 1504214317, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000648, ts 1504214477, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000649, ts 1504214637, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000650, ts 1504214797, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000651, ts 1504214957, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000652, ts 1504215117, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000653, ts 1504215277, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000654, ts 1504215437, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000655, ts 1504215597, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000656, ts 1504215757, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000657, ts 1504215917, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000658, ts 1504216077, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000659, ts 1504216237, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000660, ts 1504216397, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000661, ts 1504216557, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000662, ts 1504216717, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000663, ts 1504216877, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000664, ts 1504217037, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000665, ts 1504217197, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000666, ts 1504217357, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000667, ts 1504217517, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000668, ts 1504217677, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000669, ts 1504217837, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000670, ts 1504217997, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000671, ts 1504218157, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000672, ts 1504218317, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000673, ts 1504218477, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000674, ts 1504218637, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000675, ts 1504218797, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000676, ts 1504218957, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000677, ts 1504219117, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000678, ts 1504219277, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000679, ts 1504219437, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000680, ts 1504219597, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000681, ts 1504219757, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000682, ts 1504219917, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000683, ts 1504220077, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000684, ts 1504220237, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000685, ts 1504220397, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000686, ts 1504220557, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000687, ts 1504220717, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000688, ts 1504220877, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000689, ts 1504221037, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000690, ts 1504221197, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000691, ts 1504221357, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000692, ts 1504221517, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000693, ts 1504221677, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000694, ts 1504221837, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000695, ts 1504221997, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000696, ts 1504222157, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000697, ts 1504222317, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000698, ts 1504222477, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000699, ts 1504222637, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000700, ts 1504222797, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000701, ts 1504222957, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000702, ts 1504223117, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000703, ts 1504223277, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000704, ts 1504223437, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000705, ts 1504223597, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000706, ts 1504223757, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000707, ts 1504223917, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000708, ts 1504224077, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000709, ts 1504224237, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000710, ts 1504224397, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000711, ts 1504224557, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000712, ts 1504224717, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000713, ts 1504224877, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000714, ts 1504225037, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000715, ts 1504225197, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000716, ts 1504225357, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000717, ts 1504225517, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000718, ts 1504225677, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000719, ts 1504225837, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000720, ts 1504225997, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000721, ts 1504226157, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000722, ts 1504226317, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000723, ts 1504226477, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000724, ts 1504226637, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000725, ts 1504226797, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000726, ts 1504226957, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000727, ts 1504227117, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000728, ts 1504227277, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000729, ts 1504227437, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000730, ts 1504227597, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000731, ts 1504227757, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000732, ts 1504227917, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000733, ts 1504228077, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000734, ts 1504228237, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000735, ts 1504228397, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000736, ts 1504228557, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000737, ts 1504228717, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000738, ts 1504228877, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000739, ts 1504229037, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000740, ts 1504229197, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000741, ts 1504229357, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000742, ts 1504229517, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000743, ts 1504229677, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000744, ts 1504229837, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000745, ts 1504229997, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000746, ts 1504230157, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000747, ts 1504230317, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000748, ts 1504230477, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000749, ts 1504230637, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000750, ts 1504230797, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000751, ts 1504230957, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000752, ts 1504231117, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000753, ts 1504231277, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000754, ts 1504231437, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000755, ts 1504231597, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000756, ts 1504231757, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000757, ts 1504231917, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000758, ts 1504232077, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000759, ts 1504232237, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000760, ts 1504232397, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000761, ts 1504232557, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000762, ts 1504232717, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000763, ts 1504232877, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000764, ts 1504233037, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000765, ts 1504233197, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000766, ts 1504233357, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000767, ts 1504233517, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000768, ts 1504233677, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000769, ts 1504233837, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000770, ts 1504233997, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000771, ts 1504234157, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000772, ts 1504234317, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000773, ts 1504234477, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000774, ts 1504234637, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000775, ts 1504234797, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000776, ts 1504234957, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000777, ts 1504235117, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000778, ts 1504235277, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000779, ts 1504235437, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000780, ts 1504235597, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000781, ts 1504235757, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000782, ts 1504235917, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000783, ts 1504236077, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000784, ts 1504236237, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000785, ts 1504236397, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000786, ts 1504236557, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000787, ts 1504236717, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000788, ts 1504236877, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000789, ts 1504237037, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000790, ts 1504237197, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000791, ts 1504237357, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000792, ts 1504237517, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000793, ts 1504237677, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000794, ts 1504237837, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000795, ts 1504237997, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000796, ts 1504238157, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000797, ts 1504238317, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000798, ts 1504238477, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000799, ts 1504238637, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000800, ts 1504238797, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000801, ts 1504238957, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000802, ts 1504239117, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000803, ts 1504239277, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000804, ts 1504239437, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000805, ts 1504239597, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000806, ts 1504239757, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000807, ts 1504239917, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000808, ts 1504240077, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000809, ts 1504240237, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000810, ts 1504240397, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000811, ts 1504240557, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000812, ts 1504240717, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000813, ts 1504240877, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000814, ts 1504241037, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000815, ts 1504241197, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000816, ts 1504241357, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000817, ts 1504241517, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000818, ts 1504241677, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000819, ts 1504241837, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000820, ts 1504241997, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000821, ts 1504242157, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000822, ts 1504242317, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000823, ts 1504242477, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000824, ts 1504242637, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000825, ts 1504242797, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000826, ts 1504242957, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000827, ts 1504243117, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000828, ts 1504243277, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000829, ts 1504243437, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000830, ts 1504243597, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000831, ts 1504243757, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000832, ts 1504243917, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000833, ts 1504244077, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000834, ts 1504244237, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000835, ts 1504244397, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000836, ts 1504244557, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000837, ts 1504244717, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000838, ts 1504244877, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000839, ts 1504245037, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000840, ts 1504245197, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000841, ts 1504245357, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000842, ts 1504245517, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000843, ts 1504245677, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000844, ts 1504245837, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000845, ts 1504245997, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000846, ts 1504246157, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000847, ts 1504246317, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000848, ts 1504246477, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000849, ts 1504246637, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000850, ts 1504246797, len 000160)
Got  RTP packet from    192.168.9.27:6204 (type 08, seq 000851, ts 1504246957, len 000160)
    -- User hung up
  == Spawn extension (voiceleucotron, s, 17) exited non-zero on 'PJSIP/pcv01-0000000d'

That would indeed seem to show audio coming in. Not sure why you wouldn’t hear it using Echo or why it wouldn’t record, then.

The output more detailed: https://paste.ubuntu.com/25433878/