Re: Multiple body-parts in one INFO

Hadriel Kaplan <[email protected]>
Newsgroups gmane.ietf.sip
Message-ID <E6C2E8958BA59A4FB960963D475F7AC31374B1F153@mail>

> -----Original Message-----
> From: Christer Holmberg [mailto:[email protected]]
> Sent: Friday, November 28, 2008 5:29 PM
>
> Could someone show an INFO message example if we would use CID?


----BEGIN----
INFO sip:[email protected] SIP/2.0
Call-ID: [email protected]
From: <sip:[email protected]>;tag=27285
To: <sip:[email protected]>;tag=GR52RWG346-34
CSeq: 2 INFO
Via: SIP/2.0/UDP 192.168.1.1:5060;branch=z9hG4bK-6110000000000893
Max-Forwards: 70
Info-Package: dtmf-relay;cid=sleepy%40tryptophan.com
Content-Length: 10
Content-Type: application/dtmf-relay
Content-ID: <[email protected]>

Signal=1
----END----


Or...


----BEGIN----
INFO sip:[email protected] SIP/2.0
Call-ID: [email protected]
From: <sip:[email protected]>;tag=27285
To: <sip:[email protected]>;tag=GR52RWG346-34
CSeq: 2 INFO
Via: SIP/2.0/UDP 192.168.1.1:5060;branch=z9hG4bK-6110000000000893
Max-Forwards: 70
Info-Package: dtmf-relay;cid=sleepy%40tryptophan.com
Geolocation: cid:[email protected]
Content-Length: 917
Content-Type: multipart/mixed;boundary="boundary1"

--boundary1
Content-Type: application/dtmf-relay
Content-ID: <[email protected]>

Signal=1
--boundary1
Content-Type: application/pidf+xml
Content-ID: <[email protected]>

<?xml version="1.0" encoding="UTF-8"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10"
xmlns:cl="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr"
xmlns:gs="http://www.opengis.net/pidflo/1.0"
xmlns:gml="http://www.opengis.net/gml"
entity="pres:[email protected]">
    <tuple id="sg89abcd">
     <status>
      <gp:geopriv>
       <gp:location-info>
        <gml:Point srsName="urn:ogc:def:crs:EPSG::4326"
          xmlns:gml="http://www.opengis.net/gml">
         <gml:pos>90.0 0.0</gml:pos>
        </gml:Point>
       </gp:location-info>
      </gp:geopriv>
     </status>
     <timestamp>2008-12-25T20:57:29Z</timestamp>
    </tuple>
</presence>
--boundary1--
----END----

-hadriel
p.s. I did it by hand obviously, so I'm just guessing on content-length and such.  And I have no idea if the geo-loc stuff I created is right - I can't seem to find one example SIP message with it in a draft, and it's damn confusing. (and an impressive amount of overhead to describe a latitude+longitude, address, or well-known string)

_______________________________________________
Sip mailing list  https://www.ietf.org/mailman/listinfo/sip
This list is for NEW development of the core SIP Protocol
Use [email protected] for questions on current sip
Use [email protected] for new developments on the application of sip
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.