[SR-Users] 2 phones behind same NAT, Kamailio on Pub IP One Way Audio

2015-04-28 Thread Todd R .
This is my first go round' with Kamailio but I have been messing with it off and on for a few weeks. Running latest version on latest CentOS 7.x. Kamailio installed on VM with public IP in one location, 2 SIP phones behind same NAT, both registered to Kamailio fine. I can call one phone to the ot

[SR-Users] Measuring subscriber latency

2015-04-28 Thread Jon Bonilla (Manwe)
Hi all I'm replacing an Asterisk based system with a kamailio based one. One of the features the legacy system has is showing the subscriber the latency obtained from the qualify option of sip.conf Now, I'd like to measure the latency but I'm not sure how to do it. AFAIK nathelper module sends th

Re: [SR-Users] R: R: publish authentication problem

2015-04-28 Thread Daniel-Constantin Mierla
Hello, as you say it is tls, have you taken the trace on client side or on server side? Also, to rule it out -- you don't have any sbc in between, right? For further troubleshooting, can you add the line: xlog("Proxy-Authorization header is: $hdr(Proxy-Authorization)\n"); before: if (!auth_che

Re: [SR-Users] instant message timeout detection

2015-04-28 Thread Daniel-Constantin Mierla
Hello, if you set a failure route before suspending, it should be executed at the moment it times out. You need to use latest 4.2 (4.2.4 or git branch 4.2) -- iirc, before this feature was disabled as a side effect of an older commit. Cheers, Daniel On 28/04/15 10:09, Péter Barabás wrote: > > Hi

Re: [SR-Users] kamailio crash periodically in timer handler

2015-04-28 Thread Daniel-Constantin Mierla
Hello, haven't noticed new memory operations, still could be some side effects. Anyhow, as I saw some remark on another email from you, are you using in this config t_suspend()/t_continue()? Can you upgrade to run latest version from branch 4.2, there were some fixes since version 4.2.3, which yo

Re: [SR-Users] kamailio crash periodically in timer handler

2015-04-28 Thread Péter Barabás
Hi, here is the svn diff of ul_publish.c attached. Péter From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: Tuesday, April 28, 2015 9:03 AM To: Péter Barabás; Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] kamailio crash periodically in timer handler Hello, On 27/04/1

[SR-Users] R: R: publish authentication problem

2015-04-28 Thread Tomas Zanet
Hello, yes you are right there's Authentication header in the REGISTER request. I meant realm parameter. Anyway, here is the PUBLISH request: Request-Line: PUBLISH sip:1...@myhome2.xip.bpt.com SIP/2.0 Via: SIP/2.0/TLS 172.23.254.189:58187;branch=z9hG4bK.58aWk31-b;rport From: ;tag=cwg1ZGY8e To: si

[SR-Users] instant message timeout detection

2015-04-28 Thread Péter Barabás
Hi, i want to detect and do some custom handling on kamailio side when a suspended MESSAGE "transaction" has timed out (the t_continue has not been called after t_suspend). What is the simplest way to solve this? Péter B. ___ SIP Express Router (SE

Re: [SR-Users] How to dump or log the value of $avp(ice_priority) with xlog

2015-04-28 Thread smititelu
Hello, Try using|||dbg_pv_dump |from the kamailio debugger module. The output should also include your avp. Alternatively, you could use interactive debugging with kamcmd: "kamcmd> dbg.bp eval 3016 $avp(myvar)" as described in the above module. To do this you need to "kamcmd> dbg.bp on" to s

Re: [SR-Users] Expect the kamailio's sip account is unregistered state when the client app is shutdown

2015-04-28 Thread Vitaliy Aleksandrov
Hi, You can take a look at this option: http://kamailio.org/docs/modules/4.2.x/modules/usrloc.html#usrloc.p.handle_lost_tcp It's a bit limited and doesn't work for: - usrloc db only mode - if you have separated edge proxy and registrar Thank you for information.. What can Kamailio do about cli

Re: [SR-Users] R: publish authentication problem

2015-04-28 Thread Daniel-Constantin Mierla
Hello, REGISTER should have Authorization header. Can you paste the headers of such PUBLISH? The log message you pasted in a previous email shows that the realm was not matching: Apr 24 14:30:58 bptrnddmzserver kamailio[30886]: DEBUG: auth [api.c:86]: pre_auth(): auth:pre_auth: Credentials with

[SR-Users] R: publish authentication problem

2015-04-28 Thread Tomas Zanet
Hello, yes it is. The real parameter in Proxy-Authorization header is the same for PUBLISH and REGISTER and INVIATE as well. I'm doing authentication in this way: if (!auth_check("$fd", "subscriber", "1")) { auth_challenge("$fd", "0");

Re: [SR-Users] subst_hf with capture groups

2015-04-28 Thread Daniel-Constantin Mierla
Hello, the tracker on github project: - https://github.com/kamailio/kamailio/issues Cheers, Daniel On 28/04/15 07:28, Igor Potjevlesch wrote: > > Hello Daniel, > > > > It works fine like this, thank you. > > > Can you tell me where I can open a tracker? > > > > Regards, > > > > Igor. >

Re: [SR-Users] kamailio crash periodically in timer handler

2015-04-28 Thread Daniel-Constantin Mierla
Hello, On 27/04/15 23:59, Péter Barabás wrote: > > Hi, > > > > you gave me an idea where to find the error. > > We modified the ul_publish.c source in order to achieve the following > results: > > - when client sends a REGISTER, an implicit PUBLISH is called > so in each registration, p