problem to register

Status
Not open for further replies.

farhaadn

New Member
Sep 20, 2020
24
0
1
Hi,
I have this structure:
172.16.1.2 <----> 192.168.1.2 <----> 192.168.1.3 <---> 10.1.1.2
asterisk <----> pptp vpn<----> pptp vpn<---> fusionpbx

I can't register trunk from asterisk to fusionpbx, but I can registred on fusionpbx via that network (172.16.1.3 my client ip)
port 5060 is open, I put tcpdump from asterisk in this post, and then fusionpbx on another post:

IP 172.16.1.2.5060 > 10.1.1.2.5060: SIP: OPTIONS sip:10.1.1.2 SIP/2.0
E`.&.o..@.......
.$R........OPTIONS sip:10.1.1.2 SIP/2.0
Via: SIP/2.0/UDP 172.16.1.2:5060;branch=z9hG4bK7fe6f214;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@172.16.1.2>;tag=as04e2f6be
To: <sip:10.1.1.2>
Contact: <sip:Unknown@172.16.1.2:5060>
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 13.34.0
Date: Sun, 22 Nov 2020 08:27:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


IP 10.1.1.2.5060 > 172.16.1.2.5060: SIP: SIP/2.0 200 OK
Eh..!...;.~I
.$R............SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.16.1.2:5060;branch=z9hG4bK7fe6f214;rport=5060
From: "Unknown" <sip:Unknown@172.16.1.2:5060>;tag=as04e2f6be
To: <sip:10.1.1.2>;tag=1Djea63KDrtSp
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
Contact: <sip:10.1.1.2>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Length: 0


IP 172.16.1.2.5060 > 10.1.1.2.5060: SIP: OPTIONS sip:10.1.1.2 SIP/2.0
E`.&....@..h....
.$R........OPTIONS sip:10.1.1.2 SIP/2.0
Via: SIP/2.0/UDP 172.16.1.2:5060;branch=z9hG4bK7fe6f214;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@172.16.1.2>;tag=as04e2f6be
To: <sip:10.1.1.2>
Contact: <sip:Unknown@172.16.1.2:5060>
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 13.34.0
Date: Sun, 22 Nov 2020 08:27:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


IP 10.1.1.2.5060 > 172.16.1.2.5060: SIP: SIP/2.0 200 OK
Eh..!...;.}.
.$R............SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.16.1.2:5060;branch=z9hG4bK7fe6f214;rport=5060
From: "Unknown" <sip:Unknown@172.16.1.2:5060>;tag=as04e2f6be
To: <sip:10.1.1.2>;tag=1Djea63KDrtSp
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
Contact: <sip:10.1.1.2>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Length: 0


IP 172.16.1.2.5060 > 10.1.1.2.5060: SIP: OPTIONS sip:10.1.1.2 SIP/2.0
E`.&....@.......
.$R........OPTIONS sip:10.1.1.2 SIP/2.0
Via: SIP/2.0/UDP 172.16.1.2:5060;branch=z9hG4bK7fe6f214;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@172.16.1.2>;tag=as04e2f6be
To: <sip:10.1.1.2>
Contact: <sip:Unknown@172.16.1.2:5060>
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 13.34.0
Date: Sun, 22 Nov 2020 08:27:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


IP 10.1.1.2.5060 > 172.16.1.2.5060: SIP: SIP/2.0 200 OK
Eh..!...;.}.
.$R............SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.16.1.2:5060;branch=z9hG4bK7fe6f214;rport=5060
From: "Unknown" <sip:Unknown@172.16.1.2:5060>;tag=as04e2f6be
To: <sip:10.1.1.2>;tag=1Djea63KDrtSp
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
Contact: <sip:10.1.1.2>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Length: 0


IP 172.16.1.2.5060 > 10.1.1.2.5060: SIP: OPTIONS sip:10.1.1.2 SIP/2.0
E`.&.7..@.......
.$R........OPTIONS sip:10.1.1.2 SIP/2.0
Via: SIP/2.0/UDP 172.16.1.2:5060;branch=z9hG4bK7fe6f214;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@172.16.1.2>;tag=as04e2f6be
To: <sip:10.1.1.2>
Contact: <sip:Unknown@172.16.1.2:5060>
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 13.34.0
Date: Sun, 22 Nov 2020 08:27:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


