[SR-Users] Re: add a SIP custom header on a SIP response generated locally

2024-01-18 Thread mohsen khashei via sr-users
you can try to set  ac_extra_hdrs from tm module and then use it it
probably works.

On Thu, Jan 18, 2024 at 9:01 PM frédéric Gaisnon via sr-users <
sr-users@lists.kamailio.org> wrote:

> Hi,
>
> Yes I've tried using append_to_reply() in several routes
> (tm:branch-failure, sl:local-response, tm:local-response, onreply_route,
> failure_route) but it was not applied.
> It works fine if a response is received or if it is generated by the
> configuration script but not if this response is locally generated by a
> kamailio module.
>
> Regards,
> Frédéric Gaisnon
>
> > Custom headers to the reply can be added using append_to_reply()
> function from textops module. Have you tried that?
> >
> > Regards,
> >
> > Fred Posner
> > p: +1 (352) 664-3733
>
> > > On Jan 18, 2024, at 2:07 AM, frédéric Gaisnon via sr-users <
> sr-users@lists.kamailio.org> wrote:
> > >
> > > Hello,
> > >  I want to add a SIP custom header on a SIP response generated locally
> (on the 408 generated when fr_inv_timeout is expired for example)
> > > I've tried functions append_hf and append_to_reply in
> event_route[tm:branch-failure:XXX] or event_route [tm:local-response]
> without any success.
> > > Do you have any suggestions to accomplish this ?
> > >  Regards,
> > > Frédéric Gaisnon
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
> To unsubscribe send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: How to change uri for db_mysql ?

2024-01-18 Thread mohsen khashei via sr-users
As you say your socket address is /var/lib/mysql/mysql.sock not /run
/mysqld/mysql.sock

On Thu, Jan 18, 2024, 15:23 iglov via sr-users 
wrote:

> Hey Benoit! Thanx 4 attention!
>
> Yep, I thought so too and the first thing I did was check all my configs.
> So, I have only one /etc/mysql/my.cnf in whole OS with
> [mysqld]
> socket = /var/lib/mysql/mysql.sock
>
> [client]
> socket = /var/lib/mysql/mysql.sock
>
> I even tried to find this like that: grep -rH mysqld /
> So, why Kamailio despite everything try to connect with
> /run/mysqld/mysqld.sock ? And if I defined ‘localhost’ why it use local
> socket? What if I want it to use network?
> I can’t even find default settings in kamailio sources :( It makes me
> crazy :(
>
>
> > 18 янв. 2024 г., в 12:18, Benoit Panizzon 
> написал(а):
> >
> > Hi
> >
> > Just a guess:
> >
> > https://www.kamailio.org/docs/modules/devel/modules/sqlops.html#idm85
> >
> > If you define 'localhost' then the default socket (probably somewhere
> > in your MySQL config) ist taken.
> >
> > Mit freundlichen Grüssen
> >
> > -Benoît Panizzon-
> > --
> > I m p r o W a r e   A G-Leiter Commerce Kunden
> > __
> >
> > Zurlindenstrasse 29 Tel  +41 61 826 93 00
> > CH-4133 PrattelnFax  +41 61 826 93 01
> > Schweiz Web  http://www.imp.ch
> > __
>
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
> To unsubscribe send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe: