[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sip] Multiple body-parts in one INFO




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


----BEGIN----
INFO sip:bob at example.com SIP/2.0
Call-ID: 6994090221306382483-1149617605 at 192.168.1.1
From: <sip:alice at example.com>;tag=27285
To: <sip:bob at example.com>;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: <sleepy at tryptophan.com>

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


Or...


----BEGIN----
INFO sip:bob at example.com SIP/2.0
Call-ID: 6994090221306382483-1149617605 at 192.168.1.1
From: <sip:alice at example.com>;tag=27285
To: <sip:bob at example.com>;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:santa@northpole.com
Content-Length: 917
Content-Type: multipart/mixed;boundary="boundary1"

--boundary1
Content-Type: application/dtmf-relay
Content-ID: <sleepy at tryptophan.com>

Signal=1
--boundary1
Content-Type: application/pidf+xml
Content-ID: <santa at northpole.com>

<?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:point2d at example.com">
    <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 sip-implementors at cs.columbia.edu for questions on current sip
Use sipping at ietf.org for new developments on the application of sip