Asterisk PJSIP Pidf+xml Presence Question

Home » Asterisk Users » Asterisk PJSIP Pidf+xml Presence Question
Asterisk Users 4 Comments

We have a customer where their switch sends pidf+xml presence information in the SIP INVITE message.

Does Asterisk process this pidf+xml information?
Does it store this in a channel variable that a dial plan could access?
If not, does it store present this information to AMI/ARI applications in any way?

At Astricon 2019, one of the presenters talking about Presence and the growing requirements for 911. Needing to know not just building, but where (floor, etc) in building. I don’t recall the full presentation, but I’m guessing pidf is what he was referring to.

Dan

4 thoughts on - Asterisk PJSIP Pidf+xml Presence Question

  • This is not currently supported. It is ignored if present in the INVITE, and can’t be accessed anywhere. You also can’t send it. Support for geolocation/E911 is being worked on.

  • VGhhbmsgeW91IEpvc2h1YS4NCg0KQW55IGd1ZXNzIG9uIGEgdGltZWZyYW1lIGZvciBnZW9sb2Nh dGlvbi9FOTExIHN1cHBvcnQgYmVpbmcgcGFydCBvZiBhbiBBc3RlcmlzayB2ZXJzaW9uPw0KDQpG
    cm9tOiBhc3Rlcmlzay11c2VycyA8YXN0ZXJpc2stdXNlcnMtYm91bmNlc0BsaXN0cy5kaWdpdW0u Y29tPiBPbiBCZWhhbGYgT2YgSm9zaHVhIEMuIENvbHANClNlbnQ6IEZyaWRheSwgTWF5IDIwLCAy MDIyIDExOjQ3IEFNDQpUbzogQXN0ZXJpc2sgVXNlcnMgTWFpbGluZyBMaXN0IC0gTm9uLUNvbW1l cmNpYWwgRGlzY3Vzc2lvbiA8YXN0ZXJpc2stdXNlcnNAbGlzdHMuZGlnaXVtLmNvbT4NClN1Ympl Y3Q6IFJlOiBbRXh0ZXJuYWxdIFthc3Rlcmlzay11c2Vyc10gQXN0ZXJpc2sgUEpTSVAgcGlkZit4
    bWwgcHJlc2VuY2UgcXVlc3Rpb24NCg0KT24gRnJpLCBNYXkgMjAsIDIwMjIgYXQgMTo0MyBQTSBE
    YW4gQ3JvcHAgPGRhbkBhbXRlbGNvLmNvbTxtYWlsdG86ZGFuQGFtdGVsY28uY29tPj4gd3Jv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