Re: [asterisk-users] How to read or write Geolocation (RFC6442) data in SIP/PJSIP messages ?

2017-12-08 Thread Olivier
Thank you both for replying !



2017-12-08 16:02 GMT+01:00 Joshua Colp :

> On Fri, Dec 8, 2017, at 10:58 AM, Jean Aunis wrote:
> > 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.
>
> This is correct. There is nothing in Asterisk or the channel drivers to
> allow this. You would need to define a mechanism to do so and implement
> it in the code.
>
> --
> Joshua Colp
> Digium, Inc. | Senior Software Developer
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - US
> Check us out at: www.digium.com & www.asterisk.org
>
> --
> _
> -- 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
>
-- 
_
-- 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

Re: [asterisk-users] How to read or write Geolocation (RFC6442) data in SIP/PJSIP messages ?

2017-12-08 Thread Joshua Colp
On Fri, Dec 8, 2017, at 10:58 AM, Jean Aunis wrote:
> 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.

This is correct. There is nothing in Asterisk or the channel drivers to
allow this. You would need to define a mechanism to do so and implement
it in the code.

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

-- 
_
-- 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


Re: [asterisk-users] How to read or write Geolocation (RFC6442) data in SIP/PJSIP messages ?

2017-12-08 Thread Jean Aunis

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 
 SIP/2.0
   Via: SIPS/2.0/TLS pc33.atlanta.example.com 
;branch=z9hG4bK74bf9

   Max-Forwards: 70
   To: Bob >
   From: Alice >;tag=9fxced76sl
   Call-ID: 3848276298220188...@atlanta.example.com 

   Geolocation: >

   Geolocation-Routing: no
   Accept: application/sdp, application/pidf+xml
   CSeq: 31862 INVITE
   Contact: >

   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: >

   
   http://www.opengis.net/gml;
  xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model"
  entity="pres:al...@atlanta.example.com 
">

    
  
    
  
    
  32.86726 -97.16054
    
 
    
    
  false
  
  2010-11-14T20:00:00Z
  
    
    802.11
  
mac:1234567890ab
2010-11-04T20:57:29Z
    
  
   --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: >

   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