mod_xml_cdr note stripping <'s and >'s as needed
Hey Users, I seem to have found a bug. mod_xml_cdr is sending along invalid XML as it is not stripping the <'s and >'s off of important fields. For instance, we're sending along a P-Preferred-Identity header: P-Preferred-Identity: <sip:test@127.0.0.1:5060> and it's getting sent as the following in the xml: <sip_P-Preferred-Identity><sip:test@127.0.0.1></sip_P-Preferred-Identity> However, this is invalid xml (for obvious reasons) and won't parse. I'm currently in the process of double checking, but this seems to be new behavior. I tried to strip some of these headers, but they are important stuff like sip_full_from which I don't think I can. <sip_full_from><sip:test@127.0.0.1:5062
;tag=OBTSiqkuupshsxlztuyb</sip_full_from>
Ideas on what's going on here? Thanks!
https://freeswitch.org/jira/browse/FS-7258 <https://freeswitch.org/jira/browse/FS-7258> We still have not decided what the best solution for this is.
On Apr 17, 2015, at 3:38 PM, Kurtis Heimerl <kheimerl@cs.berkeley.edu> wrote:
Hey Users,
I seem to have found a bug. mod_xml_cdr is sending along invalid XML as it is not stripping the <'s and >'s off of important fields. For instance, we're sending along a P-Preferred-Identity header:
P-Preferred-Identity: <sip:test@127.0.0.1:5060 <http://sip:test@127.0.0.1:5060/>>
and it's getting sent as the following in the xml:
<sip_P-Preferred-Identity><sip:test@127.0.0.1 <mailto:sip%3Atest@127.0.0.1>></sip_P-Preferred-Identity>
However, this is invalid xml (for obvious reasons) and won't parse. I'm currently in the process of double checking, but this seems to be new behavior. I tried to strip some of these headers, but they are important stuff like sip_full_from which I don't think I can.
<sip_full_from><sip:test@127.0.0.1:5062 <http://sip:test@127.0.0.1:5062/>>;tag=OBTSiqkuupshsxlztuyb</sip_full_from>
Ideas on what's going on here?
Thanks!
This is with 1.4.18~1-1~wheezy+1 BTW. On Fri, Apr 17, 2015 at 12:38 PM, Kurtis Heimerl <kheimerl@cs.berkeley.edu> wrote:
Hey Users,
I seem to have found a bug. mod_xml_cdr is sending along invalid XML as it is not stripping the <'s and >'s off of important fields. For instance, we're sending along a P-Preferred-Identity header:
P-Preferred-Identity: <sip:test@127.0.0.1:5060>
and it's getting sent as the following in the xml:
<sip_P-Preferred-Identity><sip:test@127.0.0.1></sip_P-Preferred-Identity>
However, this is invalid xml (for obvious reasons) and won't parse. I'm currently in the process of double checking, but this seems to be new behavior. I tried to strip some of these headers, but they are important stuff like sip_full_from which I don't think I can.
<sip_full_from><sip:test@127.0.0.1:5062
;tag=OBTSiqkuupshsxlztuyb</sip_full_from>
Ideas on what's going on here?
Thanks!
Just confirmed this as a bug, rolling back to 1.4.15 fixed it. Should I open a ticket? On Fri, Apr 17, 2015 at 1:14 PM, Kurtis Heimerl <kheimerl@cs.berkeley.edu> wrote:
This is with 1.4.18~1-1~wheezy+1 BTW.
On Fri, Apr 17, 2015 at 12:38 PM, Kurtis Heimerl <kheimerl@cs.berkeley.edu
wrote:
Hey Users,
I seem to have found a bug. mod_xml_cdr is sending along invalid XML as it is not stripping the <'s and >'s off of important fields. For instance, we're sending along a P-Preferred-Identity header:
P-Preferred-Identity: <sip:test@127.0.0.1:5060>
and it's getting sent as the following in the xml:
<sip_P-Preferred-Identity><sip:test@127.0.0.1></sip_P-Preferred-Identity>
However, this is invalid xml (for obvious reasons) and won't parse. I'm currently in the process of double checking, but this seems to be new behavior. I tried to strip some of these headers, but they are important stuff like sip_full_from which I don't think I can.
<sip_full_from><sip:test@127.0.0.1:5062
;tag=OBTSiqkuupshsxlztuyb</sip_full_from>
Ideas on what's going on here?
Thanks!
As I said earlier today: https://freeswitch.org/jira/browse/FS-7258 <https://freeswitch.org/jira/browse/FS-7258> We still have not decided what the best solution for this is.
On Apr 17, 2015, at 6:07 PM, Kurtis Heimerl <kheimerl@cs.berkeley.edu> wrote:
Just confirmed this as a bug, rolling back to 1.4.15 fixed it. Should I open a ticket?
On Fri, Apr 17, 2015 at 1:14 PM, Kurtis Heimerl <kheimerl@cs.berkeley.edu <mailto:kheimerl@cs.berkeley.edu>> wrote: This is with 1.4.18~1-1~wheezy+1 BTW.
On Fri, Apr 17, 2015 at 12:38 PM, Kurtis Heimerl <kheimerl@cs.berkeley.edu <mailto:kheimerl@cs.berkeley.edu>> wrote: Hey Users,
I seem to have found a bug. mod_xml_cdr is sending along invalid XML as it is not stripping the <'s and >'s off of important fields. For instance, we're sending along a P-Preferred-Identity header:
P-Preferred-Identity: <sip:test@127.0.0.1:5060 <http://sip:test@127.0.0.1:5060/>>
and it's getting sent as the following in the xml:
<sip_P-Preferred-Identity><sip:test@127.0.0.1 <mailto:sip%3Atest@127.0.0.1>></sip_P-Preferred-Identity>
However, this is invalid xml (for obvious reasons) and won't parse. I'm currently in the process of double checking, but this seems to be new behavior. I tried to strip some of these headers, but they are important stuff like sip_full_from which I don't think I can.
<sip_full_from><sip:test@127.0.0.1:5062 <http://sip:test@127.0.0.1:5062/>>;tag=OBTSiqkuupshsxlztuyb</sip_full_from>
Ideas on what's going on here?
Thanks!
Oh I hadn't seen that (and I guess google hasn't picked it up enough to find it online). Glad to see you all are on this, I'll patiently await a resolution. On Fri, Apr 17, 2015 at 3:37 PM, Michael Jerris <mike@jerris.com> wrote:
As I said earlier today:
https://freeswitch.org/jira/browse/FS-7258
We still have not decided what the best solution for this is.
On Apr 17, 2015, at 6:07 PM, Kurtis Heimerl <kheimerl@cs.berkeley.edu> wrote:
Just confirmed this as a bug, rolling back to 1.4.15 fixed it. Should I open a ticket?
On Fri, Apr 17, 2015 at 1:14 PM, Kurtis Heimerl <kheimerl@cs.berkeley.edu> wrote:
This is with 1.4.18~1-1~wheezy+1 BTW.
On Fri, Apr 17, 2015 at 12:38 PM, Kurtis Heimerl < kheimerl@cs.berkeley.edu> wrote:
Hey Users,
I seem to have found a bug. mod_xml_cdr is sending along invalid XML as it is not stripping the <'s and >'s off of important fields. For instance, we're sending along a P-Preferred-Identity header:
P-Preferred-Identity: <sip:test@127.0.0.1:5060>
and it's getting sent as the following in the xml:
<sip_P-Preferred-Identity><sip:test@127.0.0.1
</sip_P-Preferred-Identity>
However, this is invalid xml (for obvious reasons) and won't parse. I'm currently in the process of double checking, but this seems to be new behavior. I tried to strip some of these headers, but they are important stuff like sip_full_from which I don't think I can.
<sip_full_from><sip:test@127.0.0.1:5062
;tag=OBTSiqkuupshsxlztuyb</sip_full_from>
Ideas on what's going on here?
Thanks!
participants (2)
-
Kurtis Heimerl
-
Michael Jerris