Asterisk[20364] trap divide error ip:7fd7aa1535eb sp:7fd77f7bbc10 error:0 in res_musiconhold.s

We have using asterisk 13.10 version with dahdi 2.11.1 version. Asterisk getting stopped abnormally and all the calls are getting dropped when the system is receiving more than 160 calls.

We are getting below error before asterisk terminating,

asterisk[20364] trap divide error ip:7fd7aa1535eb sp:7fd77f7bbc10 error:0 in res_musiconhold.s
7fd7aa14d000+b000]

The Related issue patch has release for some other version in https://issues.asterisk.org/jira/browse/ASTERISK-21775

Please let me know, how can I fix the above issue in Asterisk 13.10.?

No fix has been released for the issue you quote. There is only a proposed fix. The issue seems to describe two different symptoms.

The last activity on that issue was before version 13 was forked, so any fix applied as a result of it would be expected to be in all sub-versions of version 13.

Generally, for a crash you need to follow the instructions in https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace when reporting it.