Re: [SR-Users] Lua script calling rewriteuri

2012-06-13 Thread Sharif Tanvir Rahman
Hi Daniel, I need to access custom database tables (i.e. not default with kamailio) from a lua script (extending kamailio.cfg). Processing any incoming SIP request starts with a lua function and that in turn call other functions - and each one needs database access for taking routing decision. T

Re: [SR-Users] topoh - capturing encrypted values

2012-06-13 Thread Daniel-Constantin Mierla
Hello, the message content is encoded just before writing to socket, so no way to get it in the config route block right now. With a bit of development, topoh can export a function/pv/transformation that can return the encoded value. Cheers, Daniel On 6/13/12 7:49 PM, Alex Balashov wrote: G

[SR-Users] topoh - capturing encrypted values

2012-06-13 Thread Alex Balashov
Given the transparency with which 'topoh' operates, is there any way to capture the new, fake values that it has substituted? In other words, can I, for example, xlog the new Call-ID produced by it? Or does that all take place on a level of abstraction that cannot be intercepted in script?

Re: [SR-Users] About xcap xuid in kamailio

2012-06-13 Thread Andreas Granig
Hi Juha, On 06/13/2012 05:07 PM, Juha Heinanen wrote: > i did some more presence tests with jitsi. when i start jitsi, it > registers its sip uri, subscribes to its own presence.winfo and presence > of another uri, and publishes its own presence. > > when i then quit jitsi, it un-publishes its ow

Re: [SR-Users] About xcap xuid in kamailio

2012-06-13 Thread Min Wang
Hi Juha thanks a lot. Will do min On 06/13/2012 05:10 PM, Juha Heinanen wrote: Min Wang writes: Just wondering which version of are you using on the kamailio server side ? 3.3. If I restart jitsi, jitis did send publish from the trace, but kamailio did not s

Re: [SR-Users] About xcap xuid in kamailio

2012-06-13 Thread Juha Heinanen
Min Wang writes: > Just wondering which version of are you using on the kamailio server > side ? 3.3. > If I restart jitsi, jitis did send publish from the trace, but > kamailio did not send out the notification. try with kamailio 3.3 and tell exactly which publish you are talking ab

Re: [SR-Users] About xcap xuid in kamailio

2012-06-13 Thread Juha Heinanen
i did some more presence tests with jitsi. when i start jitsi, it registers its sip uri, subscribes to its own presence.winfo and presence of another uri, and publishes its own presence. when i then quit jitsi, it un-publishes its own presence, un-subscribes presence of the other uri, unregisters

Re: [SR-Users] About xcap xuid in kamailio

2012-06-13 Thread Min Wang
Hi Juha: Just wondering which version of are you using on the kamailio server side ? I've used kamailio 3.1, jitsi/bria are subscribed to each other and both's status=1 in the watchers. If I restart jitsi, jitis did send publish from the trace, but kamailio did not send out the

Re: [SR-Users] About xcap xuid in kamailio

2012-06-13 Thread Juha Heinanen
Andreas Granig writes: > Looks like that has been addressed already. At least with svn trunk > verison, it's sending SIP-If-Match with Expires: 0. Could be worth > taking another try with a nightly 1.1 build? yes, the bug is fixed in nightly build. -- juha __

Re: [SR-Users] AVPs - how many values on stack

2012-06-13 Thread Daniel-Constantin Mierla
Hello, there were some discussions in the past, I don't recall someone implemented a dedicated mechanism for it (I didn't). The way to find out is a loop to count in config file: $var(n) = 0; while( $(avp(x)[$var(n)]) != $null ) $var(n) = $var(n) +1; Cheers, Daniel On 6/13/12 12:02 PM, Olle

Re: [SR-Users] About xcap xuid in kamailio

2012-06-13 Thread Andreas Granig
Hi Juha, On 06/13/2012 11:50 AM, Juha Heinanen wrote: >> For me, reporting a presence bug on the jitsi-users mailing list, along >> with pointing out exactly where in the code and how to fix it eventually >> worked. Did you get in touch with them on one of the lists? > > i don't remember if i sen

[SR-Users] AVPs - how many values on stack

