Go Down

Topic: Let arduino ring phones via SIP (Read 15584 times) previous topic - next topic

netdream

Hi All,
i am still struggling to get a solution for my sip registration issue.
I have now tried to use a different sip server but i cant get a positive registration.

This time the problem looks to be slightly different. I think the registration is failing as i am not passing the opaque field back on the second registration attempt.

Please see link below for information on opaque

https://www.ietf.org/mail-archive/web/sip/current/msg20292.html

Is anyone able to shed any light on why I am not collecting this data from the buffer ?

Serial ooutput shown below


Configuring Ethernet using DHCP...
ername="locext300", realm="quadro", nonce="32a91b19b23d961f4651dc4e96a8f924", uri="sip:321@192.168.240.240", response=""
Configuring Ethernet using DHCP...
DHCP succesfull: IP=192.168.240.222.
connecting to SIP server...
UDP initialized
REGISTER sip:192.168.240.240 SIP/2.0
Call-ID: 82dbcb945be55064382340188c4e7f46@0:0:0:0:0:0:0:0
CSeq: 1 REGISTER
From: "locext300" <sip:locext300@192.168.240.240>;tag=12ee6250
To: "locext300" <sip:locext300@192.168.240.240>
Via: SIP/2.0/UDP 192.168.240.222:5060;branch=z9hG4bK-343035-2bf4386c05f7697fc0ae10dc75cd1b35
Content-Length: 0

Received UDP packet of size 490
<SIP/2.0 401 Unauthorized
<Via: SIP/2.0/UDP 192.168.240.222:5060;branch=z9hG4bK-343035-2bf4386c05f7697fc0ae10dc75cd1b35
<To: "locext300" <sip:locext300@192.168.240.240>
<From: "locext300" <sip:locext300@192.168.240.240>;tag=12ee6250
<CSeq: 1 REGISTER
<Call-ID: 82dbcb945be55064382340188c4e7f46@0:0:0:0:0:0:0:0
<Server: Epygi Quadro SIP User Agent/v5.3.28 (QUADRO-2X)
<WWW-Authenticate: Digest realm="quadro",nonce="32a91b19b23d961f4651dc4e96a8f924",opaque="1516359373"
locext300:quadro:secret123
HA1:12b94a9fefb0474d16f1c173a5499e37
opaque:
nonce:32a91b19b23d961f4651dc4e96a8f924
HA2:54e901c6b2ae88eadd5c41308b86b968
RESPSEED=12b94a9fefb0474d16f1c173a5499e37:32a91b19b23d961f4651dc4e96a8f924:54e901c6b2ae88eadd5c41308b86b968
RESP=dab5cec72a51992dc6126f7f2eaa4069
nonce=32a91b19b23d961f4651dc4e96a8f924
<Content-Length: 0
<
REGISTER sip:192.168.240.240 SIP/2.0
Call-ID: 82dbcb945be55064382340188c4e7f46@0:0:0:0:0:0:0:0
CSeq: 2 REGISTER
From: "locext300" <sip:locext300@192.168.240.240>;tag=12ee6250
To: "locext300" <sip:locext300@192.168.240.240>
Via: SIP/2.0/UDP 192.168.240.222:5060;branch=z9hG4bK-343035-2bf4386c05f7697fc0ae10dc75cd1b35
Authorization: Digest username="locext300", realm="quadro", nonce="32a91b19b23d961f4651dc4e96a8f924", uri="sip:192.168.240.240", response="dab5cec72a51992dc6126f7f2eaa4069",algorithm=MD5, opaque=
Content-Length: 0

Received UDP packet of size 490
<SIP/2.0 401 Unauthorized
<Via: SIP/2.0/UDP 192.168.240.222:5060;branch=z9hG4bK-343035-2bf4386c05f7697fc0ae10dc75cd1b35
<To: "locext300" <sip:locext300@192.168.240.240>
<From: "locext300" <sip:locext300@192.168.240.240>;tag=12ee6250
<CSeq: 2 REGISTER
<Call-ID: 82dbcb945be55064382340188c4e7f46@0:0:0:0:0:0:0:0
<Server: Epygi Quadro SIP User Agent/v5.3.28 (QUADRO-2X)
<WWW-Authenticate: Digest realm="quadro",nonce="32a91b19b23d961f4651dc4e96a8f924",opaque="1516359373"
<Content-Length: 0


Thanks for any help...

netdream

Below the CPP and H files for Sipringer

Nobi

Hi,

i am trying to make SIP Calls working with an ESP8266, but i am not able to compile the files posted in this thread. The error message is:
Code: [Select]
/SIPRinger.cpp: In member function 'void SIPRinger::compute_response(char*, char*, char*)':
SIPRinger.cpp:47:25: error: 'MD5' has not been declared
   unsigned char* hash = MD5::make_hash(m_haData);
                         ^
SIPRinger.cpp:60:10: error: 'MD5' has not been declared
   hash = MD5::make_hash(m_haData);
          ^
SIPRinger.cpp:66:10: error: 'MD5' has not been declared
   hash = MD5::make_hash(m_responseData);
          ^


Has anyone an idea how to fix this?

thanks in advance

berndq

Is the MD5 code available in your project? Check the messages at the beginning of the thread for the required libraries.

Go Up