Asterisk not reponse when use transport TLS with blink?

Get help with installing and running AsteriskNOW.

Moderators: Moderator, Support

Asterisk not reponse when use transport TLS with blink?

Postby ntlongit » Sun Jun 07, 2015 3:36 am

Hello everyone,
I make Secure call follow turorial:

https://wiki.asterisk.org/wiki/display/ ... g+Tutorial

But when I use blink to connect with Asterisk, it cannot register with server. Blink send package to server but don't receive anything from server. This is log file of blink:

Code: Select all
2015-06-07 16:31:09.374653 [blink 15391]: SENDING: Packet 1, +0:00:02.699408
192.168.0.105:41714 -(SIP over TLS)-> 52.68.6.174:5061
REGISTER sip:52.68.6.174 SIP/2.0
Via: SIP/2.0/TLS 192.168.0.105:41714;rport;branch=z9hG4bKPjso-71UQQqAJxF9vE6jAFy1nSEjhuDrzW;alias
Max-Forwards: 70
From: "TLS" <sip:100@52.68.6.174>;tag=k0Vr4lthAdyNqzI8WCtpbPb23zHbLWBR
To: "TLS" <sip:100@52.68.6.174>
Contact: <sip:04187329@192.168.0.105:5061;transport=tls>;+sip.instance="<urn:uuid:84c3c483-4a27-455b-bd0c-18777738c747>";+sip.ice
Call-ID: RzP9cjLA09rBli4L6LHFcCKQrxRt8wlX
CSeq: 1 REGISTER
Expires: 600
Supported: gruu
User-Agent: Blink 1.3.0 (Linux)
Content-Length:  0


--
2015-06-07 16:31:17.088359 [blink 15391]: SENDING: Packet 2, +0:00:10.413114
192.168.0.105:41714 -(SIP over TLS)-> 52.68.6.174:5061
PUBLISH sip:100@52.68.6.174 SIP/2.0
Via: SIP/2.0/TLS 192.168.0.105:41714;rport;branch=z9hG4bKPjGp.HTVJbDS3sJahS04zW-OtKN0Xpsqy.;alias
Max-Forwards: 70
From: "TLS" <sip:100@52.68.6.174>;tag=wBHAr1h3hNYrdLT3ZDUAF53dRJcIIePx
To: "TLS" <sip:100@52.68.6.174>
Call-ID: HNUPxs805C41dvMD4hF28AkBTrt-Tf-b
CSeq: 1 PUBLISH
Event: presence
Expires: 3600
User-Agent: Blink 1.3.0 (Linux)
Content-Type: application/pidf+xml
Content-Length:   763

<?xml version='1.0' encoding='UTF-8'?>
<presence xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" xmlns:caps="urn:ietf:params:xml:ns:pidf:caps" xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid" xmlns:agp-pidf="urn:ag-projects:xml:ns:pidf" xmlns="urn:ietf:params:xml:ns:pidf" entity="sip%3A100%4052.68.6.174"><tuple id="SID-38aa10cc6cfb81923405855d66bdc666"><status><basic>closed</basic><agp-pidf:extended>offline</agp-pidf:extended></status><caps:servcaps/><contact>sip%3A100%4052.68.6.174</contact><timestamp>2015-06-07T16:17:28.184219+07:00</timestamp></tuple><dm:person id="PID-38aa10cc6cfb81923405855d66bdc666"><rpid:activities><rpid:other>offline</rpid:other></rpid:activities><dm:timestamp>2015-06-07T16:17:28.184219+07:00</dm:timestamp></dm:person></presence>
--
2015-06-07 16:31:27.587794 [blink 15391]: SENDING: Packet 3, +0:00:20.912549
192.168.0.105:45600 -(SIP over TLS)-> 52.68.6.174:5061
REGISTER sip:52.68.6.174 SIP/2.0
Via: SIP/2.0/TLS 192.168.0.105:45600;rport;branch=z9hG4bKPjV9jyK62bRpxCXLTZpeliKfPcqwS9.yKU;alias
Max-Forwards: 70
From: "TLS" <sip:100@52.68.6.174>;tag=.IIaCAgL3vSe5WOK9BydgD85GMnG0IfI
To: "TLS" <sip:100@52.68.6.174>
Contact: <sip:04187329@192.168.0.105:5061;transport=tls>;+sip.instance="<urn:uuid:84c3c483-4a27-455b-bd0c-18777738c747>";+sip.ice
Call-ID: 2el8S9K3dZ5K.nfE4cmfZiEyiWZAJvFZ
CSeq: 1 REGISTER
Expires: 600
Supported: gruu
User-Agent: Blink 1.3.0 (Linux)
Content-Length:  0


--
2015-06-07 16:31:52.659980 [blink 15391]: SENDING: Packet 4, +0:00:45.984735
192.168.0.105:45600 -(SIP over TLS)-> 52.68.6.174:5061
SUBSCRIBE sip:100@52.68.6.174 SIP/2.0
Via: SIP/2.0/TLS 192.168.0.105:45600;rport;branch=z9hG4bKPjqWIWhVq68jbtOesTurODNdmsjIareUPk;alias
Max-Forwards: 70
From: "TLS" <sip:100@52.68.6.174>;tag=da6IzNUWj4Wmdc3eyBMG15ta-X-eXp.L
To: <sip:100@52.68.6.174>
Contact: <sip:04187329@192.168.0.105:5061;transport=tls>
Call-ID: 1sRN-lO1ik1zG.VqF4AhiXFhHDgu4cqj
CSeq: 20688 SUBSCRIBE
Event: message-summary
Expires: 3600
Supported: 100rel, replaces, norefersub, gruu
Accept: application/simple-message-summary
Allow-Events: conference, message-summary, dialog, presence, presence.winfo, xcap-diff, dialog.winfo, refer
User-Agent: Blink 1.3.0 (Linux)
Content-Length:  0


This is my sip.conf:
Code: Select all
tlsenable=yes
tlsbindaddr=0.0.0.0:5061
tlscertfile=/etc/asterisk/keys/asterisk.pem
tlscafile=/etc/asterisk/keys/ca.crt
tlscipher=ALL
tlsclientmethod=tlsv1
tlsdontverifyserver=yes

...
[100]
type=peer
secret=123
host=dynamic
canreinvite=no
context=default
dtmfmode=rfc2833
qualify=yes
disallow=all
allow=gsm
allow=alaw
allow=ulaw
allow=g722
allow=g726
allow=h261
allow=h263
allow=h263p
allow=h264
transport=tls



How can I fix it?
Thanks you everyone.
ntlongit
Newsterisk
 
Posts: 2
Joined: Sun Jun 07, 2015 3:25 am

Re: Asterisk not reponse when use transport TLS with blink?

Postby david55 » Tue Jun 09, 2015 3:34 pm

What does the equivalent log from Asterisk show?

You appear to be registering to a public address but specifying a private contact address. That is unlikely to be right.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am


Return to AsteriskNOW Support

Who is online

Users browsing this forum: No registered users and 1 guest