this is the log from asterik.
It is getting a correct INVIte, so the OS is repackging the packets correctly.
But asterisk fails to trust the invite.
Any help is welcome…
IP Debugging enabled
asterisk1*CLI>
<— SIP read from PROXYIP:5060 —>
INVITE sip:08281962108@ASTERISKIP SIP/2.0
Record-Route: sip:08281962108@DOMAIN.IT:5060;ftag=482ca6774420ddeo0;lr=on
Via: SIP/2.0/UDP PROXYIP;branch=z9hG4bKf5d6.c898cc04.0
Via: SIP/2.0/UDP PHOINEIP:5060;rport=5060;branch=z9hG4bK-648148c2
From: 08281962102 sip:08281962102@DOMAIN.IT;tag=482ca6774420ddeo0
To: sip:08281962108@DOMAIN.IT
Remote-Party-ID: 08281962102 sip:08281962102@DOMAIN.IT;screen=yes;party=calling
Call-ID: 5410112b-d34c82ba@PHOINEIP
CSeq: 102 INVITE
Max-Forwards: 69
Proxy-Authorization: Digest username=“08281962102”,realm=“DOMAIN.IT”,nonce=“49bfafdb1514a4009c13be2ab85b46e6d641516b”,uri="sip:08281962108@DOMAIN.IT",algorithm=MD5,response="bce5965eb9808a40d9c808b3b1249b6f"
Contact: 08281962102 sip:08281962102@PHOINEIP:5060
Expires: 240
User-Agent: Linksys/SPA2102-5.2.5
Content-Length: 443
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: x-sipura, replaces
Content-Type: application/sdp
v=0
o=- 28157802 28157802 IN IP4 PHOINEIP
s=-
c=IN IP4 PHOINEIP
t=0 0
m=audio 19536 RTP/AVP 8 18 0 2 4 96 97 98 100 101
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:4 G723/8000
a=rtpmap:96 G726-40/8000
a=rtpmap:97 G726-24/8000
a=rtpmap:98 G726-16/8000
a=rtpmap:100 NSE/8000
a=fmtp:100 192-193
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv
<------------->
— (18 headers 20 lines) —
Sending to PROXYIP : 5060 (no NAT)
Using INVITE request as basis request - 5410112b-d34c82ba@PHOINEIP
<— Reliably Transmitting (no NAT) to PROXYIP:5060 —>
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP PROXYIP;branch=z9hG4bKf5d6.c898cc04.0;received=PROXYIP
Via: SIP/2.0/UDP PHOINEIP:5060;rport=5060;branch=z9hG4bK-648148c2
From: 08281962102 sip:08281962102@DOMAIN.IT;tag=482ca6774420ddeo0
To: sip:08281962108@DOMAIN.IT;tag=as109df772
Call-ID: 5410112b-d34c82ba@PHOINEIP
CSeq: 102 INVITE
User-Agent: ConvAsterisk
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Proxy-Authenticate: Digest algorithm=MD5, realm=“convasterisk”, nonce="787e7744"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog ‘5410112b-d34c82ba@PHOINEIP’ in 32000 ms (Method: INVITE)
Found user ‘08281962102’
<— SIP read from PROXYIP:5060 —>
ACK sip:08281962108@ASTERISKIP SIP/2.0
Via: SIP/2.0/UDP PROXYIP;branch=z9hG4bKf5d6.c898cc04.0
From: 08281962102 sip:08281962102@DOMAIN.IT;tag=482ca6774420ddeo0
Call-ID: 5410112b-d34c82ba@PHOINEIP
To: sip:08281962108@DOMAIN.IT;tag=as109df772
CSeq: 102 ACK
User-Agent: OpenSER (1.2.3-notls (i386/linux))
Content-Length: 0
<------------->
— (8 headers 0 lines) —