Closed matko238 closed 3 years ago
Hi,
Login field is currently not supported yet, since most of the systems that I have access to doesn't require this feature, but this should be a easy feature to add.
From the log's that you shared, it seems that the registration request is of tinyphone only. Can you please share an example request of MicroSIP registration?
Hi,
thanks for quick response, here is log when MicroSIP account successfully logs in:
02/06/2021 9:33:48 AM - Updating device Dev(1737692821):[sip:100@127.0.0.1:49915;ob / 100] by message: DevUpd Recv Req REGISTER from 127.0.0.1:49915 tid=Pje086b230678147f8ba8a999cc8dd11d7 Call-ID=636ec0169dc943918ae4897ccd2530c9:
REGISTER sip:127.0.0.1 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:49915;rport=49915;branch=z9hG4bKPje086b230678147f8ba8a999cc8dd11d7
Max-Forwards: 70
Contact: <sip:100@127.0.0.1:49915;ob>
To: <sip:100@127.0.0.1>
From: <sip:100@127.0.0.1>;tag=3ee465343b874244bb586c06782087f6
Call-ID: 636ec0169dc943918ae4897ccd2530c9
CSeq: 48656 REGISTER
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Proxy-Authorization: Digest username="PYeX1GFoVS",realm="3CXPhoneSystem",nonce="414d535c162ee56c13:829e7ffb777ab928acaa629a9bc478a7",uri="sip:127.0.0.1",response="23bbc531444ad67b137c4fb48d1133a6",algorithm=MD5
User-Agent: MicroSIP/3.20.3
Content-Length: 0
Username used for registration is "PYeX1GFoVS". If needed, I can provide pcap file with capture of login/registration flow.
You can easily get 3CX Phone System trial (one year) for free on their site.
Can you try out with the build from #36 pr?
Here is the sequence with 3CX
REGISTER sip:1.1.1.1 SIP/2.0
Via: SIP/2.0/UDP 2.2.2.2:16797;rport;branch=z9hG4bKPjyIOE-YB0xMgVgGu0fCGUFCHeTgGxk8ut
Max-Forwards: 70
From: <sip:100@1.1.1.1>;tag=vQkgosoEe.qZ-.biTay8T5GcEIF6Hv2h
To: <sip:100@1.1.1.1>
Call-ID: iRK94aJpM.1FCpe.my-DyVAwScdv.kTx
CSeq: 64676 REGISTER
User-Agent: TinyPhone Pjsua2 v36.0.0.81
Contact: <sip:100@2.2.2.2:16797;ob>
Expires: 600
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Proxy-Authorization: Digest username="RfRRjz...5", realm="3CXPhoneSystem", nonce="414d535960201c4c45:bb5bbaba8e72c65e65b67c3c526ef6e0", uri="sip:1.1.1.1", response="8e7a5c8937d4943a3cdb4841caeb318f", algorithm=MD5
Content-Length: 0
--end msg--
2021-02-07 22:28:52.670 pjsua_core.c .RX 411 bytes Response msg 200/REGISTER/cseq=64676 (rdata0x107018e28) from UDP 1.1.1.1:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 2.2.2.2:16797;rport=16797;branch=z9hG4bKPjyIOE-YB0xMgVgGu0fCGUFCHeTgGxk8ut
Contact: <sip:100@2.2.2.2:16797;ob>;expires=600
To: <sip:100@1.1.1.1>;tag=b1476228
From: <sip:100@1.1.1.1>;tag=vQkgosoEe.qZ-.biTay8T5GcEIF6Hv2h
Call-ID: iRK94aJpM.1FCpe.my-DyVAwScdv.kTx
CSeq: 64676 REGISTER
User-Agent: 3CXPhoneSystem 16.0.7.1078 (1078)
Content-Length: 0
Hi, when I try to login to 3CX, i get this (in 3CX log):
tinyphone log:
MicroSIP logs in ok with same login data BUT it's sending another field ("Username" - 103 and "Login" - CJ7TuEHxxx) and you can see this additional field here:
https://www.microsip.org/help#login
How we can send "Login" and "Username"? I tried this but it isn't working: