Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
How do I authenticate using the Connection Information
Author Message
uhupfeld
Brekeke Talented


Joined: 08 Nov 2008
Posts: 77
Location: Brazil

PostPosted: Wed Nov 22, 2017 5:50 pm    Post subject: How do I authenticate using the Connection Information Reply with quote

1. Brekeke Product Name and Version:
BSS Standard 3.7.7.8
2. Java version:

3. OS type and the version:
Win7
4. UA (phone), gateway or other hardware/software involved:

5. Your problem:
I want to authenticate a customer based on the Connection Information, which is in the body of the INVITE message.
In Wireshark it is under Message Body -> Connection information (c): IN IP4 xxx.xxx.xxx.xxx

The packet in text is:
INVITE sip:1071155511972716705@sip.bbb.com.br:5060;transport=udp;user=ip SIP/2.0
Allow: INVITE,BYE,REGISTER,ACK,OPTIONS,CANCEL,INFO,SUBSCRIBE,NOTIFY,REFER,UPDATE
Call-ID: 3ZfwgqN48plAPPFK@sip.ipcall.com.br
Contact: <sip:4625559999@200.77.77.77:5060;transport=udp;user=ip>
Content-Type: application/sdp
CSeq: 1433 INVITE
From: <sip:4625559999@sip.bbb.com.br:5060;transport=udp;user=ip>;tag=1-ED3AB776
Max-Forwards: 70
Proxy-Authorization: Digest username="eaisip",realm="sip.bbb.com.br",nonce="9440a4162012b05e7c052c89ea91267e80e1382e",uri="sip:1071155511972716705@sip.bbb.com.br",response="3c4a3ef4f0a1abb624a7eb525997a300",algorithm=MD5
Session-Expires: 1800;refresher=uas
Session-ID: df688a5057ffc3100080697c5819284b
Supported: 100rel,timer,replaces,histinfo
To: <sip:1071155511972716705@sip.bbb.com.br:5060;transport=udp;user=ip>
Via: SIP/2.0/UDP 200.77.77.77:5060;rport;branch=z9hG4bKB3AE6AD8
Content-Length: 374

v=0
o=- 1528 0 IN IP4 200.77.77.77
s=-
c=IN IP4 200.71.77.22
t=0 0
m=audio 32990 RTP/AVP 8 0 18 3 5 101
c=IN IP4 200.77.77.77
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:3 GSM/8000
a=rtpmap:5 DVI4/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv
a=rtcp:32991 IN IP4 200.71.77.22

Here it is the line:
c=IN IP4 200.71.77.22

How do I use this host/IP for authentication?

Thanks
Back to top
View user's profile
uhupfeld
Brekeke Talented


Joined: 08 Nov 2008
Posts: 77
Location: Brazil

PostPosted: Wed Nov 22, 2017 6:05 pm    Post subject: Reply with quote

Is it this way?

$body("c=IN IP4 (.+)") = xxx\.xxx\.xxx\.xxx

Not sure if it is the correct way.
Back to top
View user's profile
Niloc
Brekeke Talented


Joined: 19 Sep 2017
Posts: 70
Location: NL

PostPosted: Wed Nov 22, 2017 6:44 pm    Post subject: Reply with quote

Are you sure you need to use SDP's c= line for authentication?

> $body("c=IN IP4 (.+)") = xxx\.xxx\.xxx\.xxx

It will work.

Also like this.
$sdp.audio("c") = xxx\.xxx\.xxx\.xxx

http://wiki.brekeke.com/wiki/DialPlan-Matching-sdp-audio
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1