[OpenSIPS-Users] Set RTP timeouts from rtpproxy_answer/offer hasn't effect
Hi all, I am trying to setup different rtp timeouts for Caller and Callee with rtpproxy. Here is flags from the docs: tNN - can be used to specify a RTP ttl for the caller. The NN represents > the timeout in seconds for that stream. This can be useful in music on hold > scenarios where only one client is sending RTP. > > TNN - Similar to the tNN paramaeter, but used for tuning the calllee's ttl > for RTP. > My code is: loadmodule "rtpproxy.so" modparam("rtpproxy", "rtpproxy_sock", "udp:localhost:6060") modparam("rtpproxy", "rtpp_notify_socket", "tcp:127.0.0.1:6061") if (is_method("INVITE")) { t_on_branch("per_branch_ops"); t_on_reply("global"); t_on_failure("failure"); if (has_body("application/sdp")) { rtpproxy_offer("ocnrT10t10"); } } onreply_route[global] { if (has_body("application/sdp")) { rtpproxy_answer("ocnrT10"); } } rtpproxy started as: /usr/local/bin/rtpproxy -p /var/run/rtpproxy/rtpproxy.pid -s udp:127.0.0.1 6060 -u rtpproxy rtpproxy -n tcp:127.0.0.1:6061 -i -f -L 8192 -l 0.0.0.0 -m 1 -M 4 -d DBUG LOG_LOCAL5 So, the default rtpproxy TTL timer is 60 seconds and I'm trying to rewrite it from the opensips. If I drop RTP from one of the sides, then the call is hanged up after 60 seconds, but not 10 seconds. Versions: opensips 3.0.2 (x86_64/linux) rtpproxy v2.1.1 -- Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] OpenSIPS 3.0.2 - 'IF' statement doesn't evaluating correctly
Thanks a lot for {s.int} ! I forgot that my dialog value is string. Transforming to int helped. ср, 19 авг. 2020 г. в 02:33, Callum Guy : > Have you matched the dialog before running this check? Just wondering > if one of those values is stale, do the durations match up with > reality for the example calls? > > Also maybe rule out type issues with $(dlg_val(dialog_min_time){s.int}) > > On Tue, 18 Aug 2020 at 17:35, Igor Pavlov > wrote: > > > > Hi all, I have found the strange behavior of evaluating boolean value in > 'if' statement. Here is the part of my routing script, it handles the BYE > msg (I removed real logic and left only xlog). > > > > if ($DLG_lifetime < $dlg_val(dialog_min_time)) { > > xlog("L_DBG","[$ci] Dialog lifetime less then dialog_min_time ; > duration: $DLG_lifetime ; $dlg_val(dialog_min_time)"); > > } else { > > xlog("L_DBG","[$ci] Dialog lifetime greater then dialog_min_time ; > duration: $DLG_lifetime ; $dlg_val(dialog_min_time)"); > > } > > > > The '$dlg_val(dialog_min_time)' setup during INVITE handling, after > create_dialog(). > > > > Under load I see that '$DLG_lifetime < $dlg_val(dialog_min_time)' is not > evaluating correctly. Here is some logs: > > > > opensips[1589]: [56276459-0-1637911800@1.1.1.48] BYE from 2.2.2.143:5060, > dialog_min_time: 30, duration: 161, status: 5 > > opensips[1589]: [56276459-0-1637911800@1.1.1.48] Dialog lifetime less > then dialog_min_time ; duration: 161 ; 30 > > > > Here is DLG_lifetime = 161 and $dlg_val(dialog_min_time) = 30 (161 < 30 > ???) > > > > Another example: > > > > opensips[1590]: [58514636-0-1638386270@1.1.1.48] BYE from 1.1.1.50:5060, > dialog_min_time: 15, duration: 1212, status: 5 > > opensips[1590]: [58514636-0-1638386270@1.1.1.48] Dialog lifetime less > then dialog_min_time ; duration: 1212 ; 15 > > > > Here is DLG_lifetime = 1212 and $dlg_val(dialog_min_time) = 15 (1212 < > 15 ???) > > > > My OpenSIPS version is: > > > > version: opensips 3.0.2 (x86_64/linux) > > flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, > Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT > > ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, > MAX_URI_SIZE 1024, BUF_SIZE 65535 > > poll method support: poll, epoll, sigio_rt, select. > > git revision: 3a8f6f137 > > main.c compiled on 22:11:53 Jul 20 2020 with gcc 8 > > > > -- > > > > Best regards, > > Igor Pavlov > > ___ > > Users mailing list > > Users@lists.opensips.org > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > -- > > > > > > *0333 332 | x-on.co.uk <https://www.x-on.co.uk> | ** > <https://www.linkedin.com/company/x-on> <https://www.facebook.com/XonTel> > > <https://twitter.com/xonuk> ** | Coronavirus > <https://www.x-on.co.uk/service/surgery-connect/coronavirus.htm>* > > > THE > ITSPA AWARDS 2020 <http://www.itspa.org.uk/itspa-awards> AND Best ITSP - > Mid Market, Best Software and Best Vertical Solution are trade marks of > the > Internet Telephony Services Providers' Association, used under licence. > > > X-on > is a trading name of Storacall Technology Ltd a limited company > registered in > England and Wales. > > Registered Office : Avaland House, 110 > London Road, Apsley, Hemel Hempstead, > Herts, HP3 9SD. Company Registration > No. 2578478. > > The information in this e-mail is confidential and for use by > the addressee(s) > only. If you are not the intended recipient, please notify > X-on immediately on +44(0)333 332 and delete the > message from your > computer. If you are not a named addressee you must not use, > disclose, > disseminate, distribute, copy, print or reply to this email. Views > or > opinions expressed by an individual > within this email may not necessarily > > reflect the views of X-on or its associated companies. Although X-on > routinely > screens for viruses, addressees should scan this email and any > attachments > for > viruses. X-on makes no representation or warranty as to the > absence of viruses > in this email or any attachments. > > > > > > > > > > > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] OpenSIPS 3.0.2 - 'IF' statement doesn't evaluating correctly
Hi all, I have found the strange behavior of evaluating boolean value in 'if' statement. Here is the part of my routing script, it handles the BYE msg (I removed real logic and left only xlog). if ($DLG_lifetime < $dlg_val(dialog_min_time)) { xlog("L_DBG","[$ci] Dialog lifetime less then dialog_min_time ; duration: $DLG_lifetime ; $dlg_val(dialog_min_time)"); } else { xlog("L_DBG","[$ci] Dialog lifetime greater then dialog_min_time ; duration: $DLG_lifetime ; $dlg_val(dialog_min_time)"); } The '$dlg_val(dialog_min_time)' setup during INVITE handling, after create_dialog(). Under load I see that '$DLG_lifetime < $dlg_val(dialog_min_time)' is not evaluating correctly. Here is some logs: opensips[1589]: [56276459-0-1637911800@1.1.1.48] BYE from 2.2.2.143:5060, dialog_min_time: 30, duration: 161, status: 5 opensips[1589]: [56276459-0-1637911800@1.1.1.48] Dialog lifetime less then dialog_min_time ; duration: 161 ; 30 Here is DLG_lifetime = 161 and $dlg_val(dialog_min_time) = 30 (161 < 30 ???) Another example: opensips[1590]: [58514636-0-1638386270@1.1.1.48] BYE from 1.1.1.50:5060, dialog_min_time: 15, duration: 1212, status: 5 opensips[1590]: [58514636-0-1638386270@1.1.1.48] Dialog lifetime less then dialog_min_time ; duration: 1212 ; 15 Here is DLG_lifetime = 1212 and $dlg_val(dialog_min_time) = 15 (1212 < 15 ???) My OpenSIPS version is: version: opensips 3.0.2 (x86_64/linux) flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535 poll method support: poll, epoll, sigio_rt, select. git revision: 3a8f6f137 main.c compiled on 22:11:53 Jul 20 2020 with gcc 8 -- Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Dispatcher. Disable ping for particular entry/GW.
Hi solarmon, Yes, I have tried. It will not help, because when you set GW in 'active' state and GW is not able to respond to OPTIONS (because GW is not supported pinging) it will automatically switched to 'Probing\Inactive' state. пн, 29 июн. 2020 г. в 12:27, solarmon : > Hi Igor, > > Have you tried using the ds_set_state MI command? > > (for 2.4.x) > > https://opensips.org/html/docs/modules/2.4.x/dispatcher.html#mi_ds_set_state > > > On Sun, 28 Jun 2020 at 11:35, Igor Pavlov > wrote: > >> Hi all, >> >> Is it possible to disable ping for particular entry in set at all? >> >> I have a set of GWs which has 3-4 entries and some of these entries >> (vendors) don't answer to OPTIONS requests (they are like an persistent >> active GWs). I know that there is an 'ds_probing_list' setting, but in my >> case list can contain GWs that should not be pinged. >> >> -- >> >> Best regards, >> Igor Pavlov >> ___ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> > _______ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Dispatcher. Disable ping for particular entry/GW.
Hi Arsen, This parameter is not quite what I need. I need to always check GWs in set, but some of them should not be pinged. Something like this: id: 0 sip:1.1.1.1:5060 -> pinging sip:2.2.2.2:5060 -> pinging sip:3.3.3.3:5060 -> ping disabled (always in 'active' state) I think I need to modify the dispatcher's source code to get a custom build. пн, 29 июн. 2020 г. в 07:40, Arsen Semenov : > Hi Igor, > > Check ds_probing_mode parameter and gw state options. > > > > On Sun, Jun 28, 2020 at 3:34 PM Igor Pavlov > wrote: > >> Hi all, >> >> Is it possible to disable ping for particular entry in set at all? >> >> I have a set of GWs which has 3-4 entries and some of these entries >> (vendors) don't answer to OPTIONS requests (they are like an persistent >> active GWs). I know that there is an 'ds_probing_list' setting, but in my >> case list can contain GWs that should not be pinged. >> >> -- >> >> Best regards, >> Igor Pavlov >> ___ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> > > > -- > Arsen Semenov > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Dispatcher. Disable ping for particular entry/GW.
Hi all, Is it possible to disable ping for particular entry in set at all? I have a set of GWs which has 3-4 entries and some of these entries (vendors) don't answer to OPTIONS requests (they are like an persistent active GWs). I know that there is an 'ds_probing_list' setting, but in my case list can contain GWs that should not be pinged. -- Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Load balancer stops to count load over time
Hi all, I encountered a problem with load balancer module, it stops to count load over time, 5-6 hours or day may pass after restart. |opensipsctl fifo lb_list| always shows |load=0|, but at the same time balancer do his work correctly - it balance calls. Here is debug log: |Jun 30 10:57:34 DP-SIP-CORE-1 OpenSIP-CORE-1[9819]: DBG:load_balancer:w_lb_start: pick a random destination among all selected dsts with equal load Jun 30 10:57:34 DP-SIP-CORE-1 OpenSIP-CORE-1[9819]: DBG:load_balancer:lb_route: initial call of LB - found requested 1/1 resource [calls] Jun 30 10:57:34 DP-SIP-CORE-1 OpenSIP-CORE-1[9819]: DBG:load_balancer:lb_route: initial call of LB - destination 2 selected for LB set with free=1000 Jun 30 10:57:34 DP-SIP-CORE-1 OpenSIP-CORE-1[9819]: DBG:load_balancer:lb_route: initial call of LB - destination 3 selected for LB set with free=1000 Jun 30 10:57:34 DP-SIP-CORE-1 OpenSIP-CORE-1[9819]: DBG:load_balancer:lb_route: initial call of LB - destination 4 selected for LB set with free=1000 Jun 30 10:57:34 DP-SIP-CORE-1 OpenSIP-CORE-1[9819]: DBG:load_balancer:lb_route: initial call of LB - winning destination 3 selected for LB set with free=1000 ||It always shows 'free=1000' I have opened issue https://github.com/OpenSIPS/opensips/issues/1748 | -- -- Kind regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] create_dialog with Load Balancer module
Hi all, I'm a little bit confused with using 'dialog' and 'load balancer' modules. Tutorial says that load_balance() will automatically create the dialog state, in this case can I use create_dialog( ) or it's redundant? If yes, what should be called firstly - load_balance() and if it return true call create_dialog() or vice versa? I'm also using dialog profiling and sharing. -- -- Kind regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Opensips 2.2.5 - tls_mgm unable to set the memory allocation functions
Hi all, I have a trouble with opensips 2.2.5 TLS, hackneyed problem but I can't understand the reason. Nov 16 08:23:13 r01 opensips[25496]: ERROR:tls_mgm:mod_init: unable to set the memory allocation functions Nov 16 08:23:13 r01 opensips[25496]: ERROR:tls_mgm:mod_init: NOTE: check if you have openssl 1.0.1e-fips, as this version is know to be broken; if so, you need to upgr ade or downgrade to a differen openssl version !! Nov 16 08:23:13 r01 opensips[25496]: ERROR:core:init_mod: failed to initialize module tls_mgm Nov 16 08:23:13 r01 opensips[25496]: ERROR:core:main: error while initializing modules Opensips was installed from repos on CentOS 7, openssl version 1.0.2k: openssl version -a OpenSSL 1.0.2k-fips 26 Jan 2017 built on: reproducible build, date unspecified platform: linux-x86_64 options: bn(64,64) md2(int) rc4(16x,int) des(idx,cisc,16,int) idea(int) blowfish(idx) compiler: gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DKRB5_MIT -m64 -DL_ENDIAN -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wa,--noexecstack -DPURIFY -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM OPENSSLDIR: "/etc/pki/tls" engines: dynamic version: opensips 2.2.5 (x86_64/linux) flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535 poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. main.c compiled on 03:00:56 Jul 6 2017 with gcc 4.8.5 -- Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Separated registrar and proxy
Hi, all. I'm trying to separate registrar and proxy functions between several hosts. Registrations successfully saves at registrar, but sip proxy could not find record when trying to lookup at "location" table on INVITE. I can't see any querys to my DB from proxy. *registrar conf:* loadmodule "usrloc.so" modparam("usrloc", "db_url", "mysql://opensips:open_s...@db1.example.com/opensips") modparam("usrloc", "db_mode", 2) if (!save("location","f")) sl_reply_error(); // *proxy conf:* loadmodule "usrloc.so" modparam("usrloc", "db_url", "mysql://opensips:open_s...@db1.example.com/opensips") modparam("usrloc", "db_mode", 2) route[location] { xlog("L_INFO","Lookup for $ru"); lookup("location"); switch($retcode) { case -1: case -3: sl_send_reply("404","Not found"); exit; case -2: sl_send_reply("405","Not found"); exit; }; } // -- Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Opensips 2.2 proto_tls issue
Forgot to say that centos in openvz container. 07.04.2017 0:20, Igor Pavlov пишет: Hi, all. I have a problem with opensips 2.2 installation with TLS enabled. My enviroment: - CentOS 7 - openssl-1.0.2k, build from sources. Opensips compiled fine, without any errors, but when I try to start I got error: ERROR:core:sr_load_module: could not open module : /usr/local/lib64/opensips/modules/proto_tls.so: undefined symbol: kssl_ctx_new -- Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Opensips 2.2 proto_tls issue
Hi, all. I have a problem with opensips 2.2 installation with TLS enabled. My enviroment: - CentOS 7 - openssl-1.0.2k, build from sources. Opensips compiled fine, without any errors, but when I try to start I got error: ERROR:core:sr_load_module: could not open module : /usr/local/lib64/opensips/modules/proto_tls.so: undefined symbol: kssl_ctx_new -- Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Jabber module issue
Thank you, Bogdan. Patch works. 14.09.2016 19:01, Bogdan-Andrei Iancu пишет: Hello Igor, Could you please try the attached patch ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 12.09.2016 16:23, Igor Pavlov wrote: Hi, all. I'm working on opensips-ejabberd integration. Flow opensips -> ejabberd working fine, but ejabberd->opensips has trouble - message isn't delivered to the recipient. I think jabber-module construct wrong From header: Sep 9 08:12:44 vs01 /usr/sbin/opensips[3313]: DBG:core:tcp_send: buf=#012MESSAGE sip:1...@example.com SIP/2.0#015#012Via: SIP/2.0/TLS 10.10.10.136:5061;branch=z9hG4b K92f5.78c7b26.0#015#012To: sip:1...@example.com#015#012From: *<<sip:test1*example@example.com>>*;tag=2b04f16aecab308d711c6336732ee60c-603e#015#012CSeq: 10 MESSAGE# 015#012Call-ID: 09df26003f14d685-3296@10.10.10.136#015#012Max-Forwards: 70#015#012Content-Length: 3#015#012User-agent: example#015#012Content-Type: text/plain#015#012 Contact: <*sip:test1*example@example.com*>#015#012#015#012123 As a result: Sep 9 08:12:44 vs01 /usr/sbin/opensips[3307]: ERROR:core:parse_to: unexpected char [<] in status 5: <<<>> . Sep 9 08:12:44 vs01 /usr/sbin/opensips[3307]: ERROR:core:parse_from_header: bad from header Sep 9 08:12:44 vs01 /usr/sbin/opensips[3307]: DBG:core:set_err_info: ec: 1, el: 3, ei: 'error parsing From header' Sep 9 08:12:44 vs01 /usr/sbin/opensips[3307]: ERROR:core:pv_get_from_attr: cannot parse From header -- Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Jabber module issue
Hi, all. I'm working on opensips-ejabberd integration. Flow opensips -> ejabberd working fine, but ejabberd->opensips has trouble - message isn't delivered to the recipient. I think jabber-module construct wrong From header: Sep 9 08:12:44 vs01 /usr/sbin/opensips[3313]: DBG:core:tcp_send: buf=#012MESSAGE sip:1...@example.com SIP/2.0#015#012Via: SIP/2.0/TLS 10.10.10.136:5061;branch=z9hG4b K92f5.78c7b26.0#015#012To: sip:1...@example.com#015#012From: *<<sip:test1*example@example.com>>*;tag=2b04f16aecab308d711c6336732ee60c-603e#015#012CSeq: 10 MESSAGE# 015#012Call-ID: 09df26003f14d685-3296@10.10.10.136#015#012Max-Forwards: 70#015#012Content-Length: 3#015#012User-agent: example#015#012Content-Type: text/plain#015#012 Contact: <*sip:test1*example@example.com*>#015#012#015#012123 As a result: Sep 9 08:12:44 vs01 /usr/sbin/opensips[3307]: ERROR:core:parse_to: unexpected char [<] in status 5: <<<>> . Sep 9 08:12:44 vs01 /usr/sbin/opensips[3307]: ERROR:core:parse_from_header: bad from header Sep 9 08:12:44 vs01 /usr/sbin/opensips[3307]: DBG:core:set_err_info: ec: 1, el: 3, ei: 'error parsing From header' Sep 9 08:12:44 vs01 /usr/sbin/opensips[3307]: ERROR:core:pv_get_from_attr: cannot parse From header -- Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] opensips 1.11.7 tcp_send failed
I emailed you to li...@opensips.org. 06.06.2016 16:07, Liviu Chircu пишет: It would help a lot if you could supply a SIP trace of both user registration and a faulty call (either .pcap or plain text). If IP privacy is a concern, please email the traces to li...@opensips.org. Thanks! Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 06.06.2016 14:15, Igor Pavlov wrote: Can anybody reproduce this issue? 03.06.2016 15:21, Igor Pavlov пишет: Yes, it's setbflag(6) used. if ($si == "192.168.101.5") { setbflag(6); ... } if (isbflagset(6)) xlog("L_INFO","BFLAG SET"); Jun 3 14:11:52 vs01 /usr/sbin/opensips[27233]: BFLAG SET 03.06.2016 14:03, Liviu Chircu пишет: Hi Igor, Are you sure you are using "setbflag(6)" and not "setflag(6)"? It's a very important detail, since doing a "setflag(6)" would be completely irrelevant, and useless. Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 03.06.2016 12:02, Igor Pavlov wrote: Hi, all. I have a problem with TCP in opensips 1.11.7. All users are registered with tcp proto. Call flow: userA -> (tcp) opensips -> (udp) freeswitch -> (udp) opensips -> (tcp) userB. When call is coming from FS I get error: Jun 3 11:53:57 ERROR:tm:msg_send: tcp_send failed Jun 3 11:53:57 ERROR:tm:t_forward_nonack: sending request failed opensips.cfg contain tcp_no_new_conn_bflag = 6 and I'm setting this flag when INVITE is coming from FS. Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] opensips 1.11.7 tcp_send failed
Can anybody reproduce this issue? 03.06.2016 15:21, Igor Pavlov пишет: Yes, it's setbflag(6) used. if ($si == "192.168.101.5") { setbflag(6); ... } if (isbflagset(6)) xlog("L_INFO","BFLAG SET"); Jun 3 14:11:52 vs01 /usr/sbin/opensips[27233]: BFLAG SET 03.06.2016 14:03, Liviu Chircu пишет: Hi Igor, Are you sure you are using "setbflag(6)" and not "setflag(6)"? It's a very important detail, since doing a "setflag(6)" would be completely irrelevant, and useless. Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 03.06.2016 12:02, Igor Pavlov wrote: Hi, all. I have a problem with TCP in opensips 1.11.7. All users are registered with tcp proto. Call flow: userA -> (tcp) opensips -> (udp) freeswitch -> (udp) opensips -> (tcp) userB. When call is coming from FS I get error: Jun 3 11:53:57 ERROR:tm:msg_send: tcp_send failed Jun 3 11:53:57 ERROR:tm:t_forward_nonack: sending request failed opensips.cfg contain tcp_no_new_conn_bflag = 6 and I'm setting this flag when INVITE is coming from FS. Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] opensips 1.11.7 tcp_send failed
Yes, it's setbflag(6) used. if ($si == "192.168.101.5") { setbflag(6); ... } if (isbflagset(6)) xlog("L_INFO","BFLAG SET"); Jun 3 14:11:52 vs01 /usr/sbin/opensips[27233]: BFLAG SET 03.06.2016 14:03, Liviu Chircu пишет: Hi Igor, Are you sure you are using "setbflag(6)" and not "setflag(6)"? It's a very important detail, since doing a "setflag(6)" would be completely irrelevant, and useless. Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 03.06.2016 12:02, Igor Pavlov wrote: Hi, all. I have a problem with TCP in opensips 1.11.7. All users are registered with tcp proto. Call flow: userA -> (tcp) opensips -> (udp) freeswitch -> (udp) opensips -> (tcp) userB. When call is coming from FS I get error: Jun 3 11:53:57 ERROR:tm:msg_send: tcp_send failed Jun 3 11:53:57 ERROR:tm:t_forward_nonack: sending request failed opensips.cfg contain tcp_no_new_conn_bflag = 6 and I'm setting this flag when INVITE is coming from FS. Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] opensips 1.11.7 tcp_send failed
Hi, all. I have a problem with TCP in opensips 1.11.7. All users are registered with tcp proto. Call flow: userA -> (tcp) opensips -> (udp) freeswitch -> (udp) opensips -> (tcp) userB. When call is coming from FS I get error: Jun 3 11:53:57 ERROR:tm:msg_send: tcp_send failed Jun 3 11:53:57 ERROR:tm:t_forward_nonack: sending request failed opensips.cfg contain tcp_no_new_conn_bflag = 6 and I'm setting this flag when INVITE is coming from FS. Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Can't use rest_post from event_route
Thank you, it's working! 24.05.2016 16:53, Liviu Chircu пишет: Hi Igor! Pro tip: _any_ "Command cannot be used in the block" error can be circumvented with the following mechanism: route [msilo_event] { xlog("L_INFO","messages was deleted by msilo"); rest_post("http://192.168.101.4/handler.php;, "status_code=408", "application/x-www-form-urlencoded", "$var(body)", , "$var(code)"); } event_route [E_MSILO_MESSAGE_DELETE] { route(msilo_event); } Note: While we have nothing against using this kind of script magic, please note that, unlike other parts of the code which have received some community testing, this one has likely not received much! In your specific case though (msilo events), it looks quite safe. Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 24.05.2016 14:45, Igor Pavlov wrote: Hi all. I have opensips 1.11.6-tls (x86_64/linux). I'm trying to execute rest_post() from event_route, but geting error: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 718, column 35-36: Command cannot be used in the block event route section: event_route[E_MSILO_MESSAGE_DELETE] { xlog("L_INFO","messages was deleted by msilo"); rest_post("http://192.168.101.4/handler.php;, "status_code=408", "application/x-www-form-urlencoded", "$var(body)", , "$var(code)"); } -- Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Can't use rest_post from event_route
Hi all. I have opensips 1.11.6-tls (x86_64/linux). I'm trying to execute rest_post() from event_route, but geting error: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 718, column 35-36: Command cannot be used in the block event route section: event_route[E_MSILO_MESSAGE_DELETE] { xlog("L_INFO","messages was deleted by msilo"); rest_post("http://192.168.101.4/handler.php;, "status_code=408", "application/x-www-form-urlencoded", "$var(body)", , "$var(code)"); } -- Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] How to add custom event in module
Hi, all. Whether there is developer guide how to write custom events? -- Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] How to get functionality like asterisk's qualify
Hi, all. When it is possible to expect implementation of this function? - Best regards, Igor Pavlov From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: Tuesday, September 02, 2014 12:38 PM To: OpenSIPS users mailling list; i...@izhnet.ru Subject: Re: [OpenSIPS-Users] How to get functionality like asterisk's qualify Hi Igor, Right now no - the problem is that the nat pinging is not able to report anything back ; flaging is not a problem here. We plan to have such support for the next release. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 01.09.2014 11:47, Igor Pavlov wrote: Hello, list. Is it possible to mark user as unreachable (for example, by setting flag in usrloc) with nathelper's ping? - Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] How to get functionality like asterisk's qualify
Hello, list. Is it possible to mark user as unreachable (for example, by setting flag in usrloc) with nathelper's ping? - Best regards, Igor Pavlov ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users