Re: [SR-Users] Issue with debug 3 after upgrade to kamailio 5.6.2+

2022-10-26 Thread Julia Bo
Hello,

You're right,
The problem was with Centos upgrade.
After removing of rate limiting in journald and IMUXSock it's working.

Best regards,
Julia

On Fri, Oct 21, 2022 at 1:14 PM Henning Westerholt  wrote:

> Hello,
>
>
>
> This sounds strange. Are you sure you did not changed anything in the cfg?
> If not, please share a bit more details about the error you are seeing and
> what messages are missing.
>
>
>
> Cheers,
>
>
>
> Henning
>
>
>
> --
>
> Henning Westerholt – https://skalatan.de/blog/
>
> Kamailio services – https://gilawa.com
>
>
>
> *From:* sr-users  *On Behalf Of *Julia
> Bo
> *Sent:* Thursday, October 20, 2022 8:15 AM
> *To:* Kamailio (SER) - Users Mailing List 
> *Subject:* [SR-Users] Issue with debug 3 after upgrade to kamailio 5.6.2+
>
>
>
> Hello,
>
>
>
> After upgrading kamailio 5.6.1 to 5.6.2  (from source)
> debug 3 doesn't print messages related to calls to the log file.
>
> I only see OPTIONS transactions in debug.
>
>
>
> Does anyone have the same problem?
>
>
>
> Best regards,
>
> Julia.
>
>
>
>
>
>
>
__
Kamailio - Users Mailing List - Non Commercial Discussions
sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Issue with debug 3 after upgrade to kamailio 5.6.2+

2022-10-20 Thread Julia Bo
Hello,

After upgrading kamailio 5.6.1 to 5.6.2  (from source)
debug 3 doesn't print messages related to calls to the log file.
I only see OPTIONS transactions in debug.

Does anyone have the same problem?

Best regards,
Julia.
__
Kamailio - Users Mailing List - Non Commercial Discussions
sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio 5.4.4 segmentation fault after kamctl rpc dialplan.dump

2021-02-22 Thread Julia Bo
Hello Daniel,

I use mysqldb.
I have added the default value "" to column "attr" and It's working now.

Thank you so much!
Julia.


On Mon, Feb 22, 2021 at 12:19 PM Daniel-Constantin Mierla 
wrote:

> Hello,
>
> did you change the database structure? Because the crash seems to be
> because attrs field is NULL, but database schema should prevent it. Or,
> maybe you use a database backend that cannot enforce that, which one do you
> use (db_myql, ...)?
>
> Cheers,
> Daniel
> On 22.02.21 10:57, Daniel-Constantin Mierla wrote:
>
> Hello,
>
> ohhh, indeed -- I thought it was the corefile itself, which cannot be
> investigated on other system than the one generating it.
>
> Cheers,
> Daniel
> On 22.02.21 10:05, Julia Bo wrote:
>
> Hello,
>
> The corefile has been already attached in previous mail.
> Send it again.
>
> Thank you,
> Julia.
>
> On Mon, Feb 22, 2021 at 10:22 AM Daniel-Constantin Mierla <
> mico...@gmail.com> wrote:
>
>> Hello,
>>
>> are you able to get a core file for the crash? If yes, then send here the
>> output of gdb command "bt full" to see where the crash happens and try to
>> fix it.
>>
>> Cheers,
>> Daniel
>> On 21.02.21 16:11, Julia Bo wrote:
>>
>> Hello,
>> Kamailio version 5.4.4.
>> Kamailio  segmentation fault after kamctl rpc dialplan.dump ,
>> when dialplan includes variables in the replacement expression (repl_exp)
>> field.
>> Please see attached corefile.
>>
>> Thank you,
>> Julia.
>>
>> ___
>> Kamailio (SER) - Users Mailing 
>> Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>> --
>> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- 
>> www.linkedin.com/in/miconda
>> Funding: https://www.paypal.me/dcmierla
>>
>> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- 
> www.linkedin.com/in/miconda
> Funding: https://www.paypal.me/dcmierla
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- 
> www.linkedin.com/in/miconda
> Funding: https://www.paypal.me/dcmierla
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio 5.4.4 segmentation fault after kamctl rpc dialplan.dump

2021-02-22 Thread Julia Bo
Hello,

The corefile has been already attached in previous mail.
Send it again.

Thank you,
Julia.

On Mon, Feb 22, 2021 at 10:22 AM Daniel-Constantin Mierla 
wrote:

