3 thoughts on - Sending XML Over The Asterisk PJSIP

  • That’s a fairly generic question. Can you be more specific about what you are trying to accomplish?

  • I am pretty new with asterisk and actually, I want to send the image to the client and my process is that, first the image is uploaded to the server and once the image uploaded it will return the xml tag that contain the information about that image, Then the sip send that xml to the server, however I don’t see any notify information on the server at all. I wonder do we need to config anything on the server to enable it accept the xml text ?

  • I’m going to go out on a limb and say Asterisk probably isn’t going to do what you want.

    Even if Asterisk ‘received’ the XML in some fashion, I’m not sure what you’d expect Asterisk to do with it. Asterisk is a media application server; I’m not sure what it would do once it got an XML DOM that was metadata associated with an image.

    You can send arbitrary text message to/from Asterisk using SIP MESSAGE
    requests. The fact that the text is XML would be immaterial to Asterisk. That’s probably the closest way to send arbitrary data to Asterisk without writing a specific new module in the PJSIP stack.