IP 10.1.1.2.5060 > 172.16.1.2.5060: SIP: SIP/2.0 200 OK
Eh.."p..;.|.
.$R............SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.16.1.2:5060;branch=z9hG4bK7fe6f214;rport=5060
From: "Unknown" <sip:Unknown@172.16.1.2:5060>;tag=as04e2f6be
To: <sip:10.1.1.2>;tag=1Djea63KDrtSp
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
Contact: <sip:10.1.1.2>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Length: 0


IP 172.16.1.2.5060 > 10.1.1.2.5060: SIP: OPTIONS sip:10.1.1.2 SIP/2.0
E`.&....@.......
.$R........OPTIONS sip:10.1.1.2 SIP/2.0
Via: SIP/2.0/UDP 172.16.1.2:5060;branch=z9hG4bK7fe6f214;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@172.16.1.2>;tag=as04e2f6be
To: <sip:10.1.1.2>
Contact: <sip:Unknown@172.16.1.2:5060>
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 13.34.0
Date: Sun, 22 Nov 2020 08:27:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


IP 10.1.1.2.5060 > 172.16.1.2.5060: SIP: SIP/2.0 200 OK
Eh.."...;.|.
.$R............SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.16.1.2:5060;branch=z9hG4bK7fe6f214;rport=5060
From: "Unknown" <sip:Unknown@172.16.1.2:5060>;tag=as04e2f6be
To: <sip:10.1.1.2>;tag=1Djea63KDrtSp
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
Contact: <sip:10.1.1.2>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Length: 0


IP 10.1.1.2.5060 > 172.16.1.2.5060: SIP: SIP/2.0 200 OK
Eh.."...;.|.
.$R............SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.16.1.2:5060;branch=z9hG4bK7fe6f214;rport=5060
From: "Unknown" <sip:Unknown@172.16.1.2:5060>;tag=as04e2f6be
To: <sip:10.1.1.2>;tag=1Djea63KDrtSp
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
Contact: <sip:10.1.1.2>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Length: 0
 
Last edited:

farhaadn

New Member
Sep 20, 2020
24
0
1
IP 192.168.1.2.5060 > 10.1.1.2.5060: SIP: OPTIONS sip:10.1.1.2 SIP/2.0
E`.7.o..;......E
.$R.....#..OPTIONS sip:10.1.1.2 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK7fe6f214;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.1.2:5060>;tag=as04e2f6be
To: <sip:10.1.1.2>
Contact: <sip:Unknown@192.168.1.2:5060>
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 13.34.0
Date: Sun, 22 Nov 2020 08:27:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


IP 10.1.1.2.5060 > 192.168.1.2.5060: SIP: SIP/2.0 200 OK
Eh..!...@..i
.$R...E......t.SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK7fe6f214;rport=5060
From: "Unknown" <sip:Unknown@192.168.1.2:5060>;tag=as04e2f6be
To: <sip:10.1.1.2>;tag=1Djea63KDrtSp
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
Contact: <sip:10.1.1.2>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Length: 0


