Why asterisk writes to OPTION packets it’s local ip address? IP phone is in public ip side. Asterisk is another public ip side than the ip phone and under the nat. Here informations:
IP phone public ip: 213.22.222.222
Asterisk public ip: 213.11.111.111
No. Time Source Destination Protocol Length Info
1 0.000000 213.11.111.111 192.168.20.166 SIP 605 Request: OPTIONS sip:503@213.22.222.222:5082 |
I try TLS calling.
I have 2 sip clients and they are under different public ip addresses. And asterisk is under the another different public address. When i try to call from one client to another one, callee is hook-off but in caller phones shows that callee’s phone still ringing.(like latency). 10-15 seconds later hook-off message of callee arrive to caller. What is the reason for this delay? Still i get these messages.
[2016-06-30 15:25:27] NOTICE[5656]: chan_sip.c:29921 sip_poke_noanswer: Peer ‘502’ is now UNREACHABLE! Last qualify: 33
[2016-06-30 15:25:59] NOTICE[17295]: chan_sip.c:24403 handle_response_peerpoke: Peer ‘502’ is now Reachable. (355ms / 2000ms)
[2016-06-30 15:27:03] NOTICE[5656]: chan_sip.c:29921 sip_poke_noanswer: Peer ‘502’ is now UNREACHABLE! Last qualify: 355
But same scenario works well without TLS. I have tried without TLS soon before. There was not any delay.
With TLS:
Phone A is calling Phone B easily and without any delay.
Phone B is calling Phone A with constant delay. Phone A hooks-off phone but Phone B realize it after 30 seconds. I have tried 5 times. Everytime delay was 30 seconds.