Hello,

As far as I know there is no way to read or write the INVITE's body, neither with chan_sip nor chan_pjsip.

Jean Aunis


Le 07/12/2017 à 17:35, Olivier a écrit :
Hello,

I'm having a look at section 13.1 from SIP Connect v2 doc (see [1]).
It refers to RFC6442 which gives the following example (sorry for its length):

INVITE sips:b...@biloxi.example.com <mailto:sips%3a...@biloxi.example.com> SIP/2.0    Via: SIPS/2.0/TLS pc33.atlanta.example.com <http://pc33.atlanta.example.com>;branch=z9hG4bK74bf9
   Max-Forwards: 70
   To: Bob <sips:b...@biloxi.example.com <mailto:sips%3a...@biloxi.example.com>>    From: Alice <sips:al...@atlanta.example.com <mailto:sips%3aal...@atlanta.example.com>>;tag=9fxced76sl    Call-ID: 3848276298220188...@atlanta.example.com <mailto:3848276298220188...@atlanta.example.com>    Geolocation: <cid:target123@atlanta.example.com <mailto:cid%3atarget...@atlanta.example.com>>
   Geolocation-Routing: no
   Accept: application/sdp, application/pidf+xml
   CSeq: 31862 INVITE
   Contact: <sips:al...@atlanta.example.com <mailto:sips%3aal...@atlanta.example.com>>
   Content-Type: multipart/mixed; boundary=boundary1
   Content-Length: ...

   --boundary1

   Content-Type: application/sdp

   ...Session Description Protocol (SDP) goes here

   --boundary1

   Content-Type: application/pidf+xml
   Content-ID: <target...@atlanta.example.com <mailto:target...@atlanta.example.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:gbp="urn:ietf:params:xml:ns:pidf:geopriv10:basicPolicy"
xmlns:cl="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr"
          xmlns:gml="http://www.opengis.net/gml";
          xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model"
          entity="pres:al...@atlanta.example.com <mailto:pres%3aal...@atlanta.example.com>">
        <dm:device id="target123-1">
          <gp:geopriv>
            <gp:location-info>
              <gml:location>
                <gml:Point srsName="urn:ogc:def:crs:EPSG::4326">
                  <gml:pos>32.86726 -97.16054</gml:pos>
                </gml:Point>
             </gml:location>
            </gp:location-info>
            <gp:usage-rules>
              <gbp:retransmission-allowed>false
              </gbp:retransmission-allowed>
              <gbp:retention-expiry>2010-11-14T20:00:00Z
              </gbp:retention-expiry>
            </gp:usage-rules>
            <gp:method>802.11</gp:method>
          </gp:geopriv>
<dm:deviceID>mac:1234567890ab</dm:deviceID>
<dm:timestamp>2010-11-04T20:57:29Z</dm:timestamp>
        </dm:device>
      </presence>
   --boundary1--


1. Adding or reading the lines bellow seems easy. How can you add a whole application/pidf+xml section as above either using SIP or PJSIP ?    Geolocation: <cid:target123@atlanta.example.com <mailto:cid%3atarget...@atlanta.example.com>>
   Geolocation-Routing: no

2. Reciprocally, how can you read such application/pidf+xml section an incoming call ?

3. What do you know of this RFC 6442 adoption within SIP industry ?

Best regards

[1] https://www.sipforum.org/download/sipconnect-technical-recommendation-version-2-0/?wpdmdl=2818



-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to