> Hello,
>
> are you able to get a core file for the crash? If yes, then send here the
> output of gdb command "bt full" to see where the crash happens and try to
> fix it.
>
> Cheers,
> Daniel
> On 21.02.21 16:11, Julia Bo wrote:
>
> Hello,
> Kamailio version 5.4.4.
> Kamailio  segmentation fault after kamctl rpc dialplan.dump ,
> when dialplan includes variables in the replacement expression (repl_exp)
> field.
> Please see attached corefile.
>
> Thank you,
> Julia.
>
> ___
> Kamailio (SER) - Users Mailing 
> Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- 
> www.linkedin.com/in/miconda
> Funding: https://www.paypal.me/dcmierla
>
>
(gdb) bt full
#0  0x7fd2b64c5641 in __strlen_sse2_pminub () from /lib64/libc.so.6
No symbol table info available.
#1  0x007a2c69 in srjson_strdup (doc=0x148d050, str=0x0) at 
core/utils/srjson.c:113
len = 21592384
copy = 0x1497300 "$dlg_var(default_cli)"
#2  0x007a511b in srjson_CreateString (doc=0x148d050, string=0x0) at 
core/utils/srjson.c:968
item = 0x1497940
#3  0x7fd2b3958d5b in jsonrpc_print_value (ctx=0x7fd2b3b83a60 
<_jsonrpc_ctx_global>, fmt=115 's', ap=0x7fff16a42ef8) at jsonrpcs_mod.c:500
nj = 0x0
buf = "\377\377\377\377\377\377\377\377", '\000' , 
"\377\377\377\377", '\000' , "@\244q\266\322\177", '\000' 
, 
"\341\324[\351\000\200\377\377h\260I\001\000\000\000\000\360+\244\026\377\177\000\000"...
dt = 21590848
t = {tm_sec = -72515583, tm_min = 0, tm_hour = 21590848, tm_mday = 0, 
tm_mon = 21590848, tm_year = 0, tm_wday = 21590848, tm_yday = 0, tm_isdst = 
21590848, 
  tm_gmtoff = 21590849, tm_zone = 0x }
sp = 0x148d050
__FUNCTION__ = "jsonrpc_print_value"
#4  0x7fd2b395d6b1 in jsonrpc_struct_add (jnode=0x14976c0, 
fmt=0x7fd2af9a3ecc "s") at jsonrpcs_mod.c:810
nj = 0x0
wj = 0x0
ctx = 0x7fd2b3b83a60 <_jsonrpc_ctx_global>
ap = {{gp_offset = 32, fp_offset = 48, overflow_arg_area = 
0x7fff16a43040, reg_save_area = 0x7fff16a42f50}}
void_ptr = 0x7fff16a430d8
mname = {s = 0x7fd2af9a3f8b "ATTRS", len = 5}
isobject = 1
__FUNCTION__ = "jsonrpc_struct_add"
#5  0x7fd2af984c48 in dialplan_rpc_dump (rpc=0x7fd2b3b83b40 , 
ctx=0x7fd2b3b83a60 <_jsonrpc_ctx_global>) at dialplan.c:797
idp = 0x7fd2ab62c370
indexp = 0x7fd2ab62c3f0
rulep = 0x7fd2ab6340d0
dpid = 2
th = 0x1497ec0
ih = 0x149a480
sh = 0x14976c0
__FUNCTION__ = "dialplan_rpc_dump"
#6  0x7fd2b396849e in jsonrpc_exec_ex (cmd=0x7fff16a43370, 
rpath=0x7fff16a43360) at jsonrpcs_mod.c:1415
rpce = 0x7fd2b58110c0
ctx = 0x7fd2b3b83a60 <_jsonrpc_ctx_global>
ret = -1
nj = 0x1496d10
val = {s = 0x1496dd0 "dialplan.dump", len = 13}
scmd = {s = 0x7fff16a43411 "{\"jsonrpc\": \"2.0\", \"method\": 
\"dialplan.dump\", \"params\": [2], \"reply_name\": 
\"kamailio_receiver_18865\", \"id\": 18865}", 
  len = 114}
