| 8 | |
| 9 | Log: |
| 10 | {{{ |
| 11 | 14:14:35.020 pjsua_acc.c .Acc 2: setting registration.. |
| 12 | 14:14:35.022 resolver.c ...Transmitting 41 bytes to NS 0 (8.8.8.8:53): DNS SRV query for _sip._tcp.sip.pjsip.org: Success |
| 13 | 14:14:35.022 pjsua_acc.c ..Setting acc 2 reg_tp to NULL |
| 14 | 14:14:35.022 pjsua_acc.c ..Acc 2: Registration sent |
| 15 | ... |
| 16 | 14:14:35.102 tcpc0x1694de14 TCP client transport created |
| 17 | 14:14:35.103 tcpc0x1694de14 TCP transport 192.168.1.2:51801 is connecting to 208.109.222.137:5060... |
| 18 | }}} |
| 19 | |
| 20 | Which will cause this to happen: |
| 21 | {{{ |
| 22 | 10:51:40.669 ioq_select Attempting to replace UDP socket 4 |
| 23 | 10:51:40.671 ioq_select UDP has been replaced successfully! |
| 24 | 10:51:40.671 resolver.c DNS resolver read error from 8.8.8.8:53: Socket is not connected |
| 25 | 10:51:40.671 tcpc0x15b99614 TCP connection closed |
| 26 | 10:51:40.672 pjsua_app.c SIP TCP transport is disconnected from [208.109.222.137:5060]: End of file (PJ_EEOF) [status=70016] |
| 27 | 10:51:40.672 pjsua_acc.c Disconnected notification for transport tcpc0x15b99614 |
| 28 | 10:51:50.694 ioq_select Attempting to replace UDP socket 4 |
| 29 | 10:51:50.694 ioq_select UDP has been replaced successfully! |
| 30 | 10:51:50.694 resolver.c DNS resolver read error from 8.8.8.8:53: Socket is not connected |
| 31 | ... |
| 32 | 10:52:00.707 ioq_select Attempting to replace UDP socket 4 |
| 33 | 10:52:00.708 ioq_select UDP has been replaced successfully! |
| 34 | 10:52:00.708 resolver.c DNS resolver read error from 8.8.8.8:53: Socket is not connected |
| 35 | |
| 36 | [it will go on, and on, ....., and eventually, it will crash below] |
| 37 | |
| 38 | 10:54:00.840 ioq_select UDP has been replaced successfully! |
| 39 | 10:54:10.843 ioq_select Attempting to replace UDP socket 4 |
| 40 | 10:54:10.845 ioq_select UDP has been replaced successfully! |
| 41 | 10:54:10.845 resolver.c DNS resolver read error from 8.8.8.8:53: Socket is not connected |
| 42 | 10:54:10.845 ioq_select Attempting to replace UDP socket 7 |
| 43 | 10:54:10.845 ioq_select UDP has been replaced successfully! |
| 44 | (lldb) |
| 45 | }}} |
| 46 | |
| 47 | If the transport is released correctly, what you should be seeing in the log is: |
| 48 | {{{ |
| 49 | 12:58:14.836 tcpc0x153b4214 TCP connection closed |
| 50 | 12:58:14.836 pjsua_app.c SIP TCP transport is disconnected from [208.109.222.137:5060]: End of file (PJ_EEOF) [status=70016] |
| 51 | 12:58:14.836 pjsua_acc.c Disconnected notification for transport tcpc0x153b4214 |
| 52 | 12:58:14.847 tcpc0x153b4214 TCP transport destroyed with reason 70016: End of file (PJ_EEOF) |
| 53 | }}} |
| 54 | |
| 55 | Notice the log saying that the TCP transport has been destroyed. If such message is missing from the log, the first step is to check whether app is still holding a reference to the particular transport. |
| 56 | |