[asterisk-users] Sending XML over the asterisk PJSIP

Matthew Jordan mjordan at digium.com
Sun Oct 18 18:07:06 CDT 2015


On Sat, Oct 17, 2015 at 6:59 PM, Thyda ENG <engthyda at gmail.com> wrote:
> 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.

-- 
Matthew Jordan
Digium, Inc. | Director of Technology
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org



More information about the asterisk-users mailing list