[sr-dev] [kamailio/kamailio] jsonrpc reply error (#1640)
Juha Heinanen
jh at tutpro.com
Tue Sep 11 20:57:26 CEST 2018
Daniel-Constantin Mierla writes:
> Can you try with latest master branch and attach all logs printed with
> debug=3 in kamailio.cfg?
I got this:
````
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: <core> [core/tcp_read.c:1759]: handle_io(): received n=8 con=0x7f2f544fe450, fd=12
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: <core> [core/tcp_read.c:1560]: tcp_read_req(): content-length=0
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: <core> [core/parser/msg_parser.c:620]: parse_msg(): SIP Reply (status):
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: <core> [core/parser/msg_parser.c:622]: parse_msg(): version: <SIP/2.0>
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: <core> [core/parser/msg_parser.c:624]: parse_msg(): status: <200>
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: <core> [core/parser/msg_parser.c:626]: parse_msg(): reason: <OK>
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: <core> [core/parser/parse_via.c:1303]: parse_via_param(): Found param type 232, <branch> = <z9hG4bKa837.5ec6c2a0000000000000000000000000.0>; state=6
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: <core> [core/parser/parse_via.c:1303]: parse_via_param(): Found param type 234, <received> = <127.0.0.1>; state=16
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: <core> [core/parser/parse_via.c:2639]: parse_via(): end of header reached, state=5
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: <core> [core/parser/msg_parser.c:498]: parse_headers(): Via found, flags=2
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: <core> [core/parser/msg_parser.c:500]: parse_headers(): this is the first via
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: <core> [core/parser/parse_addr_spec.c:185]: parse_to_param(): add param: tag=48b5b8952e8d0bca6256941910840e90-1af3
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: <core> [core/parser/parse_addr_spec.c:864]: parse_addr_spec(): end of header reached, state=29
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: <core> [core/parser/msg_parser.c:171]: get_hdr_field(): <To> [70]; uri=[sip:test at test.tutpro.com]
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: <core> [core/parser/msg_parser.c:174]: get_hdr_field(): to body [<sip:test at test.tutpro.com>], to tag [48b5b8952e8d0bca6256941910840e90-1af3]
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: <core> [core/parser/msg_parser.c:152]: get_hdr_field(): cseq <CSeq>: <10> <PUBLISH>
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: <core> [core/receive.c:232]: receive_msg(): --- received sip message - reply - call-id: [3aff5ef2353114cd-3180 at 192.168.43.107] - cseq: [10 PUBLISH]
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: tm [t_lookup.c:1018]: t_check_msg(): msg (0x7f2f6693e010) id=3 global id=2 T start=0xffffffffffffffff
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: tm [t_lookup.c:896]: t_reply_matching(): t_reply_matching: hash 29578 label 0 branch 0
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: tm [t_lookup.c:951]: t_reply_matching(): reply (0x7f2f6693e010) matched an active transaction (T=0x7f2f5450c130)!
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: tm [t_lookup.c:1087]: t_check_msg(): msg (0x7f2f6693e010) id=3 global id=3 T end=0x7f2f5450c130
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: tm [t_reply.c:2232]: reply_received(): org. status uas=0, uac[0]=0 local=2 is_invite=0)
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: tm [t_reply.c:1263]: t_should_relay_response(): ->>>>>>>>> T_code=0, new_code=200
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: tm [t_reply.c:2100]: local_reply(): branch=0, save=0, winner=0
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: tm [t_reply.c:2139]: local_reply(): local transaction completed 200/0 (totag retr: 0/1024)
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: tm [t_hooks.c:258]: run_trans_callbacks_internal(): DBG: trans=0x7f2f5450c130, callback type 1024, id 0 entered
...
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: <core> [core/parser/parse_hname2.c:192]: parse_hname2(): beginning of SIP-If-Match: yet=0x2d706973
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: <core> [core/parser/msg_parser.c:185]: get_hdr_field(): content_length=0
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: <core> [core/parser/msg_parser.c:89]: get_hdr_field(): found end of header
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: pua [send_publish.c:314]: publ_cback_func(): lexpire= 7776001
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: pua [send_publish.c:333]: publ_cback_func(): completed with status 200 [contact:sip:test at test.tutpro.com]
...
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: pua [pua_callback.h:69]: run_pua_callbacks(): found callback
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: pua_rpc [pua_rpc.c:82]: pua_rpc_publish_callback(): running callback
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: pua_rpc [pua_rpc.c:114]: pua_rpc_publish_callback(): expires = 7776001
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: pua_rpc [pua_rpc.c:130]: pua_rpc_publish_callback(): SIP-Etag = a.1536505763.10751.128.6
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: ERROR: jsonrpcs [jsonrpcs_mod.c:778]: jsonrpc_struct_add(): reply object not initialized in rpl context - flags 0x0
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: ERROR: jsonrpcs [jsonrpcs_mod.c:778]: jsonrpc_struct_add(): reply object not initialized in rpl context - flags 0x0
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: jsonrpcs [jsonrpcs_mod.c:422]: jsonrpc_send(): sending response with body: 0x7f2f54506a90 - 200 OK
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: xhttp [xhttp_mod.c:431]: xhttp_send_reply(): response with content-type: application/json
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: xhttp [xhttp_mod.c:441]: xhttp_send_reply(): response with body: {#012#011"jsonrpc":#011"2.0",#012#011"result":#011{#012#011},#012#011"id":#0111#012}
Sep 11 21:47:33 char /usr/bin/sip-proxy[3149]: DEBUG: xhttp [xhttp_mod.c:443]: xhttp_send_reply(): sending out response: 200 OK
````
More information about the sr-dev
mailing list