Re: [OpenSIPS-Users] registrant.
Hi Johan, sure I can maybe you were confused because the ‘ @ ‘ symbol had been substituted in e-mail by ‘at’ word I’ll try to post SQL insert once again, let’s have a look what will happen INSERT INTO registrant (registrar, aor, username, password, binding_URI, expiry) VALUES (‘sip:11.11.11.11’, ’sip:79993332211 @ voip-isp.com’, ’79993332211’, ’PaSsWoRd’, ‘sip:79993332211 @ 22.22.22.22’, 300); where: - 11.11.11.11 is VoIP ISP IP address, - voip-isp.com is a domain you should use for authentication (depends on ISP settings, may be sip:79993332211 @ 11.11.11.11), - 79993332211 is your username (usually equals to phone number, but also depends on ISP settings), - sip:79993332211 @ 22.22.22.22 - this will form a Contact: header and must contain IP address of your OpenSIPS (obviously you can insert here some other IP address, and the calls from ISP proxy will go there, but in most cases it’s common to write here the IP address of your OpenSIPS), 300 is an registration expiration value in seconds, you ISP may require some other value. --- BR, Alexey https://alexeyka.zantsev.com/ ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] opensips crash while using siprec module
Hi All, opensips ver 2.4 Note: Same issue is there with opensips 3.3 ver We are trying to use siprec module and observed a crash while processing 200ok from remote while siprec module is being used. Below is the opensips config snapshot for using siprec if (is_method("INVITE")) { create_dialog(); rtpproxy_engage(); xlog("Engage SIPREC call recording to sip:10.57.1.110:5060 for $ci\n"); siprec_start_recording(sip:10.57.1.110:5060); b2b_init_request("b2bua", sip:sa@10.57.1.198:5060); do_accounting("log"); exit; } Also find below backtrace of a crash - #0 0x004dcc1a in parse_headers (msg=0x, flags=18446744073709551615, next=0) at parser/msg_parser.c:302 302parser/msg_parser.c: No such file or directory. Missing separate debuginfos, use: debuginfo-install glibc-2.17-157.el7.x86_64 libuuid-2.23.2-33.el7.x86_64 libxml2-2.9.1-6.el7_2.3.x86_64 xz-libs-5.2.2-1.el7.x86_64 zlib-1.2.7-17.el7.x86_64 (gdb) bt #0 0x004dcc1a in parse_headers (msg=0x, flags=18446744073709551615, next=0) at parser/msg_parser.c:302 #1 0x7f8bb9f271e1 in get_body () from /opt/esbc/opensips-2.4.11/lib64/opensips/modules/siprec.so #2 0x7f8bb9f2a430 in tm_start_recording () from /opt/esbc/opensips-2.4.11/lib64/opensips/modules/siprec.so #3 0x7f8bbc3dbd89 in run_trans_callbacks () from /opt/esbc/opensips-2.4.11/lib64/opensips/modules/tm.so #4 0x7f8bbc3dc0af in run_trans_callbacks_locked () from /opt/esbc/opensips-2.4.11/lib64/opensips/modules/tm.so #5 0x7f8bbc3a90de in _reply_light () from /opt/esbc/opensips-2.4.11/lib64/opensips/modules/tm.so #6 0x7f8bbc3ad4d2 in t_reply_with_body () from /opt/esbc/opensips-2.4.11/lib64/opensips/modules/tm.so #7 0x7f8bbae25de3 in b2b_send_reply () from /opt/esbc/opensips-2.4.11/lib64/opensips/modules/b2b_entities.so #8 0x7f8bbabf5931 in b2b_logic_notify_reply () ---Type to continue, or q to quit---q Thanks, Hitesh ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] dialplan out_var
maybe it is so. but where can you go wrong with this simple rule "id" "dpid" "pr" "match_op" "match_exp" "match_flags" "subst_exp" "repl_exp" "timerec" "disabled" "attrs" 1 0 0 1 ".*" 0 "^(.*)$" "\1" 0 "test" /usr/sbin/opensips[30317]: DBG:dialplan:dp_translate_f: dpid is 0 partition is default /usr/sbin/opensips[30317]: DBG:dialplan:dp_translate_f: input is "00139939484" /usr/sbin/opensips[30317]: DBG:dialplan:dp_translate_f: checking with dpid 0 /usr/sbin/opensips[30317]: DBG:dialplan:test_match: test_match:[0] "00139939484" /usr/sbin/opensips[30317]: DBG:dialplan:translate: Regex operator testing. Got result: 0 /usr/sbin/opensips[30317]: DBG:dialplan:translate: Found a matching rule 0x7f00fee33698: pr 0, match_exp .* /usr/sbin/opensips[30317]: DBG:dialplan:translate: the rule's attrs are test /usr/sbin/opensips[30317]: DBG:dialplan:translate: the copied attributes are: test /usr/sbin/opensips[30317]: DBG:dialplan:test_match: test_match:[0] "00139939484" /usr/sbin/opensips[30317]: DBG:dialplan:test_match: test_match:[1] "00139939484" /usr/sbin/opensips[30317]: DBG:dialplan:dp_translate_f: input "00139939484" with dpid 0 => output "00139939484" пн, 29 авг. 2022 г. в 16:43, Bogdan-Andrei Iancu : > Hi, > > No quotes are added by the dialplan module at all. I think out value > inherited the quotes from the input value, the From Display Name, which may > be a quoted value. > > Regards, > > Bogdan-Andrei Iancu > > OpenSIPS Founder and Developer > https://www.opensips-solutions.com > OpenSIPS Summit 27-30 Sept 2022, Athens > https://www.opensips.org/events/Summit-2022Athens/ > > On 8/29/22 3:35 PM, Антон Ершов wrote: > > Hello friends! > > In version: opensips 3.2.8 (x86_64/linux) > I observe strange behavior of the dialplan module. the value returned to > the $var(out) variable is wrapped in quotes. In version 3.2.5 no such > behavior was observed. this forces you to do additional work with the > result obtained in order to use it further. > > my config > if (dp_translate(0, $fn, $var(dp_out), $var(dp_attrs))) { > xlog("L_INFO", "$ci translated to var $var(dp_out) with attributes: > '$var(dp_attrs)'\n"); > ... > } > > show in console > > /usr/sbin/opensips[30318]: 287b5bea-26c4-11ed-abcd-016f252b0962 translated > to var "12345" with attributes: 'test' > > as you can see the value is wrapped in quotes > if you try to use the value of the variable in some other place, for > example in uac_replace. quotation marks are also present > > ___ > Users mailing > listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] dialplan out_var
Hi, No quotes are added by the dialplan module at all. I think out value inherited the quotes from the input value, the From Display Name, which may be a quoted value. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS Summit 27-30 Sept 2022, Athens https://www.opensips.org/events/Summit-2022Athens/ On 8/29/22 3:35 PM, Антон Ершов wrote: Hello friends! In version: opensips 3.2.8 (x86_64/linux) I observe strange behavior of the dialplan module. the value returned to the $var(out) variable is wrapped in quotes. In version 3.2.5 no such behavior was observed. this forces you to do additional work with the result obtained in order to use it further. my config if (dp_translate(0, $fn, $var(dp_out), $var(dp_attrs))) { xlog("L_INFO", "$ci translated to var $var(dp_out) with attributes: '$var(dp_attrs)'\n"); ... } show in console /usr/sbin/opensips[30318]: 287b5bea-26c4-11ed-abcd-016f252b0962 translated to var "12345" with attributes: 'test' as you can see the value is wrapped in quotes if you try to use the value of the variable in some other place, for example in uac_replace. quotation marks are also present ___ 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] dialplan out_var
Hello friends! In version: opensips 3.2.8 (x86_64/linux) I observe strange behavior of the dialplan module. the value returned to the $var(out) variable is wrapped in quotes. In version 3.2.5 no such behavior was observed. this forces you to do additional work with the result obtained in order to use it further. my config if (dp_translate(0, $fn, $var(dp_out), $var(dp_attrs))) { xlog("L_INFO", "$ci translated to var $var(dp_out) with attributes: '$var(dp_attrs)'\n"); ... } show in console /usr/sbin/opensips[30318]: 287b5bea-26c4-11ed-abcd-016f252b0962 translated to var "12345" with attributes: 'test' as you can see the value is wrapped in quotes if you try to use the value of the variable in some other place, for example in uac_replace. quotation marks are also present ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users