How do I authenticate using the Connection Information

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
uhupfeld
Posts: 77
Joined: Sat Nov 08, 2008 12:15 pm
Location: Brazil

How do I authenticate using the Connection Information

Post by uhupfeld »

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
uhupfeld
Posts: 77
Joined: Sat Nov 08, 2008 12:15 pm
Location: Brazil

Post by uhupfeld »

Is it this way?

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

Not sure if it is the correct way.
Niloc
Posts: 70
Joined: Tue Sep 19, 2017 9:49 pm
Location: NL

Post by Niloc »

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-M ... -sdp-audio
Post Reply