[SR-Users] Doing automatic unregister when a WEBSOCKET connection is closed.

2013-05-01 Thread אורן אברהם
Dear List. I'm trying to issue an automatic unregister() (of a registration) when a websocket connection is closed. it is useful when the browser is closed without issuing REGISTER with expires=0. i've tried implementing this using the event_route[websocket:closed] but i don't know how to find th

Re: [SR-Users] Implementing the Presence module(Kamailio) to work with websockets (sipML5)

2013-05-01 Thread אורן אברהם
Found the problem... I've used the function fix_nated_contact() before handling the SUBSCRIBE request. the problem was caused because websocket connection has a false contact info due to browser limitations. thanks. 2013/4/24 Jeremy Jongepier > On 04/18/2013 02:43 PM, אורן אברהם wrote: > >> Dea

[SR-Users] service uri not found in rls-services document

2013-05-01 Thread Juha Heinanen
Juha Heinanen writes: > it clearly shows that the reason for not finding the uri are the escaped > chars in xcap rls-services doc. i stole some code from opensips and normalized the rls-services uri. after that, the match was found: May 1 22:15:45 siika /usr/sbin/pres-serv[29546]: INFO: rls [su

[SR-Users] service uri not found in rls-services document

2013-05-01 Thread Juha Heinanen
Juha Heinanen writes: > could the escaped chars explain the failure or the fact that > resource-list is an uri? i added one more debug statement and got: May 1 20:53:43 siika /usr/sbin/pres-serv[28224]: INFO: rls [subscribe.c:94]: matching to it clearly shows that the reason for not findin

[SR-Users] service uri not found in rls-services document

2013-05-01 Thread Juha Heinanen
my presence server tries to handle subscribe to sip:jh+prese...@test.tutpro.com. that service uri is stored in rls-services document of user sip:j...@test.tutpro.com, but for some reason k does not find the service uri. here is some debug: May 1 19:08:43 siika /usr/sbin/pres-serv[27355]: INFO:

[SR-Users] Call routing

2013-05-01 Thread mark
Hi all, Posted a similar query a few weeks ago, without much interest - any advice appreciated. I have two sites and will send calls between them. I have Kamailio at each site which will route the calls out/in. There are multiple distinct network routes between the sites, accessible via diff

Re: [SR-Users] Topoh module also masking Via?

2013-05-01 Thread Grant Bagdasarian
Okay, thanks! I'm not using SEMS yet, but I'm trying to gather as much information as possible for our new VoIP platform I'm designing. -Original Message- From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Wednesda

Re: [SR-Users] Topoh module also masking Via?

2013-05-01 Thread Alex Balashov
On 05/01/2013 08:54 AM, Grant Bagdasarian wrote: Let's say we are using SEMS in SBC mode and letting the traffic pass through it, so no new call leg is created. It doesn't work like that. SEMS always creates a new call leg. If you are already using SEMS in this manner, you have no need of '

Re: [SR-Users] Topoh module also masking Via?

2013-05-01 Thread Juha Heinanen
Grant Bagdasarian writes: > Let's say we are using SEMS in SBC mode and letting the traffic pass > through it, so no new call leg is created. my understanding is that sems sbc always creates a new call leg. once it does it, you don't need k to hide the topology. optionally you can also let sems

Re: [SR-Users] Topoh module also masking Via?

2013-05-01 Thread Grant Bagdasarian
Let's say we are using SEMS in SBC mode and letting the traffic pass through it, so no new call leg is created. An incoming INVITE from the supplier reaches the SBC. The signaling then reaches Kamailio which applies topology hiding and the signaling is sent off to the customer's remote PBX. Me

Re: [SR-Users] rtpproxy virtual or physical machine

2013-05-01 Thread Grant Bagdasarian
Thanks -Original Message- From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Wednesday, May 1, 2013 1:55 PM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] rtpproxy virtual or physical machine On 05/01/201

Re: [SR-Users] rtpproxy virtual or physical machine

2013-05-01 Thread Alex Balashov
On 05/01/2013 07:44 AM, Grant Bagdasarian wrote: Hello, I understand that machines processing RTP are recommended to be physical machines. Does the same apply for machines just proxy’ing RTP? Also, after how many RTP session would you start noticing issues with RTP when using rtpproxy on a virt

[SR-Users] rtpproxy virtual or physical machine

