The pjsip is in 5060 but I use chan_sip

Will there be no confusion?
Ok , I Added : port = 5160
@jcolp However, requests sent by extensions on this port receive responses. I’m really confused
<— SIP read from UDP:10.106.8.93:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.106.8.181:5160;branch=z9hG4bK19ec1fbd;rport=5160
From: “764775781” <sip:764775781@10.106.8.181:5160>;tag=as3f24ac3a
To:<sip:6013@10.106.8.93:5060>
;tag=1836741126
Call-ID: 7cd4896b3a368c5819714584407f819f@10.106.8.181:5160
CSeq: 102 INVITE
Contact:<sip:6013@10.106.8.93:5060>
Content-Type: application/sdp
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
User-Agent: Yealink SIP-T21P_E2 52.84.0.125
Allow-Events: talk,hold,conference,refer,check-sync
Content-Length: 209
I don’t understand what that statement means or it’s relevance, or the state of things. The output you have shown is a SIP response from an endpoint at 10.106.8.93 port 5060.
Each SIP device can use whatever port it wants. They don’t have to be the same across multiple devices. They are independent.
My concern is that when asterisk sends a request to a sip endpoint, it receives the request successfully and sends a response to asterisk on port 5060. But when asterisk sends a request to yeastar on this port 5060 yeastar does not receive.
…you stated previously that the Yeastar is listening on 5160, so why would it work on 5060 unless the Yeastar was configured to listen on port 5060.
Hello,
After activating SIP debugging on asterisk, I retrieved the logs from asterisk and yeastar in order to do an analysis and comparison.
I noticed that the SIP OPTIONS sent by yeastar were received much later by asterisk, which is the reason why yeastar considers it to be inaccessible and the trunk status is set to inaccessible. Nevertheless, when asterisk receives the SIP OPTIONS it sends an OK reply directly (within the time limit). Do you think this issue could be due to a configuration problem on the asterisk?
No. I find it extremely difficult to imagine anything in Asterisk that would do that.
Hello @david551
Indeed, I look all the logs and did a complete review of the configuration. I really think it’s a communication problem on the network. Thank you for your time spent helping me.