<div dir="ltr">Hi,<div><br></div><div>my colleague implemented a fix for this some months ago, but we haven't pushed it upstream. I will talk to him to fix this in the official Repo also.</div><div><br></div><div>Thanks,</div><div>Carsten<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">--<br><br>Carsten Bock<br>CEO (Geschäftsführer)<br><br>ng-voice GmbH<br>Millerntorplatz 1<br>20359 Hamburg / Germany<br><br><a href="http://www.ng-voice.com" target="_blank">http://www.ng-voice.com</a><br>mailto:<a href="mailto:carsten@ng-voice.com" target="_blank">carsten@ng-voice.com</a><br><br>Office +49 40 5247593-40<br>Fax +49 40 5247593-99<br><br>Sitz der Gesellschaft: Hamburg<br>Registergericht: Amtsgericht Hamburg, HRB 120189<br>Geschäftsführer: Carsten Bock<br>Ust-ID: DE279344284<br><br>Hier finden Sie unsere handelsrechtlichen Pflichtangaben:<br><a href="http://www.ng-voice.com/imprint/" target="_blank">http://www.ng-voice.com/imprint/</a></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">Am Do., 1. Nov. 2018 um 06:55 Uhr schrieb Iman Mohammadi <<a href="mailto:iman.mohammadi.telecom@gmail.com">iman.mohammadi.telecom@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi</div>I tried it before,it must be list for our purpose,int or string doesnt meet our purpose<div><br></div><div>thanks</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Nov 1, 2018 at 9:00 AM Mojtaba <<a href="mailto:mespio@gmail.com" target="_blank">mespio@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hi.<div dir="auto">There are some reason for this issue.</div><div dir="auto">The three nested json is not reason for crash ims_diameter.</div><div dir="auto">Let try this senario. </div><div dir="auto">Chenge type of the last indoor level of json from List to other type(like int or ...).</div><div dir="auto">Then check the lamailio is crashed or not?</div><div dir="auto">With Regards.Mojtaba</div><br><br><div class="gmail_quote" dir="auto"><div dir="ltr">On Wed, 31 Oct 2018 21:56 Iman Mohammadi, <<a href="mailto:iman.mohammadi.telecom@gmail.com" target="_blank">iman.mohammadi.telecom@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><p style="margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,blinkmacsystemfont,"segoe ui",helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:15px;margin-top:0px!important">When the below format is sent from rest , kamailio crashes</p><p style="margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,blinkmacsystemfont,"segoe ui",helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:15px">List[{<br>List[{<br>List[{<br>             ]}<br>             ]}<br>             ]}<br>(Json with 3 nested lists),<br>With 2 lists it works properly,<br>When diameter is translated to json with 3 lists by this module it also works properly,<br>Json format is correct too.</p><p style="margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,blinkmacsystemfont,"segoe ui",helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:15px">gdb:</p><pre style="white-space:pre-wrap;font-family:consolas,"liberation mono",courier,monospace;margin-top:0px;margin-bottom:16px;padding:16px;font-size:11.9px;line-height:1.45;background-color:rgb(246,248,250);border-radius:3px;color:rgb(36,41,46)"><code style="font-family:consolas,"liberation mono",courier,monospace;padding:0px;margin:0px;border-radius:3px;white-space:pre-wrap;border:0px;display:inline;line-height:inherit">gdb) bt full
#0  0x00007f5e23c4a11e in diameterserver_add_avp (m=0x0, d=0x7f5e1b5c2240 "", len=12, avp_code=431, flags=64, vendorid=0, data_do=2,
    func=0x7f5e23c51d6c <__FUNCTION__.20148> "parselist") at avp_helper.c:208
        avp = 0x7f5e1b5c3bd0
        __FUNCTION__ = "diameterserver_add_avp"
#1  0x00007f5e23c4d0c8 in parselist (response=0x0, list=0x7fff9f21a8d0, item=0x11b67d0, level=2) at avp_helper.c:309
        i = 1
        flags = 64
        x = "p\250!\237"
        avp_list = {head = 0x0, tail = 0x0}
        avp_list_s = {s = 0x7f5e1b5c2240 "", len = 12}
        __FUNCTION__ = "parselist"
#2  0x00007f5e23c4cffc in parselist (response=0x7f5e1b5c3ab8, list=0x0, item=0x11b6550, level=1) at avp_helper.c:304
        subitem = 0x11b67d0
        i = 0
        flags = 64
        x = "\000\000\000"
        avp_list = {head = 0x0, tail = 0x0}
        avp_list_s = {s = 0x7fff9f21a8f0 "@\251!\237\377\177", len = 600070897}
        __FUNCTION__ = "parselist"
#3  0x00007f5e23c4db3a in addAVPsfromJSON (response=0x7f5e1b5c3ab8, json=0x7f5e23e53950 <responsejson>) at avp_helper.c:349
        subitem = 0x11b6550
        i = 4
        __FUNCTION__ = "addAVPsfromJSON"
        root = 0x11b4210