__FUNCTION__ = "jsonrpc_exec_ex"
#7  0x7fd2b39529e6 in jsonrpc_fifo_server (fifo_stream=0x1399780) at 
jsonrpcs_fifo.c:460
reply_stream = 0x0
buf_in = "\n{\"jsonrpc\": \"2.0\", \"method\": \"dialplan.dump\", 
\"params\": [2], \"reply_name\": \"kamailio_receiver_18865\", \"id\": 
18865}\000\000\000\000\000\340\064\244\026\377\177\000\000 
B\a\265\322\177\000\000(hH\001\000\000\000\000\001\000\000\000\000\000\000\000\355\065\244\026\377\177\000\000\001\000\000\000\000\000\000\000\240ZH\001\000\000\000\000
 
}I\001\000\000\000\000\020\000\000\000\001\000\000\000\060\000\000\000\000\000\000\000"...
buf_rpath = 
"kamailio_receiver_18865\000X}I\001\000\000\000\000<\000\000\000\000\000\000\000?衰\001\000\000\000\000\360\063\244\026\377\177\000\000pI\245\264\322\177\000\000$\000\000\000\000\000\000\000X}I\001\000\000\000\000$\000\000\000\000\000\000\000P\352H\001\000\000\000\000P4\244\026\377\177\000\000Y?α264\322\177\000\000\000\000\000\000\000\000\000\000P\352H\001\000\000\000"
lread = 115
scmd = {s = 0x7fff16a43411 "{\"jsonrpc\": \"2.0\", \"method\": 
\"dialplan.dump\", \"par

[SR-Users] Kamailio 5.4.4 segmentation fault after kamctl rpc dialplan.dump

2021-02-21 Thread Julia Bo
Hello,
Kamailio version 5.4.4.
Kamailio  segmentation fault after kamctl rpc dialplan.dump ,
when dialplan includes variables in the replacement expression (repl_exp)
field.
Please see attached corefile.

Thank you,
Julia.
(gdb) bt full
#0  0x7fd2b64c5641 in __strlen_sse2_pminub () from /lib64/libc.so.6
No symbol table info available.
#1  0x007a2c69 in srjson_strdup (doc=0x148d050, str=0x0) at 
core/utils/srjson.c:113
len = 21592384
copy = 0x1497300 "$dlg_var(default_cli)"
#2  0x007a511b in srjson_CreateString (doc=0x148d050, string=0x0) at 
core/utils/srjson.c:968
item = 0x1497940
#3  0x7fd2b3958d5b in jsonrpc_print_value (ctx=0x7fd2b3b83a60 
<_jsonrpc_ctx_global>, fmt=115 's', ap=0x7fff16a42ef8) at jsonrpcs_mod.c:500
nj = 0x0
buf = "\377\377\377\377\377\377\377\377", '\000' , 
"\377\377\377\377", '\000' , "@\244q\266\322\177", '\000' 
, 
"\341\324[\351\000\200\377\377h\260I\001\000\000\000\000\360+\244\026\377\177\000\000"...
dt = 21590848
t = {tm_sec = -72515583, tm_min = 0, tm_hour = 21590848, tm_mday = 0, 
tm_mon = 21590848, tm_year = 0, tm_wday = 21590848, tm_yday = 0, tm_isdst = 
21590848, 
  tm_gmtoff = 21590849, tm_zone = 0x }
sp = 0x148d050
__FUNCTION__ = "jsonrpc_print_value"
#4  0x7fd2b395d6b1 in jsonrpc_struct_add (jnode=0x14976c0, 
fmt=0x7fd2af9a3ecc "s") at jsonrpcs_mod.c:810
nj = 0x0
wj = 0x0
ctx = 0x7fd2b3b83a60 <_jsonrpc_ctx_global>
ap = {{gp_offset = 32, fp_offset = 48, overflow_arg_area = 
0x7fff16a43040, reg_save_area = 0x7fff16a42f50}}
void_ptr = 0x7fff16a430d8
mname = {s = 0x7fd2af9a3f8b "ATTRS", len = 5}
isobject = 1
__FUNCTION__ = "jsonrpc_struct_add"
#5  0x7fd2af984c48 in dialplan_rpc_dump (rpc=0x7fd2b3b83b40 , 
ctx=0x7fd2b3b83a60 <_jsonrpc_ctx_global>) at dialplan.c:797
idp = 0x7fd2ab62c370
indexp = 0x7fd2ab62c3f0
rulep = 0x7fd2ab6340d0
dpid = 2
th = 0x1497ec0
ih = 0x149a480
sh = 0x14976c0
__FUNCTION__ = "dialplan_rpc_dump"
#6  0x7fd2b396849e in jsonrpc_exec_ex (cmd=0x7fff16a43370, 
rpath=0x7fff16a43360) at jsonrpcs_mod.c:1415
rpce = 0x7fd2b58110c0
ctx = 0x7fd2b3b83a60 <_jsonrpc_ctx_global>
ret = -1
nj = 0x1496d10
val = {s = 0x1496dd0 "dialplan.dump", len = 13}
scmd = {s = 0x7fff16a43411 "{\"jsonrpc\": \"2.0\", \"method\": 
\"dialplan.dump\", \"params\": [2], \"reply_name\": 
\"kamailio_receiver_18865\", \"id\": 18865}", 
  len = 114}
