[OpenSIPS-Users] mi_datagram and passing quote sign

Alex Massover alex at jajah.com
Sun Dec 28 16:12:48 CET 2008


Hi!

I'm trying to pass string that includes quote sign(s) via mi_datagram interface.

For example dlg_end_dlg can receive additional header, let say I want two headers, so I build:
:dlg_end_dlg:\n
"Header1: data1\r\nHeader2: data2\r\n\r\n"\n
And this one works.

Now I want the Header2 to be
Header2: data2 "data3 data4"

Straight-forward way:
:dlg_end_dlg:\n
"Header1: data1\r\nHeader2: data2 "data3 data4"\r\n\r\n"\n
doesn't work.

Escaping also doesn't work:
:dlg_end_dlg:\n
"Header1: data1\r\nHeader2: data2 \"data3 data4\"\r\n\r\n"\n

I wonder how to pass something quoted via mi_datagram.

--
Best Regards,
Alex Massover



******************************************************************************
 This footnote confirms that this email message has been scanned by Jajah Inc. Mail system for the presence of malicious code, vandals & computer viruses.
******************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20081228/f0e14427/attachment.htm 


More information about the Users mailing list