#4  0x00007f5e23c3fbdb in callback_cdp_request (request_in=0x7f5e1b5c19b0, param=0x0) at ims_diameter_server.c:193
        fmsg = 0xab7840 <_faked_msg>
        backup_rt = 1
        ctx = {rec_lev = 0, run_flags = 0, last_retcode = 1, jmp_env = {{__jmpbuf = {1, -5713032302318786866, 7971288, 7971288,
                140042162528420, 0, -5713032302339758386, 5712822384154044110}, __mask_was_saved = 0, __saved_mask = {__val = {
                  140735863172072, 127, 0, 140042162532340, 140042389578761, 4222451713, 140042162532340, 140042162532340, 140042162532340,
                  140042162532340, 140042162532358, 140042162532467, 140042162532340, 140042162532467, 0, 0}}}}}
        response = 0x7f5e1b5c3ab8
        __FUNCTION__ = "callback_cdp_request"
#5  0x00007f5e24a705c0 in api_callback (p=0x7f5e1b598f50, msg=0x7f5e1b5c19b0, ptr=0x0) at api_process.c:83
        t = 0x7f5e1b598f50
        auto_drop = 32767
        h = 0x7f5e1b5b3358
---Type <return> to continue, or q <return> to quit---
        x = {type = (unknown: 2669784000), handler = {requestHandler = 0x7f5e23c3eed1 <callback_cdp_request>,
            responseHandler = 0x7f5e23c3eed1 <callback_cdp_request>}, param = 0x3ee9f21ac10, next = 0x7f5e1b5988b8, prev = 0x19f210069}
        type = REQUEST_HANDLER
        rsp = 0x7f5e1b5c19b0
        __FUNCTION__ = "api_callback"
#6  0x00007f5e24a857d7 in worker_process (id=5) at worker.c:346
        t = {p = 0x7f5e1b598f50, msg = 0x7f5e1b5c19b0}
        cb = 0x7f5e1b59df30
        r = 128
        __FUNCTION__ = "worker_process"
#7  0x00007f5e24a62a8e in diameter_peer_start (blocking=0) at diameter_peer.c:242
        pid = 0
        k = 5
        p = 0x36
        __FUNCTION__ = "diameter_peer_start"
#8  0x00007f5e24a559bc in cdp_child_init (rank=0) at cdp_mod.c:243
        __FUNCTION__ = "cdp_child_init"
#9  0x0000000000547e54 in init_mod_child (m=0x7f5e28656fb8, rank=0) at core/sr_module.c:943
        __FUNCTION__ = "init_mod_child"
#10 0x0000000000547b16 in init_mod_child (m=0x7f5e28657c38, rank=0) at core/sr_module.c:939
        __FUNCTION__ = "init_mod_child"
#11 0x0000000000547b16 in init_mod_child (m=0x7f5e28658010, rank=0) at core/sr_module.c:939
        __FUNCTION__ = "init_mod_child"
#12 0x0000000000547b16 in init_mod_child (m=0x7f5e28658790, rank=0) at core/sr_module.c:939
        __FUNCTION__ = "init_mod_child"
#13 0x0000000000547b16 in init_mod_child (m=0x7f5e28658d68, rank=0) at core/sr_module.c:939
        __FUNCTION__ = "init_mod_child"
#14 0x00000000005481e6 in init_child (rank=0) at core/sr_module.c:970
No locals.
#15 0x00000000004250f5 in main_loop () at main.c:1701
        i = 8
        pid = 1964
        si = 0x0
        si_desc = "udp receiver child=7 sock=<a href="http://10.25.5.23:5060" rel="noreferrer" target="_blank">10.25.5.23:5060</a>\000y\000\000\000\000\000x\333i(^\177\000\000@\264!\237\377\177", '\000' <repeats 18 times>, "`\263!\237\377\177\000\000\347L\340(^\177\000\000\360\260!\237\377\177\000\000\060\000\000\000\060\000\000\000\260\261!\237\377\177\000\000\350\226i(^\177\000"
        nrprocs = 8
---Type <return> to continue, or q <return> to quit---
        woneinit = 1
        __FUNCTION__ = "main_loop"
#16 0x000000000042b99b in main (argc=13, argv=0x7fff9f21b448) at main.c:2638
        cfg_stream = 0x111c020
        c = -1
        r = 0
        tmp = 0x7fff9f21bf69 ""
        tmp_len = 32606
        port = 693647725
        proto = 0
        options = 0x74cd90 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:"
        ret = -1
        seed = 898203166
        rfd = 4
        debug_save = 0
        debug_flag = 0
        dont_fork_cnt = 0
        n_lst = 0x7fff9f21b300
        p = 0x7fff9f21b4b8 "\207\277!\237\377\177"
        st = {st_dev = 15, st_ino = 13240, st_nlink = 2, st_mode = 16877, st_uid = 110, st_gid = 116, __pad0 = 0, st_rdev = 0, st_size = 60,
          st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1540797448, tv_nsec = 544589798}, st_mtim = {tv_sec = 1540797905,
            tv_nsec = 662909589}, st_ctim = {tv_sec = 1540798045, tv_nsec = 563947001}, __glibc_reserved = {0, 0, 0}}
        __FUNCTION__ = "main"
(gdb)
(gdb)</code></pre><p style="margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,blinkmacsystemfont,"segoe ui",helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol"">Where is problem?</p><p style="margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,blinkmacsystemfont,"segoe ui",helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol"">Thanks </p></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" rel="noreferrer" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>