Re: [SR-Users] Textops replace question

2016-09-25 Thread Daniel-Constantin Mierla
You have another function that is changing the contact header (like fix_nated_contact() or add_contact_alias()). If you want to keep both, then you have to use msg_apply_changes() after the first one that changes the contact. Cheers, Daniel On 26/09/16 08:53, Igor Olhovskiy wrote: > Also tried to

Re: [SR-Users] Textops replace question

2016-09-25 Thread Igor Olhovskiy
Also tried to do this. Got as result … CSeq: 58923 SUBSCRIBE Contact: sip:*97@10.0.20.81:5060Expires: 80 … 2016-09-26 3:52 GMT+03:00 Alex Balashov : > Igor, > > It might be simpler to do this: > >remove_hf("Contact") >append_hf("Contact: <$fu>\r\n"); > > -- Alex > > -- > Alex Balashov |

Re: [SR-Users] Textops replace question

2016-09-25 Thread Alex Balashov
Igor, It might be simpler to do this: remove_hf("Contact") append_hf("Contact: <$fu>\r\n"); -- Alex -- Alex Balashov | Principal | Evariste Systems LLC 1447 Peachtree Street NE, Suite 700 Atlanta, GA 30309 United States Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: ht

[SR-Users] Textops replace question

2016-09-25 Thread Igor Olhovskiy
Hi! I’m trying to use replace function, but got strange results. Idea - modify Contact header What I got as start packet. (202 Accepted on onreply_route) … Contact: … I give a command replace("Contact: <.*>», "Contact: <" + $fu + ">"); $fu = sip:1...@master.rufan.at And, as a result I got

Re: [SR-Users] Location Table In db_mode 3

2016-09-25 Thread Phil Lavin
That is the case, however I don't believe this is a problem unless you have other databases on the same server that must be ACID compliant on the same server. Kamailio's DB data is mostly transient and that which isn't is not written at high volume (e.g. address table). -Original Message--

Re: [SR-Users] Location Table In db_mode 3

2016-09-25 Thread Juha Heinanen
Gholamreza Sabery writes: > Thank you so much. I will try it; but it seems that this option affects the > whole database. I think it applies to the whole mysql server, i.e., to all of its databases. -- Juha ___ SIP Express Router (SER) and Kamailio (O

Re: [SR-Users] Location Table In db_mode 3

2016-09-25 Thread Gholamreza Sabery
Thank you so much. I will try it; but it seems that this option affects the whole database. I want something fine grained that can be applied to specific tables. Or other solutions. It seems that Kmailio's session management in a shared database mode (in a Kamailio cluster) is not good enough for h

Re: [SR-Users] Location Table In db_mode 3

2016-09-25 Thread Phil Lavin
Setting it to 0 will give you significantly enhanced performance. It will only write data to disk every second. From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Gholamreza Sabery Sent: 25 September 2016 09:16 To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Us

Re: [SR-Users] Location Table In db_mode 3

2016-09-25 Thread Gholamreza Sabery
Thank you very much for your responses. My innodb_buffer_pool_size = 16GB and data files are about 92 MB and innodb_flush_log_at_trx_commit= 1 On Sun, Sep 25, 2016 at 12:07 AM, Sergey Okhapkin wrote: > I'd avoid slow innodb engine for "temporary" frequently changing tables > like > location. Us

Re: [SR-Users] Kamailio IMS NAT issue: PRACK/ACK RURI changing in P-CSCF

2016-09-25 Thread Franz Edler
Hello Owais, > I have All the CSCFs on the same IP using different ports. > P-CSCF advertises a public IP. Rest of the nodes including I-CSCF and S-CSCF > listen local only. What is the reason that the rest of the nodes including I-CSCF and S-CSCF listen local only? I am not familiar with such