__FUNCTION__ = "jsonrpc_exec_ex"
#7  0x7fd2b39529e6 in jsonrpc_fifo_server (fifo_stream=0x1399780) at 
jsonrpcs_fifo.c:460
reply_stream = 0x0
buf_in = "\n{\"jsonrpc\": \"2.0\", \"method\": \"dialplan.dump\", 
\"params\": [2], \"reply_name\": \"kamailio_receiver_18865\", \"id\": 
18865}\000\000\000\000\000\340\064\244\026\377\177\000\000 
B\a\265\322\177\000\000(hH\001\000\000\000\000\001\000\000\000\000\000\000\000\355\065\244\026\377\177\000\000\001\000\000\000\000\000\000\000\240ZH\001\000\000\000\000
 
}I\001\000\000\000\000\020\000\000\000\001\000\000\000\060\000\000\000\000\000\000\000"...
buf_rpath = 
"kamailio_receiver_18865\000X}I\001\000\000\000\000<\000\000\000\000\000\000\000?衰\001\000\000\000\000\360\063\244\026\377\177\000\000pI\245\264\322\177\000\000$\000\000\000\000\000\000\000X}I\001\000\000\000\000$\000\000\000\000\000\000\000P\352H\001\000\000\000\000P4\244\026\377\177\000\000Y?α264\322\177\000\000\000\000\000\000\000\000\000\000P\352H\001\000\000\000"
lread = 115
scmd = {s = 0x7fff16a43411 "{\"jsonrpc\": \"2.0\", \"method\": 
\"dialplan.dump\", \"params\": [2], \"reply_name\": 
\"kamailio_receiver_18865\", \"id\": 18865}", 
  len = 114}
srpath = {s = 0x7fff16a43390 "kamailio_receiver_18865", len = 23}
nw = 256
jr = 0x7fd2b3b83ba0 <_jsonrpc_plain_reply>
__FUNCTION__ = "jsonrpc_fifo_server"
#8  0x7fd2b3953ffd in jsonrpc_fifo_process (rank=1) at jsonrpcs_fifo.c:497
__FUNCTION__ = "jsonrpc_fifo_process"
#9  0x7fd2b3955581 in jsonrpc_fifo_child_init (rank=0) at 
jsonrpcs_fifo.c:569
pid = 0
__FUNCTION__ = "jsonrpc_fifo_child_init"
#10 0x7fd2b39635e5 in child_init (rank=0) at jsonrpcs_mod.c:1200
__FUNCTION__ = "child_init"___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Error: invalid json doc in command "kamctl ping" kamailio 5.4.3

2021-01-20 Thread Julia Bo
Hello, Daniel.
Now it works.
Thank you for your time!

Julia.

On Wed, Jan 20, 2021 at 10:09 AM Daniel-Constantin Mierla 
wrote:

> Hello,
>
> I implemented an alternative rpc command that blocks waiting for the
> response. Try again with latest master and let's see if works.
>
> It waits for max 80secs for the sip reply to come back (or the transaction
> to time out), checking every 0.1sec. Later I can make these values
> modparams, for now just to validate it works.
>
> Cheers,
> Daniel
>
> On Tue, Jan 19, 2021 at 9:23 AM Daniel-Constantin Mierla <
> dan...@kamailio.org> wrote:
>
>> Hello,
>>
>> ahh, that's implemented only for http transport. I will see what can be
>> done for this case.
>>
>> Cheers,
>> Daniel
>>
>> January 19, 2021 9:01 AM, "Julia Bo" > <%22julia%20bo%22%20%3cjuli...@gmail.com%3E>> wrote:
>>
>> Hello,
>> After latest update :
>>
>> /usr/local/kam/kamailio[54560]: ERROR: jsonrpcs [jsonrpcs_mod.c:1011]: 
>> jsonrpc_delayed_ctx_new(): delayed response implemented only for HTTP 
>> transport /usr/local/kam/kamailio[54560]: DEBUG: jsonrpcs 
>> [jsonrpcs_mod.c:423]: jsonrpc_send(): sending response with body: (nil) - 
>> 500 internal error: failed to create context /usr/local/kam/kamailio[54560]: 
>> DEBUG: jsonrpcs [jsonrpcs_fifo.c:469]: jsonrpc_fifo_server(): command 
>> executed - result: [kamailio_receiver_95742] [500] [0x27c8a80] [{ "jsonrpc": 
>> "2.0", "error": { "code": 500, "message": "internal error: failed to create 
>> context" }, "id": 95742 }]
>>
>>  Thank you,
>> Julia.
>> On Tue, Jan 19, 2021 at 8:53 AM Daniel-Constantin Mierla <
>> mico...@gmail.com> wrote:
>>
>> Hello,
>> can you try with the latest master again? I pushed a commit to use the
>> rpc command that waits for the reply.
>> Cheers,
>> Daniel
>> On Mon, Jan 18, 2021 at 4:19 PM Julia Bo  wrote:
>>
>> It's my mistake, I checked a different branch. Sorry.
>> Now I get the same result as yours.
>> But in jason we get the result of command execution only and no sip reply
>> result (that was in 4.4 : 200,408 etc..)
>> I see sent OPTIONS and received reply in debug,
>> Thank you,
>> Julia
>> On Mon, Jan 18, 2021 at 4:12 PM Daniel-Constantin Mierla <
>> dan...@kamailio.org> wrote:
>>
>> Hello,
>>
>> what is your operating system and shell program?
>>
>> I tested on macos/bsd, the logs (with kamailio -E -ddd ...) are:
>>
>> """
>> # ./utils/kamctl/kamctl ping sip:10.10.10.10:5060
>>
>> 28(49832) DEBUG: jsonrpcs [jsonrpcs_fifo.c:457]: jsonrpc_fifo_server():
>> preparing to execute fifo jsonrpc [{"jsonrpc": "2.0", "method":
>> "tm.t_uac_start", "params": ["OPTIONS", "sip:10.10.10.10:5060", ".",
>> ".", "From:sip:dae...@thunders-macbook-air.fritz.box
>> To:
>> Contact:sip:dae...@thunders-macbook-air.fritz.box
>> "], "reply_name": "kamailio_receiver_49915", "id": 49915}]
>> 28(49832) DEBUG:  [core/parser/parse_hname2.c:294]:
>> parse_sip_header_name(): parsed header name [From] type 4
>> 28(49832) DEBUG:  [core/parser/parse_hname2.c:294]:
>> parse_sip_header_name(): parsed header name [To] type 3
>> 28(49832) DEBUG:  [core/parser/parse_addr_spec.c:864]:
>> parse_addr_spec(): end of header reached, state=10
>> 28(49832) DEBUG:  [core/parser/msg_parser.c:173]: get_hdr_field():
>>  [24]; uri=[sip:10.10.10.10:5060]
>> 28(49832) DEBUG:  [core/parser/msg_parser.c:176]: get_hdr_field():
>> to body (24)[
>> ], to tag (0)[]
>> 28(49832) DEBUG:  [core/parser/parse_hname2.c:294]:
>> parse_sip_header_name(): parsed header name [Contact] type 7
>> 28(49832) DEBUG:  [core/parser/parse_addr_spec.c:864]:
>> parse_addr_spec(): end of header reached, state=9
>> 28(49832) DEBUG: tm [rpc_uac.c:209]: get_hfblock(): one more hf processed
>> 28(49832) DEBUG: tm [uac.c:455]: t_uac_prepare(): next_hop=> 10.10.10.10:5060>
>> 28(49832) DEBUG: tm [uac.c:158]: dlg2hash(): hashid 23931
>> 28(49832) DEBUG: tm [uac.c:683]: send_prepared_request_impl(): uac:
>> 0x104f4af10 branch: 0 to 10.10.10.10:5060
>> 28(49832) DEBUG:  [core/onsend.c:50]: run_onsend(): required
>> parameters are not available - ignoring
>> 28(49832) DEBUG: jsonrpcs [jsonrpcs_mod.c:423]: jsonrpc_send(): sending
>> response with body: 0x0 - 200 OK
>> 28(49832) DEBUG: jsonrpcs [j

Re: [SR-Users] Error: invalid json doc in command "kamctl ping" kamailio 5.4.3

2021-01-19 Thread Julia Bo
Hello,

After latest update :

 /usr/local/kam/kamailio[54560]: ERROR: jsonrpcs
[jsonrpcs_mod.c:1011]: jsonrpc_delayed_ctx_new(): delayed response
implemented only for HTTP transport
 /usr/local/kam/kamailio[54560]: DEBUG: jsonrpcs [jsonrpcs_mod.c:423]:
jsonrpc_send(): sending response with body: (nil) - 500 internal
error: failed to create context
 /usr/local/kam/kamailio[54560]: DEBUG: jsonrpcs
[jsonrpcs_fifo.c:469]: jsonrpc_fifo_server(): command executed -
result: [kamailio_receiver_95742] [500] [0x27c8a80] [{
"jsonrpc":  "2.0",
"error":{
"code": 500,
"message":  "internal error: failed to create context"
},
"id":   95742
}]

Thank you,

Julia.


On Tue, Jan 19, 2021 at 8:53 AM Daniel-Constantin Mierla 
wrote:

> Hello,
>
> can you try with the latest master again? I pushed a commit to use the rpc
> command that waits for the reply.
>
> Cheers,
> Daniel
>
> On Mon, Jan 18, 2021 at 4:19 PM Julia Bo  wrote:
>
>> It's my mistake, I checked a different branch. Sorry.
>> Now I get the same result as yours.
>> But in jason we get the result of command execution only and no sip reply
>> result (that was in 4.4 : 200,408 etc..)
>> I see sent OPTIONS and received reply in debug,
>>
>> Thank you,
>> Julia
>>
>>
>> On Mon, Jan 18, 2021 at 4:12 PM Daniel-Constantin Mierla <
>> dan...@kamailio.org> wrote:
>>
>>> Hello,
>>>
>>> what is your operating system and shell program?
>>>
>>> I tested on macos/bsd, the logs (with kamailio -E -ddd ...) are:
>>>
>>> """
>>> # ./utils/kamctl/kamctl ping sip:10.10.10.10:5060
>>>
>>> 28(49832) DEBUG: jsonrpcs [jsonrpcs_fifo.c:457]: jsonrpc_fifo_server():
>>> preparing to execute fifo jsonrpc [{"jsonrpc": "2.0", "method":
>>> "tm.t_uac_start", "params": ["OPTIONS", "sip:10.10.10.10:5060", ".",
>>> ".", "From:sip:dae...@thunders-macbook-air.fritz.box
>>> To:
>>> Contact:sip:dae...@thunders-macbook-air.fritz.box
>>> "], "reply_name": "kamailio_receiver_49915", "id": 49915}]
>>> 28(49832) DEBUG:  [core/parser/parse_hname2.c:294]:
>>> parse_sip_header_name(): parsed header name [From] type 4
>>> 28(49832) DEBUG:  [core/parser/parse_hname2.c:294]:
>>> parse_sip_header_name(): parsed header name [To] type 3
>>> 28(49832) DEBUG:  [core/parser/parse_addr_spec.c:864]:
>>> parse_addr_spec(): end of header reached, state=10
>>> 28(49832) DEBUG:  [core/parser/msg_parser.c:173]: get_hdr_field():
>>>  [24]; uri=[sip:10.10.10.10:5060]
>>> 28(49832) DEBUG:  [core/parser/msg_parser.c:176]: get_hdr_field():
>>> to body (24)[
>>> ], to tag (0)[]
>>> 28(49832) DEBUG:  [core/parser/parse_hname2.c:294]:
>>> parse_sip_header_name(): parsed header name [Contact] type 7
>>> 28(49832) DEBUG:  [core/parser/parse_addr_spec.c:864]:
>>> parse_addr_spec(): end of header reached, state=9
>>> 28(49832) DEBUG: tm [rpc_uac.c:209]: get_hfblock(): one more hf processed
>>> 28(49832) DEBUG: tm [uac.c:455]: t_uac_prepare(): next_hop=>> 10.10.10.10:5060>
>>> 28(49832) DEBUG: tm [uac.c:158]: dlg2hash(): hashid 23931
>>> 28(49832) DEBUG: tm [uac.c:683]: send_prepared_request_impl(): uac:
>>> 0x104f4af10 branch: 0 to 10.10.10.10:5060
>>> 28(49832) DEBUG:  [core/onsend.c:50]: run_onsend(): required
>>> parameters are not available - ignoring
>>> 28(49832) DEBUG: jsonrpcs [jsonrpcs_mod.c:423]: jsonrpc_send(): sending
>>> response with body: 0x0 - 200 OK
>>> 28(49832) DEBUG: jsonrpcs [jsonrpcs_fifo.c:469]: jsonrpc_fifo_server():
>>> command executed - result: [kamailio_receiver_49915] [200] [0x7f9018f042c0]
>>> [{
>>> "jsonrpc": "2.0",
>>> "result": {
>>> },
>>> "id": 49915
>>> }]
>>> {
>>> "jsonrpc": "2.0",
>>> "result": {
>>> },
>>> "id": 49915
>>> }
>>> """
>>>
>>> All seems ok.
>>>
>>> Cheers,
>>> Daniel
>>>
>>> January 18, 2021 2:49 PM, "Julia Bo" >> <%22julia%20bo%22%20%3cjuli...@gmail.com%3E>> wrote:
>>>
>>> Hello,
>>> I sent files from the master branch.
>>> After "kamctl ping sip:10.10.10.10:

Re: [SR-Users] Error: invalid json doc in command "kamctl ping" kamailio 5.4.3

2021-01-18 Thread Julia Bo
It's my mistake, I checked a different branch. Sorry.
Now I get the same result as yours.
But in jason we get the result of command execution only and no sip reply
result (that was in 4.4 : 200,408 etc..)
I see sent OPTIONS and received reply in debug,

Thank you,
Julia


On Mon, Jan 18, 2021 at 4:12 PM Daniel-Constantin Mierla <
dan...@kamailio.org> wrote:

> Hello,
>
> what is your operating system and shell program?
>
> I tested on macos/bsd, the logs (with kamailio -E -ddd ...) are:
>
> """
> # ./utils/kamctl/kamctl ping sip:10.10.10.10:5060
>
> 28(49832) DEBUG: jsonrpcs [jsonrpcs_fifo.c:457]: jsonrpc_fifo_server():
> preparing to execute fifo jsonrpc [{"jsonrpc": "2.0", "method":
> "tm.t_uac_start", "params": ["OPTIONS", "sip:10.10.10.10:5060", ".", ".",
> "From:sip:dae...@thunders-macbook-air.fritz.box
> To:
> Contact:sip:dae...@thunders-macbook-air.fritz.box
> "], "reply_name": "kamailio_receiver_49915", "id": 49915}]
> 28(49832) DEBUG:  [core/parser/parse_hname2.c:294]:
> parse_sip_header_name(): parsed header name [From] type 4
> 28(49832) DEBUG:  [core/parser/parse_hname2.c:294]:
> parse_sip_header_name(): parsed header name [To] type 3
> 28(49832) DEBUG:  [core/parser/parse_addr_spec.c:864]:
> parse_addr_spec(): end of header reached, state=10
> 28(49832) DEBUG:  [core/parser/msg_parser.c:173]: get_hdr_field():
>  [24]; uri=[sip:10.10.10.10:5060]
> 28(49832) DEBUG:  [core/parser/msg_parser.c:176]: get_hdr_field():
> to body (24)[
> ], to tag (0)[]
> 28(49832) DEBUG:  [core/parser/parse_hname2.c:294]:
> parse_sip_header_name(): parsed header name [Contact] type 7
> 28(49832) DEBUG:  [core/parser/parse_addr_spec.c:864]:
> parse_addr_spec(): end of header reached, state=9
> 28(49832) DEBUG: tm [rpc_uac.c:209]: get_hfblock(): one more hf processed
> 28(49832) DEBUG: tm [uac.c:455]: t_uac_prepare(): next_hop= 10.10.10.10:5060>
> 28(49832) DEBUG: tm [uac.c:158]: dlg2hash(): hashid 23931
> 28(49832) DEBUG: tm [uac.c:683]: send_prepared_request_impl(): uac:
> 0x104f4af10 branch: 0 to 10.10.10.10:5060
> 28(49832) DEBUG:  [core/onsend.c:50]: run_onsend(): required
> parameters are not available - ignoring
> 28(49832) DEBUG: jsonrpcs [jsonrpcs_mod.c:423]: jsonrpc_send(): sending
> response with body: 0x0 - 200 OK
> 28(49832) DEBUG: jsonrpcs [jsonrpcs_fifo.c:469]: jsonrpc_fifo_server():
> command executed - result: [kamailio_receiver_49915] [200] [0x7f9018f042c0]
> [{
> "jsonrpc": "2.0",
> "result": {
> },
> "id": 49915
> }]
> {
> "jsonrpc": "2.0",
> "result": {
> },
> "id": 49915
> }
> """
>
> All seems ok.
>
> Cheers,
> Daniel
>
> January 18, 2021 2:49 PM, "Julia Bo"  <%22julia%20bo%22%20%3cjuli...@gmail.com%3E>> wrote:
>
> Hello,
> I sent files from the master branch.
> After "kamctl ping sip:10.10.10.10:5060" i have received:
>
> /usr/local/lib64/kamailio//kamctl/kamctl.rpcfifo: line 149: syntax error near 
> unexpected token `}' /usr/local/lib64/kamailio//kamctl/kamctl.rpcfifo: line 
> 149: `}' /usr/local/sbin/kamctl: line 261: =: command not found
>
>  Thank you,
>
> Julia
>
> On Mon, Jan 18, 2021 at 11:42 AM Daniel-Constantin Mierla <
> mico...@gmail.com> wrote:
>
> Hello,
> can you try with the current master branch or with the patch from the next
> commit?
> *
> https://github.com/kamailio/kamailio/commit/1c66f6a1a5d04c33f1912609a36729b06b6eebd7
> If it works fine, then I will backport.
> Cheers,
> Daniel
> On Mon, Jan 18, 2021 at 8:23 AM Daniel-Constantin Mierla <
> dan...@kamailio.org> wrote:
>
> Hello,
>
> Indeed, it seems broken, as the new lines at the end of headers break
> input in new parameters of a shell function inside the kamcli tool.
>
> I will try to look into it.
>
> Cheers,
> Daniel
>
> January 17, 2021 7:24 PM, "Julia Bo"  <%22julia%20bo%22%20%3cjuli...@gmail.com%3E>> wrote:
>
> Hello,
> Kamailio 5.4.3 has been installed from source.
> "kamctl ping sip:10.10.10.10:5060" is sent from the command line.
> Errors:
> Jan 12 15:59:24 KAM-TEST /usr/local/kam/kamailio[66587]: ERROR: jsonrpcs
> [jsonrpcs_mod.c:1352]: jsonrpc_exec_ex(): invalid json doc [[{"jsonrpc":
> "2.0", "method": "tm.t_uac", "], "reply_name": "kamailio_receiver_85791",
> "id": 85791}]].", "From:sip:daemon@KAM-TEST
> Jan 12 15:59:24 KAM-TEST /usr/local/kam/kamailio[66587]: ERROR: jsonrpcs
>

Re: [SR-Users] Error: invalid json doc in command "kamctl ping" kamailio 5.4.3

2021-01-18 Thread Julia Bo
Hello,
I sent files from the master branch.
After "kamctl ping sip:10.10.10.10:5060" i have received:

/usr/local/lib64/kamailio//kamctl/kamctl.rpcfifo: line 149: syntax
error near unexpected token `}'
/usr/local/lib64/kamailio//kamctl/kamctl.rpcfifo: line 149: `}'
/usr/local/sbin/kamctl: line 261: =: command not found


Thank you,

Julia


On Mon, Jan 18, 2021 at 11:42 AM Daniel-Constantin Mierla 
wrote:

> Hello,
>
> can you try with the current master branch or with the patch from the next
> commit?
>
>   *
> https://github.com/kamailio/kamailio/commit/1c66f6a1a5d04c33f1912609a36729b06b6eebd7
>
> If it works fine, then I will backport.
>
> Cheers,
> Daniel
>
> On Mon, Jan 18, 2021 at 8:23 AM Daniel-Constantin Mierla <
> dan...@kamailio.org> wrote:
>
>> Hello,
>>
>> Indeed, it seems broken, as the new lines at the end of headers break
>> input in new parameters of a shell function inside the kamcli tool.
>>
>> I will try to look into it.
>>
>> Cheers,
>> Daniel
>>
>> January 17, 2021 7:24 PM, "Julia Bo" > <%22julia%20bo%22%20%3cjuli...@gmail.com%3E>> wrote:
>>
>> Hello,
>> Kamailio 5.4.3 has been installed from source.
>> "kamctl ping sip:10.10.10.10:5060" is sent from the command line.
>> Errors:
>> Jan 12 15:59:24 KAM-TEST /usr/local/kam/kamailio[66587]: ERROR: jsonrpcs
>> [jsonrpcs_mod.c:1352]: jsonrpc_exec_ex(): invalid json doc [[{"jsonrpc":
>> "2.0", "method": "tm.t_uac", "], "reply_name": "kamailio_receiver_85791",
>> "id": 85791}]].", "From:sip:daemon@KAM-TEST
>> Jan 12 15:59:24 KAM-TEST /usr/local/kam/kamailio[66587]: ERROR: jsonrpcs
>> [jsonrpcs_fifo.c:461]: jsonrpc_fifo_server(): failed to execute the json
>> document from fifo stream
>> This command is working in 4.4.
>> Has anyone tried using kamctl ping in 5.4?
>> Is it a bug in 5.4.3 ?
>> Thank you,
>> Julia.
>>
>>
>>
>> --
>> Daniel-Constantin Mierla
>> www.kamailio.org -- www.asipto.com
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
> --
> Daniel-Constantin Mierla - https://www.asipto.com
> https://twitter.com/miconda - https://www.linkedin.com/in/miconda
> Kamailio Advanced Training - https://www.asipto.com/u/kat
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Error: invalid json doc in command "kamctl ping" kamailio 5.4.3

2021-01-17 Thread Julia Bo
Hello,

Kamailio 5.4.3 has been installed from source.
 "kamctl ping sip:10.10.10.10:5060"  is sent from the command line.

Errors:
Jan 12 15:59:24 KAM-TEST /usr/local/kam/kamailio[66587]: ERROR: jsonrpcs
[jsonrpcs_mod.c:1352]: jsonrpc_exec_ex(): invalid json doc [[{"jsonrpc":
"2.0", "method": "tm.t_uac", "], "reply_name": "kamailio_receiver_85791",
"id": 85791}]].", "From:sip:daemon@KAM-TEST
Jan 12 15:59:24 KAM-TEST /usr/local/kam/kamailio[66587]: ERROR: jsonrpcs
[jsonrpcs_fifo.c:461]: jsonrpc_fifo_server(): failed to execute the json
document from fifo stream

This command is working in 4.4.
Has anyone tried using kamctl ping in 5.4?
Is it a bug in 5.4.3 ?

Thank you,
Julia.
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users