com.github.hemantsonu20:sip-parser-antlr

A Sip parser

License

License

Categories

Categories

Ant Build Tools ANTLR Compiler-compiler
GroupId

GroupId

com.github.hemantsonu20
ArtifactId

ArtifactId

sip-parser-antlr
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

com.github.hemantsonu20:sip-parser-antlr
A Sip parser
Project URL

Project URL

https://github.com/hemantsonu20/sip-parser-antlr
Source Code Management

Source Code Management

https://github.com/hemantsonu20/sip-parser-antlr

Download sip-parser-antlr

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.hemantsonu20/sip-parser-antlr/ -->
<dependency>
    <groupId>com.github.hemantsonu20</groupId>
    <artifactId>sip-parser-antlr</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.hemantsonu20/sip-parser-antlr/
implementation 'com.github.hemantsonu20:sip-parser-antlr:1.0.0'
// https://jarcasting.com/artifacts/com.github.hemantsonu20/sip-parser-antlr/
implementation ("com.github.hemantsonu20:sip-parser-antlr:1.0.0")
'com.github.hemantsonu20:sip-parser-antlr:jar:1.0.0'
<dependency org="com.github.hemantsonu20" name="sip-parser-antlr" rev="1.0.0">
  <artifact name="sip-parser-antlr" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.hemantsonu20', module='sip-parser-antlr', version='1.0.0')
)
libraryDependencies += "com.github.hemantsonu20" % "sip-parser-antlr" % "1.0.0"
[com.github.hemantsonu20/sip-parser-antlr "1.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.antlr : antlr4-runtime jar 4.5.3

test (1)

Group / Artifact Type Version
org.testng : testng jar 6.9.9

Project Modules

There are no modules declared in this project.

sip-parser-antlr

Overview

A sip uri parser written with using antlr

The grammar of the sip uri is based on the RFC-3261 with some minor exceptions.

A typical sip-uri takes up the form

sip:[email protected]:80;uriparam1=urivalue1;uriparam2?headerkey1=headerValue1

The library parses this sip uri and returns a java class SipUriInfo. It has following fields.

private boolean isSips;
private String userInfo;
private String host;
private int port = -1;
private Map<String, String> uriParameters;
private Map<String, String> headers;

Examples

// to parse sip uri
SipUriInfo info = SipUtils.parseSipUri("sip:[email protected]:80;uriparam1=urivalue1;uriparam2?headerkey1=headerValue1");

// to parse sips uri
SipUriInfo info = SipUtils.parseSipsUri("sips:[email protected]:80;uriparam1=urivalue1;uriparam2?headerkey1=headerValue1");

For more examples see TestSipUtils

Maven Artifact

<dependency>
    <groupId>com.github.hemantsonu20</groupId>
    <artifactId>sip-parser-antlr</artifactId>
    <version>1.0.0</version>
</dependency>

Latest Published Version

1.0.0 published on July 13th 2016

License

Apache License 2.0

Versions

Version
1.0.0