Click here to Skip to main content
15,885,435 members
Articles / Programming Languages / Visual C++ 10.0

SIP Stack (1 of 3)

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
20 Aug 2012CPOL3 min read 30K   1.7K   4  
SIP Stack Implementation on the basis of RFC SIP 3261 Specification
SIP/2.0/UDP erlang.bell-telephone.com:5060;branch=z9hG4bK87asdks7
SIP/2.0/UDP 192.0.2.1:5060 ;received=192.0.2.207;branch=z9hG4bK77asjd
SIP / 2.0 / UDP first.example.com: 4000;ttl=16;maddr=224.2.0.1 ;branch=z9hG4bKa7c6a8dlze.1

$
$ examples from the rfc
$
SIP/2.0/UDP my.ex.fr :4054 ;ttl=16; maddr=224.2.0.1; branch=a7c6a8dlze.1 (Acme server)
SIP/2.0/UDP adk8
SIP/2.0/UDP callerspc.univ.edu
SIP/2.0/UDP 10.0.1.1:5061
SIP/2.0/UDP 169.130.12.5
SIP/2.0/UDP erlang.bell-telephone.com:5060
SIP/2.0/UDP 128.59.16.1:5060 ;received=128.59.19.3
SIP/2.0/UDP sip.example.com;branch=7c337f30d7ce.1;maddr=239.128.16.254;ttl=16
SIP/2.0/UDP mouse.wonderland.com
SIP/2.0/UDP kton.bell-tel.com
SIP/2.0/UDP sip.ieee.org ;branch=3d8a50dbf5a28d.1
SIP/2.0/UDP c.bell-tel.com
$
$ torture valid cases
$                                             Is this valid?: 'bob="'
SIP/2.0/UDP my.ex.fr:4000;ttl=15;joe=tokenabc123-.!%* ; bob="
$
SIP/2.0/UDP my.ex.fr
SIP/2.0/UDP my.ex.fr:4054
SIP/2.0/UDP  my.ex.fr:4054
SIP/ 2.0/UDP      my.ex.fr:4054
SIP  /    2.0    /    UDP my.ex.fr

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
India India
Hatim Haidry

VC++, Technical Architect

India

haidryhatim@gmail.com

Comments and Discussions