I'm trying to use SIP.js (0.6.3) with our Asterisk PBX. The initial registration works, but I don't see any incoming packets from Asterisk after that. Especially OPTIONS.
REGISTER sip:xxxxx.xxxxx.xxx SIP/2.0
Via: SIP/2.0/WSS 192.0.2.24;branch=z9hG4bK8268194
Max-Forwards: 70
To: <sip:web_103_54...@xxxxx.xxxxx.xxx>
From: <sip:web_103_54...@xxxxx.xxxxx.xxx>;tag=nf6lfg11f4
Call-ID: eccflapfiouvmsvtrqip0i
CSeq: 94 REGISTER
Authorization: Digest algorithm=MD5, username="web_103_543d42cd67433", realm="pbx", nonce="7950a459", uri="sip:xxxxx.xxxxx.xxx", response="1670cea38fff046564b9eb62285c5812"
Contact: <
sip:kv2q...@192.0.2.24;transport=ws>;reg-id=1;+sip.instance="<urn:uuid:bd248ba4-1e31-45d1-8cfe-a74fbf8ca716>";expires=600
Allow: ACK,CANCEL,BYE,OPTIONS,INFO,NOTIFY,INVITE
Supported: path,gruu,outbound
User-Agent: SIP.js/0.6.3
Content-Length: 0
And I get this response:
SIP/2.0 200 OK
Via: SIP/2.0/WSS 192.0.2.24;branch=z9hG4bK8268194;received=xxx.xxx.xxx.xxx;rport=55361
From: <sip:web_103_54...@xxxxx.xxxxx.xxx>;tag=nf6lfg11f4
To: <sip:web_103_54...@xxxxx.xxxxx.xxx>;tag=as1f9da8c0
Call-ID: eccflapfiouvmsvtrqip0i
CSeq: 94 REGISTER
Server: ipbx 3.0.14
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Expires: 600
Date: Fri, 24 Oct 2014 10:13:43 GMT
Content-Length: 0
And silence after that.
I tried all combinations of hackIpInContact and hackViaTcp, but none works. It works with SIPML5 demo phone, so It's not problem in Asterisk.