2013-05-01 Thread Grant Bagdasarian
Hello, I understand that machines processing RTP are recommended to be physical machines. Does the same apply for machines just proxy'ing RTP? Also, after how many RTP session would you start noticing issues with RTP when using rtpproxy on a virtual VMware machine? Regard, Grant __

Re: [SR-Users] Topoh module also masking Via?

2013-05-01 Thread Alex Balashov
It does indeed. On 05/01/2013 06:57 AM, Grant Bagdasarian wrote: Hello, The description of this module says it hides the SIP routing headers, does this also include the Via headers? Grant ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-u

[SR-Users] Topoh module also masking Via?

2013-05-01 Thread Grant Bagdasarian
Hello, The description of this module says it hides the SIP routing headers, does this also include the Via headers? Grant ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router

Re: [SR-Users] gruu and dead-lock in registrar module

2013-05-01 Thread Andreas Granig
Hi, On 05/01/2013 10:46 AM, Daniel-Constantin Mierla wrote: looked over the code and seems ok. The domain lock is set inside ul.get_urecord_by_ruid(_d, ahash, &inst, &r, &ptr). Ok, good to know. Are you doing other operations in config with usrloc/registrar rather than save()/lookup()? Any m

Re: [SR-Users] rfc: accounting records time details

2013-05-01 Thread Daniel-Constantin Mierla
Hello, On 4/29/13 2:15 PM, Andreas Granig wrote: Hi, On 04/29/2013 11:47 AM, Thilo Bangert wrote: I'd just save one timestamp, ie TAI64 or as java does miliseconds since epoch, in a single, new field. saving the timestamp in two fields seems messy. Agreed. the option to get current format

Re: [SR-Users] [PATCH] Memory corruption using s.substr transformation

2013-05-01 Thread Alex Hermann
On Tuesday 30 April 2013, Martin Mikkelsen wrote: > This smells memory corruption. When run under valgrind, valgrind > generates this error when that code is run: > > ==1206== Source and destination overlap in strncpy(0x55e3b2a, 0x55e3b2b, > 10) ==1206==at 0x4C25ACF: strncpy (mc_replace_strmem

Re: [SR-Users] Kamailio 3.x and Asterisk Realtime Integration plus dispatcher

2013-05-01 Thread Barry Flanagan
On 1 May 2013 02:14, Aldo Antignano wrote: > > >> In the REGFWD route you send all the registrations to ALL the Asterisks? > >> If so, why? > > > By sending the registration to all the available Asterisk servers then > they > > all know where each SIP client can be located. If a call comes in fr

Re: [SR-Users] rfc: accounting records time details

2013-05-01 Thread Daniel-Constantin Mierla
Hello, On 4/29/13 1:42 PM, Alex Hermann wrote: On Monday 29 April 2013 11:05:36 Daniel-Constantin Mierla wrote: Here are some suggestions presented so far. 1) store seconds.miliseconds as double - there is a patch (which Please do not use floating point respresentations for values that will b

Re: [SR-Users] rfc: accounting records time details

2013-05-01 Thread Daniel-Constantin Mierla
Hello, On 4/29/13 11:47 AM, Thilo Bangert wrote: More suggestions? Pro or cons opinions? I'd just save one timestamp, ie TAI64 or as java does miliseconds since epoch, in a single, new field. saving the timestamp in two fields seems messy. it can be one field only, it is a matter of module par

Re: [SR-Users] gruu and dead-lock in registrar module

2013-05-01 Thread Daniel-Constantin Mierla
Hello, looked over the code and seems ok. The domain lock is set inside ul.get_urecord_by_ruid(_d, ahash, &inst, &r, &ptr). With temp gruu, the real aor is not present in URI, it will be discovered based on ahash (aor hash id) and ruid, which compose the temp-gruu value. If the record is dis

[SR-Users] info: monthly mailing list reminder disabled

2013-05-01 Thread Daniel-Constantin Mierla
Hello, I disabled the monthly mailing list membership reminder, being rather annoying when subscribed to lots of mailing lists. The option can be enabled on per subscriber basis, if anyone wants it, then it can be set in personal options at: - http://lists.sip-router.org/cgi-bin/mailman/op

Re: [SR-Users] dlg_end_dlg

2013-05-01 Thread Daniel-Constantin Mierla
Hello, the backtrace shows that the process is blocked inside perl script listing on the network. Perhaps is waiting the reply to the command sent to kamailio. Perhaps the perl functions you are using in your script can have a timeout and not block forever. In which case you need to terminat