Randomly sound is lost on calls

I am running Asterisk 1.4.36 using IAX to connect to the service provider. Both inbound and outbound calls work fine most of the time, but randomly sound is lost on some calls. These are the logs for one such call, which lost sound:

[Jun 14 13:21:07] VERBOSE[6862] logger.c: – Executing [91xxxxxxxxxx@outbound:1] Set(“SIP/1xx-0000005f”, “CALLERID(num)=2xxxxxxxxx”) in new stack
[Jun 14 13:21:07] VERBOSE[6862] logger.c: – Executing [91xxxxxxxxxx@outbound:2] Dial(“SIP/1xx-0000005f”, “IAX2/xxxxx_out/1xxxxxxxxxx”) in new stack
[Jun 14 13:21:07] DEBUG[6862] chan_iax2.c: prepending 4 to prefs
[Jun 14 13:21:07] VERBOSE[6862] logger.c: – Called xxxxx_out/1xxxxxxxxxx
[Jun 14 13:21:07] VERBOSE[2106] logger.c: – Call accepted by 6x.xxx.xxx.xx (format ulaw)
[Jun 14 13:21:07] VERBOSE[2106] logger.c: – Format for call is ulaw
[Jun 14 13:21:07] VERBOSE[6862] logger.c: – IAX2/xxxxx_out-6957 is ringing
[Jun 14 13:21:16] VERBOSE[6862] logger.c: – IAX2/xxxxx_out-6957 stopped sounds
[Jun 14 13:21:16] VERBOSE[6862] logger.c: – IAX2/xxxxx_out-6957 answered SIP/1xx-0000005f
[Jun 14 13:22:00] VERBOSE[6862] logger.c: – Executing [h@outbound:1] Hangup(“SIP/1xx-0000005f”, “”) in new stack
[Jun 14 13:22:00] VERBOSE[6862] logger.c: == Spawn h extension (outbound, h, 1) exited non-zero on ‘SIP/1xx-0000005f’
[Jun 14 13:22:00] VERBOSE[6862] logger.c: – Hungup ‘IAX2/xxxxx_out-6957’
[Jun 14 13:22:00] VERBOSE[6862] logger.c: == Spawn extension (outbound, 91xxxxxxxxxx, 2) exited non-zero on ‘SIP/1xx-0000005f’

Please help me get this resolved.

Thank you

The log doesn’t appear to demonstrate any problem.

You need to be more precise. Is this a one way audio problem, or does it affect both directions. Is only a middle part of the session lost, or is it the whole session, the whole beginning, or the whole end?

If it is mid-session, I would assume network problems. Otherwise you will need to provide the detailed logging for the IAX protocol.

David, It impacts both sides. Neither side can hear the other. There is complete silence. Right before happens, I see

– IAX2/xxxx_out-5754 stopped sounds in the logs. Other than that, it all appears normal without any errors.

Thank you.

Stopped sounds means that the music on hold, or call progress tone is being stopped, and is normal for the start of the speech part of the call. As I say, the log does not show any problems.