[SR-Users] xmlops XPath question

2014-05-03 Thread Alex Balashov
Hello, I don't know a lot about XML or XPath, so I was hoping someone could help me out. I'm trying to parse out 'Event: dialog' state notifications from NOTIFYs using xmlops. They look like this: ?xml version=1.0? dialog-info xmlns=urn:ietf:params:xml:ns:dialog-info version=5 state=full

Re: [SR-Users] xmlops XPath question

2014-05-03 Thread Alex Balashov
It's definitely namespace-related, because when I manually hack out the namespace, it works fine! $var(x) = $rb; $var(x) = $(var(x){re.subst,/xmlns=\.+\//}); $xml(u=doc) = $var(x); xlog(L_INFO, State: $xml(u=xpath:/dialog-info/dialog[1]/state/text())\n); But I can't for the

Re: [SR-Users] xmlops XPath question

2014-05-03 Thread Daniel-Constantin Mierla
This kind usage of xmlns in an xml doc is a hack done by SIMPLE WG breaking XML standard, because any ns has to use a prefix for each corresponding name. If you search on google, you will fine some discussions on the web (iirc, Inaki was there as well) - libxml2 devs said they don't want to

Re: [SR-Users] xmlops XPath question

2014-05-03 Thread Alex Balashov
On 05/03/2014 04:31 AM, Daniel-Constantin Mierla wrote: This kind usage of xmlns in an xml doc is a hack done by SIMPLE WG breaking XML standard, because any ns has to use a prefix for each corresponding name. If you search on google, you will fine some discussions on the web (iirc, Inaki was

Re: [SR-Users] xmlops XPath question

2014-05-03 Thread Daniel-Constantin Mierla
On 03/05/14 10:33, Alex Balashov wrote: On 05/03/2014 04:31 AM, Daniel-Constantin Mierla wrote: This kind usage of xmlns in an xml doc is a hack done by SIMPLE WG breaking XML standard, because any ns has to use a prefix for each corresponding name. If you search on google, you will fine some

[SR-Users] [sr-user] textops module - search_append_body(re, txt) - append new line

2014-05-03 Thread Cockhootec Yahrabee
Hi, I am trying to append new field in SDP and I need to append new line but I don't know how. I tried to google for solution but I didn't find anything. I want to route my RTP and RTCP packet to port 5060 (this is for development of my school project, I know that in the context of correct SIP

[SR-Users] Location table not getting updated

2014-05-03 Thread VOIP Tests
Hello, can someone let me know what could be the reason that the location table in the kamailiio db does not get updated? There are some extensions that I can see in the location table but not others, but I am still able to make extension to extension calls to all extensions. This is a multi

Re: [SR-Users] Location table not getting updated

2014-05-03 Thread Alex Balashov
On 05/03/2014 10:50 PM, VOIP Tests wrote: Hello, can someone let me know what could be the reason that the location table in the kamailiio db does not get updated? There are some extensions that I can see in the location table but not others, but I am still able to make extension to extension

Re: [SR-Users] Location table not getting updated

2014-05-03 Thread VOIP Tests
Hello Alex, my usrloc setting are as follows: #!ifdef WITH_USRLOCDB modparam(usrloc, db_url, DBURL) modparam(usrloc, db_mode, 2) modparam(usrloc, use_domain, MULTIDOMAIN) modparam(usrloc, matching_mode, 1) Arun On Sat, May 3, 2014 at 9:51 PM, Alex Balashov abalas...@evaristesys.comwrote: On

Re: [SR-Users] Location table not getting updated

2014-05-03 Thread Alex Balashov
On 05/03/2014 11:08 PM, VOIP Tests wrote: Hello Alex, my usrloc setting are as follows: #!ifdef WITH_USRLOCDB modparam(usrloc, db_url, DBURL) modparam(usrloc, db_mode, 2) modparam(usrloc, use_domain, MULTIDOMAIN) modparam(usrloc, matching_mode, 1) Then, I would say wait for timer_interval

Re: [SR-Users] Location table not getting updated

2014-05-03 Thread VOIP Tests
No, the table does not seem to get updated. The entries in kamctl ul show --brief does not match the entries in the location table. Any suggestions? Thank you, Arun On Sat, May 3, 2014 at 10:10 PM, Alex Balashov abalas...@evaristesys.comwrote: On 05/03/2014 11:08 PM, VOIP Tests wrote: