[SR-Users] kamailio with external database to replace from uri

2016-03-14 Thread Thibault Gueslin
I am using kamailio without database. It works fine. For some scenario, I would like to replace the from uri (using mac_replace_from works fine) but using data I can accessed with a REST API. I want to have different origination depending on the sipusername. I need to have some synchronous reques

Re: [SR-Users] terminate call when dialog when remote contact disappears without BYE

2015-12-03 Thread Thibault Gueslin
aniel > > > On 03/12/15 00:14, Thibault Gueslin wrote: > > Daniel-Constantin Mierla 2015-08-25 15:37:34 > > de07fe4e78e2b7df59fbdffd74ca655bd77570ba > > dialog: refresh value for contact uri for each re-invite > > > You wrote the patch! > > > Regards >

Re: [SR-Users] terminate call when dialog when remote contact disappears without BYE

2015-12-02 Thread Thibault Gueslin
You need also this commit: dialog: split out storage of contact from common memory block 3820f41ab7ba33c39cd9f67e179bf203aa60ddeb First tests give good result (applied on top of 4.3.4) Regards Thibault 2015-12-03 0:14 GMT+01:00 Thibault Gueslin : > Daniel-Constantin Mierla 2015-08-25 15

Re: [SR-Users] terminate call when dialog when remote contact disappears without BYE

2015-12-02 Thread Thibault Gueslin
hed to master? > > Cheers, > Daniel > > > On 02/12/15 19:12, Thibault Gueslin wrote: > > I have seen that the patch submitted on master branch to fix this issue > have not been merged to branch 4.3 > > I wil try it. > > 2015-12-02 15:57 GMT+01:00 Thibault G

Re: [SR-Users] terminate call when dialog when remote contact disappears without BYE

2015-12-02 Thread Thibault Gueslin
I have seen that the patch submitted on master branch to fix this issue have not been merged to branch 4.3 I wil try it. 2015-12-02 15:57 GMT+01:00 Thibault Gueslin : > How can I update the contact alias within the dialog on receiving the > invite ? > (My client is being NAT in

Re: [SR-Users] terminate call when dialog when remote contact disappears without BYE

2015-12-02 Thread Thibault Gueslin
How can I update the contact alias within the dialog on receiving the invite ? (My client is being NAT in any case) Should I use the dbg_var to set the new alias ? thibault 2015-12-02 9:41 GMT+01:00 Thibault Gueslin : > Hello Daniel, > > Have you seen the issue I reported: > >

Re: [SR-Users] terminate call when dialog when remote contact disappears without BYE

2015-12-02 Thread Thibault Gueslin
-02 7:16 GMT+01:00 Daniel-Constantin Mierla : > The dialog is terminated when the OPTIONS request doesn't get any reply, > no matter it is sent via UDP, TCP or other transport. > > Cheers, > Daniel > > > On 01/12/15 12:08, Thibault Gueslin wrote: > > Thanks >

Re: [SR-Users] terminate call when dialog when remote contact disappears without BYE

2015-12-01 Thread Thibault Gueslin
/kamailio/kamailio/issues/273) I am using the dialog module in memory (no db) so I think I don't need to look at "db_update_period" parameter ? What is the status in 4.3.3 ? thibault 2015-12-01 12:08 GMT+01:00 Thibault Gueslin : > Thanks > I don't have set the dialo

Re: [SR-Users] terminate call when dialog when remote contact disappears without BYE

2015-12-01 Thread Thibault Gueslin
egards thibault 2015-12-01 11:10 GMT+01:00 Daniel-Constantin Mierla : > > > On 30/11/15 11:37, Thibault Gueslin wrote: > > I would like to terminate the dialog when one party disconnects > > without sending a BYE > > (no more connctivity, client shutdown) > > &g

[SR-Users] terminate call when dialog when remote contact disappears without BYE

2015-11-30 Thread Thibault Gueslin
I would like to terminate the dialog when one party disconnects without sending a BYE (no more connctivity, client shutdown) I am using TCP connection. Should I terminate the dialog from event_route[usrloc:contact-expired] ? I have tried also to use SIP OPTION parameter from dialog module modpar

Re: [SR-Users] kamailio very slow or stuck during period from time to time

2015-11-26 Thread Thibault Gueslin
Good I will apply again this parameter. 2015-11-25 12:33 GMT+01:00 Camille Oudot : > Le Fri, 20 Nov 2015 15:02:24 +0100, > Thibault Gueslin a écrit : > > > Finally I have removed this line: > > modparam("usrloc", "close_expired_tcp", 1) > > >