IP 192.168.1.2.5060 > 10.1.1.2.5060: SIP: OPTIONS sip:10.1.1.2 SIP/2.0
E`.7....;......E
.$R.....#..OPTIONS sip:10.1.1.2 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK7fe6f214;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.1.2:5060>;tag=as04e2f6be
To: <sip:10.1.1.2>
Contact: <sip:Unknown@192.168.1.2:5060>
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 13.34.0
Date: Sun, 22 Nov 2020 08:27:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


IP 10.1.1.2.5060 > 192.168.1.2.5060: SIP: SIP/2.0 200 OK
Eh..!...@...
.$R...E......t.SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK7fe6f214;rport=5060
From: "Unknown" <sip:Unknown@192.168.1.2:5060>;tag=as04e2f6be
To: <sip:10.1.1.2>;tag=1Djea63KDrtSp
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
Contact: <sip:10.1.1.2>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Length: 0


IP 192.168.1.2.5060 > 10.1.1.2.5060: SIP: OPTIONS sip:10.1.1.2 SIP/2.0
E`.7....;......E
.$R.....#..OPTIONS sip:10.1.1.2 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK7fe6f214;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.1.2:5060>;tag=as04e2f6be
To: <sip:10.1.1.2>
Contact: <sip:Unknown@192.168.1.2:5060>
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 13.34.0
Date: Sun, 22 Nov 2020 08:27:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


IP 10.1.1.2.5060 > 192.168.1.2.5060: SIP: SIP/2.0 200 OK
Eh..!...@...
.$R...E......t.SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK7fe6f214;rport=5060
From: "Unknown" <sip:Unknown@192.168.1.2:5060>;tag=as04e2f6be
To: <sip:10.1.1.2>;tag=1Djea63KDrtSp
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
Contact: <sip:10.1.1.2>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Length: 0


IP 192.168.1.2.5060 > 10.1.1.2.5060: SIP: OPTIONS sip:10.1.1.2 SIP/2.0
E`.7.7..;.
....E
.$R.....#..OPTIONS sip:10.1.1.2 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK7fe6f214;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.1.2:5060>;tag=as04e2f6be
To: <sip:10.1.1.2>
Contact: <sip:Unknown@192.168.1.2:5060>
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 13.34.0
Date: Sun, 22 Nov 2020 08:27:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


IP 10.1.1.2.5060 > 192.168.1.2.5060: SIP: SIP/2.0 200 OK
Eh.."p..@...
.$R...E......t.SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK7fe6f214;rport=5060
From: "Unknown" <sip:Unknown@192.168.1.2:5060>;tag=as04e2f6be
To: <sip:10.1.1.2>;tag=1Djea63KDrtSp
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
Contact: <sip:10.1.1.2>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Length: 0


IP 192.168.1.2.5060 > 10.1.1.2.5060: SIP: OPTIONS sip:10.1.1.2 SIP/2.0
E`.7....;. ....E
.$R.....#..OPTIONS sip:10.1.1.2 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK7fe6f214;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.1.2:5060>;tag=as04e2f6be
To: <sip:10.1.1.2>
Contact: <sip:Unknown@192.168.1.2:5060>
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 13.34.0
Date: Sun, 22 Nov 2020 08:27:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


IP 10.1.1.2.5060 > 192.168.1.2.5060: SIP: SIP/2.0 200 OK
Eh.."...@...
.$R...E......t.SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK7fe6f214;rport=5060
From: "Unknown" <sip:Unknown@192.168.1.2:5060>;tag=as04e2f6be
To: <sip:10.1.1.2>;tag=1Djea63KDrtSp
Call-ID: 36cde77d57154d3524dbda5a414acfa2@172.16.1.2:5060
CSeq: 102 OPTIONS
Contact: <sip:10.1.1.2>
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Length: 0
 

ad5ou

Active Member
Jun 12, 2018
887
197
43
Your posted messages only shows options packets.
It also appears there is NAT on the Asterisk side of network. The asterisk box is sending to Freeswitch, but Freeswitch thinks the traffic is coming from the pptp device at 192.168.1.2
 
  • Like
Reactions: farhaadn

farhaadn

New Member
Sep 20, 2020
24
0
1
yes, what can I do?
I can register without problem with another asterisk, and also with extension
 
Status
Not open for further replies.