2012-06-13 Thread Olle E. Johansson
I got this question today that I can't find the answer on: How many values are there in an avp? If I have pushed X values into the AVP - is there a function that counts them for me? /O ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mai

Re: [SR-Users] drouting module: can I use non-digit prefix?

2012-06-13 Thread Daniel-Constantin Mierla
Hello, can you try with the patch from commit: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c737ff95bb2e742981d81088169baa60d4605b85 It is one line of effective code that you have to change. Let me know if goes ok now and I will backport to stable branches. Cheers, Dan

Re: [SR-Users] About xcap xuid in kamailio

2012-06-13 Thread Juha Heinanen
Andreas Granig writes: > For me, reporting a presence bug on the jitsi-users mailing list, along > with pointing out exactly where in the code and how to fix it eventually > worked. Did you get in touch with them on one of the lists? i don't remember if i send anything to mailing list. the bug i

Re: [SR-Users] Dispatcher alg:7 not working accordingly

2012-06-13 Thread SamyGo
Hi again, Nice to read the comment from you. Yes it could be a case - but this race condition will remain valid until I put some check on the insertion and lock the resource if one user is using that table, I forgot what they say in programming terms What do you suggest i do to avoid this since I

Re: [SR-Users] About xcap xuid in kamailio

2012-06-13 Thread Andreas Granig
Hi, On 06/13/2012 10:52 AM, Juha Heinanen wrote: > my feeling is that there is no real commitment in jitsi for sip > presence/xcap. i found a presence bug long time ago and reported it on > jitsi tracker. so far nothing has happened. For me, reporting a presence bug on the jitsi-users mailing l

Re: [SR-Users] drouting module: can I use non-digit prefix?

2012-06-13 Thread Yufei Tao
Hi Daniel The version is: version: kamailio 3.2.2 (i386/linux) flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAP

Re: [SR-Users] About xcap xuid in kamailio

2012-06-13 Thread Juha Heinanen
Min Wang writes: > BTW, it seems jitsi does not support RLS at this moment even > though it store the contact list in the xcap?? I guess I should asked > this in the jitsi mailing list. my feeling is that there is no real commitment in jitsi for sip presence/xcap. i found a presence bug

Re: [SR-Users] About xcap xuid in kamailio

2012-06-13 Thread Min Wang
HI Daniel thanks a lot. Each xcap document is stored for a specific user, whose ID is taken from first parameter of xcap_put(...)/etc. Now the user id can be the same as in xcap url or something known only internally, looked up via some logic in config. In this way you have full flexibilit

[SR-Users] release of v3.3.0 scheduled for Monday, June 18, 2012

2012-06-13 Thread Daniel-Constantin Mierla
Hello, as branch 3.3 was created and several web pages updated/created already for v3.3.0, the plan is to make the full release next Monday, on June 18, 2012. Packaging specs look very good thanks to Jon and Peter. The few issues left open should be worked meanwhile. For other opinions, repl

Re: [SR-Users] About xcap xuid in kamailio

2012-06-13 Thread Daniel-Constantin Mierla
Hello, On 6/12/12 12:51 PM, Min Wang wrote: HI Daniel: thanks a lot for the explaination. I have tried the jitsi and bria. jitsi use this kind of xcap uri: /xcap/resource-lists/users/sip:w102@192.168.51.20/index while bria/eyebeam use: /xcap/org.openmobilealliance.pres

Re: [SR-Users] drouting module: can I use non-digit prefix?

2012-06-13 Thread Daniel-Constantin Mierla
Hello, this situation seems to be caused by the fact there is no valid routing rule at all. Can you get the backtrace? First do: ulimit -c unlimited Then run again an a corefile should be generated (in / or in working directory) - use gdb to get the backtrace: gdb /path/to/kamailio /path/

Re: [SR-Users] sipcapture logging

2012-06-13 Thread Daniel-Constantin Mierla
Hello, On 6/12/12 9:07 PM, Konstantin M. wrote: Hello Daniel, 2012/6/12 Daniel-Constantin Mierla > Hello, I am a bit confused now. sipcapture role is to store the SIP signaling messages in database for the purpose of later analysis -- you can export