Re: [SR-Users] kamailio very slow or stuck during period from time to time

2015-11-20 Thread Thibault Gueslin
it_mallocs(179) > Nov 20 12:44:54 sip /usr/sbin/kamailio[30722]: NOTICE: qm_sums: > - > > > 2015-11-20 12:49 GMT+01:00 Daniel-Constantin Mierla < > mico...@gmail.com>: > >> If you get the shm used size increasing, run following command

Re: [SR-Users] kamailio very slow or stuck during period from time to time

2015-11-20 Thread Thibault Gueslin
t; On the other hand, I saw recently some article about latency spikes for > tcp: > > - https://http2.cloudflare.com/the-story-of-one-latency-spike/ > > It is about http, but actually relates to tcp setting of os. Maybe you can > verify your values in OS. > > Cheers, &

Re: [SR-Users] kamailio very slow or stuck during period from time to time

2015-11-20 Thread Thibault Gueslin
were busy"? They used lot of CPU? > > Cheers, > Daniel > > > On 19/11/15 01:30, Thibault Gueslin wrote: > > It seems to appear randomly. > > I don't have database access (default config without db) > I have a mqueue with rtimer to do asynchronous http requ

Re: [SR-Users] kamailio very slow or stuck during period from time to time

2015-11-18 Thread Thibault Gueslin
à 13:28, Daniel-Constantin Mierla a écrit > : > > Is it something repeating at constant interval of times, or are they random? > Are you doing database queries in your config? Any of them via rtimer module? > > Cheers, > Daniel > > >> On 18/11/15 12:00, Thibau

[SR-Users] kamailio very slow or stuck during period from time to time

2015-11-18 Thread Thibault Gueslin
I am facing an issue with kamailio 4.3.3 that is very similar to http://lists.sip-router.org/pipermail/sr-users/2015-May/088195.html Had someone found the solution or faced similar issue ? Sometimes kamailio is receiving the message (check with wireshark, logs in tcp) but the message is not handl

Re: [SR-Users] listening on multiple port

2015-11-04 Thread Thibault Gueslin
thibault 2015-11-03 11:26 GMT+01:00 Daniel-Constantin Mierla : > > > On 02/11/15 15:25, Daniel Tryba wrote: > > On Monday 02 November 2015 15:08:16 Thibault Gueslin wrote: > >> Thank you for your answer. > >> > >> However in my case (4.3.3 with tcp enabl

Re: [SR-Users] listening on multiple port

2015-11-02 Thread Thibault Gueslin
Thank you for your answer. However in my case (4.3.3 with tcp enabled), the 2 lines with port neither lines with 0.0.0.0 are working. 2015-11-02 10:23 GMT+01:00 Daniel Tryba : > On Friday 30 October 2015 18:35:18 Thibault Gueslin wrote: > > Hopefully it is possible to write: &

Re: [SR-Users] listening on multiple port

2015-10-30 Thread Thibault Gueslin
You are right. That's what I have found. The issue for listen is that I need to add a line for each protocol, interface. Hopefully it is possible to write: listen=udp:eth0:5060 to avoid to specify the IP. 2015-10-30 16:28 GMT+01:00 ycaner : > Hello > i think 5228 port override 5060. use "lis

[SR-Users] listening on multiple port

2015-10-29 Thread Thibault Gueslin
I would like to set up kamailio in order to listen to multiple port. I have set : port=5060 port=5228 But it always listen on the port indicated on last line: Listening on udp: 127.0.0.1:5228 udp: x.x.x.x:5228 tcp: 127.0.0.1:5228 tcp: x.x.x

[SR-Users] creating debian package from source

2015-10-06 Thread Thibault Gueslin
I have difficulties to install the debian package of kamailio I have build from source Creation works fine. (make cfg, configuration of proper debian in pkg/debian/deb , make deb) But kamailio tries to find module here : /usr/lib/x86_64-linux-gnu/kamailio/modules/ and modules are installed in /usr

Re: [SR-Users] Crash kamailio 4.3.1

2015-09-30 Thread Thibault Gueslin
Federico, I have tried to apply your commit on the branch 4.3 (just the modifications on t_append_branch.c) The result is not very good (failure route not called, 408 timeout not send...) Have you a patch for the 4.3 branch ? Regards thibault 2015-09-28 11:45 GMT+02:00 Thibault Gueslin

Re: [SR-Users] Crash kamailio 4.3.1

2015-09-28 Thread Thibault Gueslin
nd send me >> the whole log and the trace, sending them to my email address or sharing >> them? >> >> Regards, >> >> Federico >> >> On Fri, Sep 18, 2015 at 3:38 PM, Thibault Gueslin < >> thibault.gues...@gmail.com> wrote: >> >>> Hi Federi

[SR-Users] passing multiple values in mqueue

2015-09-25 Thread Thibault Gueslin
I want to pass several arguments to a mqueue to process them asynchronously. (like in the example of sip sweet). How could it be done ? Other possibility is to generate a string and parse it in the lua script. But there should something more simple ? thibault ___

Re: [SR-Users] Crash kamailio 4.3.1

2015-09-18 Thread Thibault Gueslin
ibault, > I tried again to reproduce the issue but with no luck. > Are you doing something "special" in the failure route after calling > t_is_canceled? > > Regards, > > Federico > > On Wed, Sep 16, 2015 at 7:33 PM, Thibault Gueslin < > thibault.gues...@g

Re: [SR-Users] Crash kamailio 4.3.1

2015-09-16 Thread Thibault Gueslin
e you appending other branches? > In the bt it looks like the transaction timed out but then the the log line > > "#0 0x7fc279f64855 in lock_entry (entry=0x7fc2761d6068) at > ts_hash.c:156" > > and the core seem unrelated. Maybe you can share the relevant parts of

Re: [SR-Users] Crash kamailio 4.3.1

2015-09-15 Thread Thibault Gueslin
1f2fc0 __FUNCTION__ = "retr_buf_handler" #8 0x0048d82f in slow_timer_main () at timer.c:1130 n = 12 ret = 1 tl = 0x7fc2761f3708 i = 147 __FUNCTION__ = "slow_timer_main" 2015-09-15 10:35 GMT+02:00 Federico Cabiddu : >

Re: [SR-Users] Crash kamailio 4.3.1

2015-09-11 Thread Thibault Gueslin
e > meanwhile could you describe your scenario? Are you storing multiple > transactions per ruri? Did any of them got a final reply before the crash? > > Regards, > > Federico > > On Thu, Sep 10, 2015 at 3:00 PM, Daniel-Constantin Mierla < > mico...@gmail.com> wro

Re: [SR-Users] Crash kamailio 4.3.1

2015-09-10 Thread Thibault Gueslin
sin6_scope_id = 0}}, bind_address = 0x0, proto = 0 '\000' (gdb) p *ruri $22 = {s = 0x7f883bf317e8 "toto4.toto.com.Ipod_tgu", len = 23} (gdb) p *ptr Cannot access memory at address 0x8b08578b49642454 (gdb) p *_r $23 = {ruri = {s = 0x7f88339bd040 "toto4.toto.com.Ipod_tgu&qu

Re: [SR-Users] Crash kamailio 4.3.1

2015-09-10 Thread Thibault Gueslin
you install the kamailio-dbg package to get access to debugging > sysmbols? Once that package is installed, get the backtrace again and send > it here. > > Cheers, > Daniel > > > On 10/09/15 10:55, Thibault Gueslin wrote: > > I have done again the trace and obtai

Re: [SR-Users] Crash kamailio 4.3.1

2015-09-10 Thread Thibault Gueslin
got a safety fix. Apart of these two, I don't remember any >> active crash report for the moment. >> >> If you get it very often, then it should be easy to catch and >> troubleshoot properly. Can you run it so it generates a core file? >> >> The easiest way

Re: [SR-Users] Crash kamailio 4.3.1

2015-09-09 Thread Thibault Gueslin
siest way is to run it as root, with 'ulimit -c unlimited' executed > before starting kamailio. > > Can you share what operating system are you using and exact version of > kamailio (output of kamailio -v)? > > Cheers, > Daniel > > > On 09/09/15 12:15, Thibault Guesl

[SR-Users] Crash kamailio 4.3.1

2015-09-09 Thread Thibault Gueslin
After upgrading to kamailio 4.3.1 and modifying the config, I get this crash very often: ... CRITICAL: [pass_fd.c:275]: receive_fd(): EOF on 21 ALERT: [main.c:728]: handle_sigs(): child process 9341 exited by a signal 11 ALERT: [main.c:731]: handle_sigs(): core was not generated INFO: [main