With Kamailio 5.6.3 I add this code
```diff
-- Routing to foreign domains
function ksr_route_sipout()
+ local y = KSR.enum.enum_query()
+ KSR.err('ENUM RESULT ' .. tostring(y) .. ' :RURI ' ..
KSR.kx.get_ruri() .. '\n')
if KSR.is_myself_ruri() then return 1; end
KSR.hdr.append("P-Hint: outbound\r\n");
```
and dial +437200101011 . The code above produces the output “ENUM RESULT 1 :RURI
sip:enum-test@sip.nemox.net”.
I have the DNS-related settings:
```
dns_try_naptr=on
use_dns_cache=off
dns_cache_init=off
```
Kamailio logs during the dial-in process:
```sip
INVITE sip:+437200101011@sip.example.org SIP/2.0
Via: SIP/2.0/UDP 192.168.0.199:40867;rport;branch=z9hG4bKU2Fc14H2NX4Kc
Max-Forwards: 70
From: <sip:myself@sip.example.org>;tag=vmjX7H12KrH1B
To: <sip:+437200101011@sip.example.org>
Call-ID: 8956e785-1905-123c-24bb-e4aaeae9dd8b
CSeq: 62865320 INVITE
Contact: <sip:myself@sip.example.org>
User-Agent: calls sofia-sip/1.13.12
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER,
UPDATE
Supported: timer, 100rel, replaces, gruu, outbound
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 240
v=0
o=- 9163509233734166984 5909793187606445082 IN IP4 192.168.0.199
s=-
c=IN IP4 22.222.222.222
t=0 0
m=audio 43264 RTP/AVP 9 8 0 3
a=rtpmap:9 G722/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtcp:33730
6(7) ERROR: <core> [core/kemi.c:96]: sr_kemi_core_err(): ksr_sipdump_event
1--------- sipdump:msg
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP
192.168.0.199:40867;rport=40867;branch=z9hG4bKU2Fc14H2NX4Kc;received=22.222.222.222
From: <sip:myself@sip.example.org>;tag=vmjX7H12KrH1B
To:
<sip:+437200101011@sip.example.org>;tag=44af9dbde0a62ae84f5c1ff272adb901.20dd651d
Call-ID: 8956e785-1905-123c-24bb-e4aaeae9dd8b
CSeq: 62865320 INVITE
Proxy-Authenticate: Digest realm="example.int",
nonce="Y9QB/GPUANBJum6LTOLsDnjaSLKc/8o1A1zk1oUtFXzlFe/OfiMEAg=="
Content-Length: 0
8(9) ERROR: <core> [core/kemi.c:96]: sr_kemi_core_err(): ksr_sipdump_event
1--------- sipdump:msg
ACK sip:+437200101011@sip.example.org SIP/2.0
Via: SIP/2.0/UDP 192.168.0.199:40867;rport;branch=z9hG4bKU2Fc14H2NX4Kc
Max-Forwards: 70
From: <sip:myself@sip.example.org>;tag=vmjX7H12KrH1B
To:
<sip:+437200101011@sip.example.org>;tag=44af9dbde0a62ae84f5c1ff272adb901.20dd651d
Call-ID: 8956e785-1905-123c-24bb-e4aaeae9dd8b
CSeq: 62865320 ACK
Content-Length: 0
5(6) ERROR: <core> [core/kemi.c:96]: sr_kemi_core_err(): ksr_sipdump_event
1--------- sipdump:msg
INVITE sip:+437200101011@sip.example.org SIP/2.0
Via: SIP/2.0/UDP 192.168.0.199:40867;rport;branch=z9hG4bKvB942Z25j6t6Q
Max-Forwards: 70
From: <sip:myself@sip.example.org>;tag=vmjX7H12KrH1B
To: <sip:+437200101011@sip.example.org>
Call-ID: 8956e785-1905-123c-24bb-e4aaeae9dd8b
CSeq: 62865321 INVITE
Contact: <sip:myself@sip.example.org>
User-Agent: calls sofia-sip/1.13.12
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER,
UPDATE
Supported: timer, 100rel, replaces, gruu, outbound
Proxy-Authorization: Digest username="myself", realm="example.int",
nonce="Y9QB/GPUANBJum6LTOLsDnjaSLKc/8o1A1zk1oUtFXzlFe/OfiMEAg==", algorithm=MD5,
uri="sip:+437200101011@sip.example.org",
response="da2f40487bb63329105222dab911d9bd"
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 240
v=0
o=- 9163509233734166984 5909793187606445082 IN IP4 192.168.0.199
s=-
c=IN IP4 22.222.222.222
t=0 0
m=audio 43264 RTP/AVP 9 8 0 3
a=rtpmap:9 G722/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtcp:33730
5(6) ERROR: <core> [core/kemi.c:96]: sr_kemi_core_err(): ENUM RESULT 1 :RURI
sip:enum-test@sip.nemox.net
5(6) ERROR: <core> [core/kemi.c:96]: sr_kemi_core_err(): ksr_sipdump_event
1--------- sipdump:msg
SIP/2.0 100 trying -- your call is important to us
Via: SIP/2.0/UDP
192.168.0.199:40867;rport=40867;branch=z9hG4bKvB942Z25j6t6Q;received=22.222.222.222
From: <sip:myself@sip.example.org>;tag=vmjX7H12KrH1B
To: <sip:+437200101011@sip.example.org>
Call-ID: 8956e785-1905-123c-24bb-e4aaeae9dd8b
CSeq: 62865321 INVITE
Authentication-Info:
nextnonce="Y9QB/GPUANBJum6LTOLsDnjaSLKc/8o1A1zk1oUtFXzlFe/OfiMEAg==", qop=,
rspauth="d9dd065ba472cbc3f8cc4505dbd2ad60", cnonce="", nc=
Content-Length: 0
0(1) ALERT: <core> [main.c:774]: handle_sigs(): child process 6 exited by a signal
11
24(25) CRITICAL: <core> [core/pass_fd.c:277]: receive_fd(): EOF on 13
0(1) ALERT: <core> [main.c:777]: handle_sigs(): core was generated
```
The full backtrace is:
```
#0 0x00000000004867e5 in atomic_cmpxchg_int (var=0x0, old=0, new_v=1) at
core/mem/../atomic/atomic_x86.h:224
ret = 32663
#1 0x0000000000486831 in futex_get (lock=0x0) at core/mem/../futexlock.h:99
v = 0
i = 1024
#2 0x0000000000490ce5 in dns_hash_get (name=0x7ffe2446dbc0, type=33, h=0x7ffe2446da90,
err=0x7ffe2446da7c) at core/dns_cache.c:673
e = 0x0
#3 0x00000000004972a7 in dns_get_entry (name=0x7ffe2446dbc0, type=33) at
core/dns_cache.c:2001
h = 608623712
e = 0x0
cname_val = {
s = 0x0,
len = 5860299
}
err = 32766
rec_cnt = 1
__func__ = "dns_get_entry"
#4 0x0000000000499289 in dns_srv_get_he (name=0x7ffe2446dbc0, port=0x7ffe2446df1c,
flags=0) at core/dns_cache.c:2455
e = 0x2
rr = 0x0
rr_name = {
s = 0xa3e33d203 <error: Cannot access memory at address 0xa3e33d203>,
len = 1043567768
}
he = 0x0
now = 611930531
rr_no = 0 '\000'
#5 0x0000000000597aae in no_naptr_srv_sip_resolvehost (name=0x7ffe2446e100,
port=0x7ffe2446df1c, proto=0x7f973a751788 "\001") at core/resolve.c:1599
srv_proto_list = {{
proto = 1 '\001',
proto_pref = 30
}, {
proto = 2 '\002',
proto_pref = 20
}, {
proto = 4 '\004',
proto_pref = 20
}, {
proto = 3 '\003',
proto_pref = 10
}, {
proto = 0 '\000',
proto_pref = 0
}, {
proto = 13 '\r',
proto_pref = 1
}, {
proto = 80 'P',
proto_pref = 319
}}
he = 0x0
ip = 0x0
srv_name = {
s = 0x929320 <tmp_srv> "_sip._udp.sip.nemox.net",
len = 23
}
tmp_srv = "_sip._udp.sip.nemox.net", '\000' <repeats 232
times>
i = 0
list_len = 4
__func__ = "no_naptr_srv_sip_resolvehost"
#6 0x0000000000598333 in naptr_sip_resolvehost (name=0x7ffe2446e100, port=0x7ffe2446df1c,
proto=0x7f973a751788 "\001") at core/resolve.c:1675
he = 0x0
ip = 0x0
tmp = "sip.nemox.net", '\000' <repeats 242 times>
l = 0x0
naptr_head = 0x0
n_proto = 0 '\000'
srv_name = {
s = 0x7f97390fee12 <sr_kemi_lua_exec_func_514>
"UH\211\345H\203\354\020H\211}\370H\213E\370\276\002\002",
len = 1051642410
}
tried_bmp = 0
origproto = 0 '\000'
__func__ = "naptr_sip_resolvehost"
#7 0x00000000005983c6 in _sip_resolvehost (name=0x7ffe2446e100, port=0x7ffe2446df1c,
proto=0x7f973a751788 "\001") at core/resolve.c:1707
res = 0x0
#8 0x000000000049943c in dns_srv_sip_resolvehost (name=0x7ffe2446e100,
port=0x7ffe2446df1c, proto=0x7f973a751788 "\001") at core/dns_cache.c:2516
he = 0x7f9739119c91 <luaD_callnoyield+449>
ip = 0x7f97390fca97 <sr_kemi_lua_exec_func_221>
tmp = '\000' <repeats 255 times>
srv_name = {
s = 0x1a67740 "\020h\247\001",
len = 0
}
srv_proto = 0 '\000'
__func__ = "dns_srv_sip_resolvehost"
#9 0x000000000049b3de in dns_sip_resolvehost (name=0x7ffe2446e100, port=0x7ffe2446df1c,
proto=0x7f973a751788 "\001") at core/dns_cache.c:2738
No locals.
#10 0x000000000059846b in sip_hostport2su (su=0x7f973a751700, name=0x7ffe2446e100,
port=5060, proto=0x7f973a751788 "\001") at core/resolve.c:1727
he = 0x7f973e33d2be
__func__ = "sip_hostport2su"
#11 0x00007f9739efdff0 in uri2dst2 (dns_h=0x7f973a751888, dst=0x7f973a7516f8,
force_send_socket=0x0, sflags=..., uri=0x7f973e3390d0, proto=0) at
/git/voip/kamailio/src/modules/tm/ut.h:308
parsed_uri = {
user = {
s = 0x7f973e33d2b4 "enum-test(a)sip.nemox.net".net",
len = 9
},
passwd = {
s = 0x0,
len = 0
},
host = {
s = 0x7f973e33d2be "sip.nemox.net",
len = 13
},
port = {
s = 0x0,
len = 0
},
params = {
s = 0x0,
len = 0
},
sip_params = {
s = 0x0,
len = 0
},
headers = {
s = 0x0,
len = 0
},
port_no = 0,
proto = 0,
type = SIP_URI_T,
flags = 0,
transport = {
s = 0x0,
len = 0
},
ttl = {
s = 0x0,
len = 0
},
user_param = {
s = 0x0,
len = 0
},
maddr = {
s = 0x0,
len = 0
},
method = {
s = 0x0,
len = 0
},
lr = {
s = 0x0,
len = 0
},
r2 = {
s = 0x0,
len = 0
},
gr = {
s = 0x0,
len = 0
},
transport_val = {
s = 0x0,
len = 0
},
ttl_val = {
s = 0x0,
len = 0
},
user_param_val = {
s = 0x0,
len = 0
},
maddr_val = {
s = 0x0,
len = 0
},
method_val = {
s = 0x0,
len = 0
},
lr_val = {
s = 0x0,
len = 0
},
r2_val = {
s = 0x0,
len = 0
},
gr_val = {
s = 0x0,
len = 0
}
}
uri_proto = PROTO_NONE
host = 0x7ffe2446e100
ip_found = 0
to = {
s = {
sa_family = 57744,
sa_data = "F$\376\177\000\000\211\216\0169\227\177\000"
},
sin = {
sin_family = 57744,
sin_port = 9286,
sin_addr = {
s_addr = 32766
},
sin_zero = "\211\216\0169\227\177\000"
},
sin6 = {
sin6_family = 57744,
sin6_port = 9286,
sin6_flowinfo = 32766,
sin6_addr = {
__in6_u = {
__u6_addr8 =
"\211\216\0169\227\177\000\000\001\000\000\000\000\000\000",
__u6_addr16 = {36489, 14606, 32663, 0, 1, 0, 0, 0},
__u6_addr32 = {957255305, 32663, 1, 0}
}
},
sin6_scope_id = 1042640912
},
sas = {
ss_family = 57744,
__ss_padding =
"F$\376\177\000\000\211\216\0169\227\177\000\000\001\000\000\000\000\000\000\000\020p%>\227\177\000\000\260\340F$\376\177\000\000\304\311K",
'\000' <repeats 37 times>,
"\020;\v:\227\177\000\000\360\2153>\227\177\000\000Px\246\001\000\000\000\000\230\2243>\227\177\000\000\002\000\000\000\000\000\000",
__ss_align = 27947488
}
}
err = 32766
__func__ = "uri2dst2"
#12 0x00007f9739f00878 in prepare_new_uac (t=0x7f973a751408, i_req=0x7f973e338df0,
branch=0, uri=0x7ffe2446e490, path=0x7ffe2446e470, next_hop=0x7f973e3390d0, fsocket=0x0,
snd_flags=..., fproto=0, flags=2, instance=0x7ffe2446e460, ruid=0x7ffe2446e450,
location_ua=0x7ffe2446e440) at t_fwd.c:447
shbuf = 0x0
add_rm_backup = 0x7f973e33b288
body_lumps_backup = 0x0
parsed_uri_bak = {
user = {
s = 0x7f973e33a634 "enum-test(a)sip.nemox.net".net",
len = 9
},
passwd = {
s = 0x0,
len = 0
},
host = {
s = 0x7f973e33a63e "sip.nemox.net",
len = 13
},
port = {
s = 0x0,
len = 0
},
params = {
s = 0x0,
len = 0
},
sip_params = {
s = 0x0,
len = 0
},
headers = {
s = 0x0,
len = 0
},
port_no = 0,
proto = 0,
type = SIP_URI_T,
flags = 0,
transport = {
s = 0x0,
len = 0
},
ttl = {
s = 0x0,
len = 0
},
user_param = {
s = 0x0,
len = 0
},
maddr = {
s = 0x0,
len = 0
},
method = {
s = 0x0,
len = 0
},
lr = {
s = 0x0,
len = 0
},
r2 = {
s = 0x0,
len = 0
},
gr = {
s = 0x0,
len = 0
},
transport_val = {
s = 0x0,
len = 0
},
ttl_val = {
s = 0x0,
len = 0
},
user_param_val = {
s = 0x0,
len = 0
},
maddr_val = {
s = 0x0,
len = 0
},
method_val = {
s = 0x0,
len = 0
},
lr_val = {
s = 0x0,
len = 0
},
r2_val = {
s = 0x0,
len = 0
},
gr_val = {
s = 0x0,
len = 0
}
}
ret = -1
len = 32663
parsed_uri_ok_bak = 1
free_new_uri = 1
msg_uri_bak = {
s = 0x7f973e33a630 "sip:enum-test@sip.nemox.net",
len = 27
}
dst_uri_bak = {
s = 0x0,
len = 0
}
dst_uri_backed_up = 1
path_bak = {
s = 0x0,
len = 0
}
free_path = 1
instance_bak = {
s = 0x0,
len = 0
}
free_instance = 1
ruid_bak = {
s = 0x0,
len = 0
}
free_ruid = 1
ua_bak = {
s = 0x0,
len = 0
}
free_ua = 1
backup_route_type = 1
test_dst = 23
fwd_snd_flags_bak = {
f = 0,
blst_imask = 0
}
rpl_snd_flags_bak = {
f = 1,
blst_imask = 0
}
force_send_socket_bak = 0x0
dst = 0x7f973a7516f8
ctx = {
rec_lev = 0,
run_flags = 0,
last_retcode = 0,
jmp_env = {{
__jmpbuf = {140729507046528, 107383054981, 140729507046336, 7983668,
140729507046712, 140729507046688, 0, 0},
__mask_was_saved = 0,
__saved_mask = {
__val = {0, 0, 0, 0, 1016, 2510101137099545603, 12909040900923746448,
140729507046448, 7983053, 3689621524717335394, 0, 140729507046488, 140729507046688, 8,
8872581, 4179003179399}
}
}}
}
bctx = 0x0
keng = 0x913440 <_sr_kemi_eng_list>
__func__ = "prepare_new_uac"
#13 0x00007f9739f058f0 in add_uac (t=0x7f973a751408, request=0x7f973e338df0,
uri=0x7f973e3390d0, next_hop=0x7f973e3390d0, path=0x7f973e339498, proxy=0x0, fsocket=0x0,
snd_flags=..., proto=0, flags=2, instance=0x7f973e3394a8, ruid=0x7f973e3394c0,
location_ua=0x7f973e3394d0) at t_fwd.c:814
ret = 0
branch = 0
__func__ = "add_uac"
#14 0x00007f9739f0f73f in t_forward_nonack (t=0x7f973a751408, p_msg=0x7f973e338df0,
proxy=0x0, proto=0) at t_fwd.c:1694
branch_ret = 0
lowest_ret = -1
added_branches = 0
first_branch = 0
i = 32766
t_invite = 0x7f973e33c570
success_branch = 608627136
try_new = 1
lock_replies = 939792
backup_bflags = 0
obranch = {
uri = {
s = 0x1f600000000 <error: Cannot access memory at address
0x1f600000000>,
len = 27594632
},
dst_uri = {
s = 0x1 <error: Cannot access memory at address 0x1>,
len = 27947488
},
q = 27687040,
path = {
s = 0x7f97390fca97 <sr_kemi_lua_exec_func_221>
"UH\211\345H\203\354\020H\211}\370H\213E\370\276", <incomplete sequence
\335>,
len = 608627072
},
flags = 972537629,
force_socket = 0x1,
ruid = {
s = 0x7ffe2446e950 "",
len = 608627120
},
instance = {
s = 0x6400000001 <error: Cannot access memory at address
0x6400000001>,
len = 1043566064
},
location_ua = {
s = 0x7f973a751408 "p\344\032:\227\177",
len = 8388608
},
otcpid = 7449488
}
__func__ = "t_forward_nonack"
#15 0x00007f9739ef6bc5 in t_relay_to (p_msg=0x7f973e338df0, proxy=0x0, proto=0,
replicate=0) at t_funcs.c:332
ret = 0
new_tran = 1
t = 0x7f973a751408
dst = {
send_sock = 0x7ffe2446eb80,
to = {
s = {
sa_family = 50040,
sa_data = "3>\227\177\000\000\000\000\000\000\000\000\000"
},
sin = {
sin_family = 50040,
sin_port = 15923,
sin_addr = {
s_addr = 32663
},
sin_zero = "\000\000\000\000\000\000\000"
},
sin6 = {
sin6_family = 50040,
sin6_port = 15923,
sin6_flowinfo = 32663,
sin6_addr = {
__in6_u = {
__u6_addr8 =
"\000\000\000\000\000\000\000\000\020p%>\227\177\000",
__u6_addr16 = {0, 0, 0, 0, 28688, 15909, 32663, 0},
__u6_addr32 = {0, 0, 1042640912, 32663}
}
},
sin6_scope_id = 27687040
},
sas = {
ss_family = 50040,
__ss_padding =
"3>\227\177\000\000\000\000\000\000\000\000\000\000\020p%>\227\177\000\000\200x\246\001\000\000\000\000\320\377\377\377\377\377\377\377\000\000\000\000\000\000\000\000\300c\252\001\000\000\000\000\200x\246\001\000\000\000\000\360\273\0179\227\177\000\000\200\353F$\376\177\000\000\257\363G\000\000\000\000\000\000\000\000\000S\003\000\000\360\2153>\227\177",
'\000' <repeats 14 times>, "\022\000\000",
__ss_align = 140287560368784
}
},
id = 1043579664,
send_flags = {
f = 32663,
blst_imask = 0
},
proto = 0 '\000',
proto_pad0 = 0 '\000',
proto_pad1 = 0
}
port = 0
host = {
s = 0x0,
len = 1043579608
}
comp = 0
__func__ = "t_relay_to"
#16 0x00007f9739f48a33 in _w_t_relay_to (p_msg=0x7f973e338df0, proxy=0x0, force_proto=0)
at tm.c:1764
t = 0x7ffe2446ec30
res = 3
__func__ = "_w_t_relay_to"
#17 0x00007f9739f51dec in ki_t_relay (msg=0x7f973e338df0) at tm.c:2917
No locals.
#18 0x00007f97390eb94c in sr_kemi_lua_exec_func_ex (L=0x1a50f88, ket=0x7f9739ff5be0
<tm_kemi_exports>, pdelta=0) at app_lua_api.c:1022
i = 1
argc = 0
ret = 1
fname = 0x7f9739ff5bf0 <tm_kemi_exports+16>
mname = 0x7f9739ff5be0 <tm_kemi_exports>
vps = {{
n = 27739704,
s = {
s = 0x1a74638 "ksr_failure_manage",
len = 18
}
}, {
n = 0,
s = {
s = 0x0,
len = 0
}
}, {
n = 0,
s = {
s = 0x0,
len = 0
}
}, {
n = 0,
s = {
s = 0x0,
len = 0
}
}, {
n = 0,
s = {
s = 0x0,
len = 0
}
}, {
n = 0,
s = {
s = 0x0,
len = 0
}
}}
env_L = 0x7f9739175a00 <_sr_L_env>
xret = 0x7f973a047580 <_sr_kemi_kx_xval>
__func__ = "sr_kemi_lua_exec_func_ex"
#19 0x00007f97390f337e in sr_kemi_lua_exec_func (L=0x1a50f88, eidx=221) at
app_lua_api.c:1706
ket = 0x7f9739ff5be0 <tm_kemi_exports>
ret = 1
tvb = {
tv_sec = 0,
tv_usec = 0
}
tve = {
tv_sec = 0,
tv_usec = 0
}
tz = {
tz_minuteswest = 1052892288,
tz_dsttime = 32663
}
tdiff = 27594832
dinfo = {
event = 1043568344,
name = 0x7f973e339980 <incomplete sequence \350>,
namewhat = 0x7ffe2446f03e "",
what = 0x3000000018 <error: Cannot access memory at address
0x3000000018>,
source = 0x7ffe2446efa0 "\200x\246\001",
srclen = 140729507049184,
currentline = 8989040,
linedefined = 0,
lastlinedefined = 73,
nups = 0 '\000',
nparams = 0 '\000',
isvararg = 0 '\000',
istailcall = 0 '\000',
ftransfer = 4176,
ntransfer = 421,
short_src =
"\000\000\000\000\004\000\000\000\000\000\000\000I\000\000\000\000\000\000\000\204\275\256>\227\177\000\000\300\a\000\000\000\000\000\000@\000\000\000\000\000\000\000\005\000\000\000\000\000\000\000P\020\245\001\000\000\000",
i_ci = 0x1a50f88
}
__func__ = "sr_kemi_lua_exec_func"
#20 0x00007f97390fcab4 in sr_kemi_lua_exec_func_221 (L=0x1a50f88) at
app_lua_kemi_export.c:1813
No locals.
#21 0x00007f97391193c1 in luaD_precall () from
/var/lib/containers/storage/overlay/1ba9d537e5be2b3a47b220bd68cdb6646cd0a1f4ebb83a234c8bcc2324ca5f3f/merged/lib64/kamailio/modules/app_lua.so
No symbol table info available.
#22 0x00007f973912d4cb in luaV_execute () from
/var/lib/containers/storage/overlay/1ba9d537e5be2b3a47b220bd68cdb6646cd0a1f4ebb83a234c8bcc2324ca5f3f/merged/lib64/kamailio/modules/app_lua.so
No symbol table info available.
#23 0x00007f9739119c91 in luaD_callnoyield () from
/var/lib/containers/storage/overlay/1ba9d537e5be2b3a47b220bd68cdb6646cd0a1f4ebb83a234c8bcc2324ca5f3f/merged/lib64/kamailio/modules/app_lua.so
No symbol table info available.
#24 0x00007f973911802a in luaD_rawrunprotected () from
/var/lib/containers/storage/overlay/1ba9d537e5be2b3a47b220bd68cdb6646cd0a1f4ebb83a234c8bcc2324ca5f3f/merged/lib64/kamailio/modules/app_lua.so
No symbol table info available.
#25 0x00007f973911a1e0 in luaD_pcall () from
/var/lib/containers/storage/overlay/1ba9d537e5be2b3a47b220bd68cdb6646cd0a1f4ebb83a234c8bcc2324ca5f3f/merged/lib64/kamailio/modules/app_lua.so
No symbol table info available.
#26 0x00007f97391143df in lua_pcallk () from
/var/lib/containers/storage/overlay/1ba9d537e5be2b3a47b220bd68cdb6646cd0a1f4ebb83a234c8bcc2324ca5f3f/merged/lib64/kamailio/modules/app_lua.so
No symbol table info available.
#27 0x00007f97390e7f0d in app_lua_run_ex (msg=0x7f973e338df0, func=0x7f973914d598
"ksr_request_route", p1=0x0, p2=0x0, p3=0x0, emode=1) at app_lua_api.c:773
n = 0
ret = 0
txt = {
s = 0x7ffe2446f520 "\020\370F$\376\177",
len = 5783320
}
bmsg = 0x0
ltop = 36
__func__ = "app_lua_run_ex"
#28 0x00007f9739106f07 in sr_kemi_config_engine_lua (msg=0x7f973e338df0, rtype=1,
rname=0x0, rparam=0x0) at app_lua_mod.c:119
ret = -1
__func__ = "sr_kemi_config_engine_lua"
#29 0x00000000005048bf in sr_kemi_route (keng=0x913440 <_sr_kemi_eng_list>,
msg=0x7f973e338df0, rtype=1, ename=0x0, edata=0x0) at core/kemi.c:3784
sfbk = 0
ret = 1054122048
#30 0x000000000058890a in receive_msg (buf=0x9b22a0 <buf> "INVITE
sip:+437200101011@sip.example.org SIP/2.0\r\nVia: SIP/2.0/UDP
192.168.0.199:40867;TH=div;rport;branch=z9hG4bKvB942Z25j6t6Q\r\nMax-Forwards: 69\r\nFrom:
<sip:myself@sip.example.org>;tag=vmjX7H12KrH1B\r\nTo:
<sip:+437200101011@sip.example.org>\r\nCall-ID:
8956e785-1905-123c-24bb-e4aaeae9dd8b\r\nCSeq: 62865321 INVITE\r\nContact:
<sip:myself@sip.example.org>\r\nUser-Agent: calls sofia-sip/1.13.12\r\nAllow:
INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER,
UPDATE\r\nSupported: timer, 100rel, replaces, gruu, outbound\r\nProxy-Authorization:
Digest username=\"myself\", realm=\"example.int\",
nonce=\"Y9QB/GPUANBJum6LTOLsDnjaSLKc/8o1A1zk1oUtFXzlFe/OfiMEAg==\",
algorithm=MD5, uri=\"sip:+437200101011@sip.example.org\",
response=\"da2f40487bb63329105222dab911d9bd\"\r\nContent-Type:
application/sdp\r\nContent-Disposition: session\r\nContent-Length: 240\r\nTH:
dih\r\n\r\nv=0\r\no=- 9163509233734166984 5909793187606445082 IN IP4
192.168.0.199\r\ns=-\r\nc=IN IP4 22.222.222.222\r\nt=0 0\r\nm=audio 43264 RTP/AVP 9 8 0
3\r\na=rtpmap:9 G722/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:3
GSM/8000\r\na=rtcp:33730\r\n", len=1093, rcv_info=0x7ffe2446fae0) at
core/receive.c:502
msg = 0x7f973e338df0
ctx = {
rec_lev = 256,
run_flags = 16777216,
last_retcode = 0,
jmp_env = {{
__jmpbuf = {1099511627776, 512, 0, 0, 0, 0, 0, 0},
__mask_was_saved = 0,
__saved_mask = {
__val = {0, 0, 0, 0, 0, 0, 0, 4294967296, 1225543208507932942, 33554432,
3298534883584, 72057594037928192, 72057594037927936, 1099511627776, 512, 0}
}
}}
}
bctx = 0x0
ret = 0
tvb = {
tv_sec = 0,
tv_usec = 0
}
tve = {
tv_sec = 0,
tv_usec = 0
}
diff = 0
inb = {
s = 0x9b22a0 <buf> "INVITE sip:+437200101011@sip.example.org
SIP/2.0\r\nVia: SIP/2.0/UDP
192.168.0.199:40867;TH=div;rport;branch=z9hG4bKvB942Z25j6t6Q\r\nMax-Forwards: 69\r\nFrom:
<sip:myself@sip.example.org>;tag=vmjX7H12KrH1B\r\nTo:
<sip:+437200101011@sip.example.org>\r\nCall-ID:
8956e785-1905-123c-24bb-e4aaeae9dd8b\r\nCSeq: 62865321 INVITE\r\nContact:
<sip:myself@sip.example.org>\r\nUser-Agent: calls sofia-sip/1.13.12\r\nAllow:
INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER,
UPDATE\r\nSupported: timer, 100rel, replaces, gruu, outbound\r\nProxy-Authorization:
Digest username=\"myself\", realm=\"example.int\",
nonce=\"Y9QB/GPUANBJum6LTOLsDnjaSLKc/8o1A1zk1oUtFXzlFe/OfiMEAg==\",
algorithm=MD5, uri=\"sip:+437200101011@sip.example.org\",
response=\"da2f40487bb63329105222dab911d9bd\"\r\nContent-Type:
application/sdp\r\nContent-Disposition: session\r\nContent-Length: 240\r\nTH:
dih\r\n\r\nv=0\r\no=- 9163509233734166984 5909793187606445082 IN IP4
192.168.0.199\r\ns=-\r\nc=IN IP4 22.222.222.222\r\nt=0 0\r\nm=audio 43264 RTP/AVP 9 8 0
3\r\na=rtpmap:9 G722/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:3
GSM/8000\r\na=rtcp:33730\r\n",
len = 1093
}
netinfo = {
data = {
s = 0x0,
len = 0
},
bufsize = 0,
rcv = 0x0,
dst = 0x0
}
keng = 0x913440 <_sr_kemi_eng_list>
evp = {
data = 0x7ffe2446f630,
obuf = {
s = 0x0,
len = 0
},
rcv = 0x7ffe2446fae0,
dst = 0x0,
req = 0x0,
rpl = 0x0,
rplcode = 0,
mode = 0
}
cidlockidx = 0
cidlockset = 0
errsipmsg = 0
exectime = 0
__func__ = "receive_msg"
#31 0x00000000006cad81 in udp_rcv_loop () at core/udp_server.c:544
len = 1077
buf = "INVITE sip:+437200101011@sip.example.org SIP/2.0\r\nVia: SIP/2.0/UDP
192.168.0.199:40867;TH=div;rport;branch=z9hG4bKvB942Z25j6t6Q\r\nMax-Forwards: 69\r\nFrom:
<sip:myself@sip.example.org>;tag=vmjX7H12KrH1B\r\nTo:
<sip:+437200101011@sip.example.org>\r\nCall-ID:
8956e785-1905-123c-24bb-e4aaeae9dd8b\r\nCSeq: 62865321 INVITE\r\nContact:
<sip:myself@sip.example.org>\r\nUser-Agent: calls sofia-sip/1.13.12\r\nAllow:
INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER,
UPDATE\r\nSupported: timer, 100rel, replaces, gruu, outbound\r\nProxy-Authorization:
Digest username=\"myself\", realm=\"example.int\",
nonce=\"Y9QB/GPUANBJum6LTOLsDnjaSLKc/8o1A1zk1oUtFXzlFe/OfiMEAg==\",
algorithm=MD5, uri=\"sip:+437200101011@sip.example.org\",
response=\"da2f40487bb63329105222dab911d9bd\"\r\nContent-Type:
application/sdp\r\nContent-Disposition: session\r\nContent-Length: 240\r\nTH:
dih\r\n\r\nv=0\r\no=- 9163509233734166984 5909793187606445082 IN IP4
192.168.0.199\r\ns=-\r\nc=IN IP4 22.222.222.222\r\nt=0 0\r\nm=audio 43264 RTP/AVP 9 8 0
3\r\na=rtpmap:9 G722/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:3
GSM/8000\r\na=rtcp:33730\r\n", '\000' <repeats 64442 times>
tmp = 0x13a3d9090 <error: Cannot access memory at address 0x13a3d9090>
fromaddr = 0x7f973e338ba8
fromaddrlen = 16
rcvi = {
src_ip = {
af = 2,
len = 4,
u = {
addrl = {2576512599, 0},
addr32 = {2576512599, 0, 0, 0},
addr16 = {30295, 39314, 0, 0, 0, 0, 0, 0},
addr = "Wv\222\231", '\000' <repeats 11 times>
}
},
dst_ip = {
af = 2,
len = 4,
u = {
addrl = {1317948560, 0},
addr32 = {1317948560, 0, 0, 0},
addr16 = {19600, 20110, 0, 0, 0, 0, 0, 0},
addr = "\220L\216N", '\000' <repeats 11 times>
}
},
src_port = 40867,
dst_port = 5060,
proto_reserved1 = 0,
proto_reserved2 = 0,
src_su = {
s = {
sa_family = 2,
sa_data = "\237\243Wv\222\231\000\000\000\000\000\000\000"
},
sin = {
sin_family = 2,
sin_port = 41887,
sin_addr = {
s_addr = 2576512599
},
sin_zero = "\000\000\000\000\000\000\000"
},
sin6 = {
sin6_family = 2,
sin6_port = 41887,
sin6_flowinfo = 2576512599,
sin6_addr = {
__in6_u = {
__u6_addr8 = '\000' <repeats 15 times>,
__u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0},
__u6_addr32 = {0, 0, 0, 0}
}
},
sin6_scope_id = 0
},
sas = {
ss_family = 2,
__ss_padding = "\237\243Wv\222\231", '\000' <repeats
111 times>,
__ss_align = 0
}
},
bind_address = 0x7f973e2e7768,
rflags = 0,
proto = 1 '\001',
proto_pad0 = 0 '\000',
proto_pad1 = 0
}
evp = {
data = 0x0,
obuf = {
s = 0x0,
len = 0
},
rcv = 0x0,
dst = 0x0,
req = 0x0,
rpl = 0x0,
rplcode = 0,
mode = 0
}
printbuf =
"\000\000\000\000\000\000\000\000\270\003G$\376\177\000\000\370\235\216\000\000\000\000\000@\240\324>\227\177\000\000\340\370F$\376\177\000\000D\204\0209\227\177\000\000\370\235\216\000\000\000\000\000@\240\324>\005\000\000\000\260\371F$\376\177\000\000\263\372b",
'\000' <repeats 57 times>, "\005\000\000\000P\2210>\227\177",
'\000' <repeats 90 times>,
"\274\202=:\227\177\000\000\000\000\000\000\004\000\000\000\260-\205\000\000\000\000\000\370\235\216\000\000\000\000\000@\240\324>\005\000\000\000\200\372F$\376\177\000\000\263\372b",
'\000' <repeats 13 times>,
"0^\235\000\000\000\000\000\000^\235\000\000\000\000\000\230g\235\000\000\000\000\000K\306[\302!\307S\354\230\"7(ɘR\354\263ƚ\316\005\000\000\000\350\2260>\227\177\000\000
^\235\000\000\000\000\000\230g\235\000\000\000\000\000\031\216\n\274\001\000\000\000@h\235\000\000\000\000\000P\372F$\376\177\000\000\240h\235\000\000\000\000\000\240g\235\000\000\000\000\000\000^\235\000\000\000\000\000p\372F$\376\177\000\000\235\275y\000\000\000\000\000p\372F$\376\177\000\000\274\202=:\227\177\000\000\000\000\000\000\000\000\000\000\270\003G$\376\177\000\000\370\235\216\000\000\000\000\000@\240\324>\227\177\000\0000\373F$\376\177\000\000\250\002c\000\000\000\000\000\320\372F$\376\177\000\000\213\305y\000\000\000\000"
i = -1
j = 41600
l = 5
__func__ = "udp_rcv_loop"
#32 0x000000000042d3af in main_loop () at main.c:1722
i = 4
pid = 0
si = 0x7f973e2e7768
si_desc = "udp receiver child=4
sock=111.11.111.11:5060\000\000d\000p\375F$\376\177\000\000\000\000\000\000\000\000\000\000\200\375F$\376\177\000\000s\300\3229\227\177\000\000\020\376F$\376\177\000\000\v\006\3239\227\177\000\000`\375F$\376\177\000\0001\rp\000\000\000\000\000\320/\203\000\000\000\000\000\001\000\000\000k\000\000"
nrprocs = 8
woneinit = 1
__func__ = "main_loop"
#33 0x00000000004390be in main (argc=3, argv=0x7ffe24470398) at main.c:3078
cfg_stream = 0x1931380
c = -1
r = 0
tmp = 0x0
tmp_len = 0
port = 0
proto = 0
ahost = 0x0
aport = 0
options = 0x8081f8
":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 = 3092184453
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 2
n_lst = 0x0
p = 0x0
st = {
st_dev = 65025,
st_ino = 3424267,
st_nlink = 3,
st_mode = 16895,
st_uid = 65534,
st_gid = 65534,
__pad0 = 0,
st_rdev = 0,
st_size = 4096,
st_blksize = 4096,
st_blocks = 8,
st_atim = {
tv_sec = 1674835346,
tv_nsec = 294486590
},
st_mtim = {
tv_sec = 1674837962,
tv_nsec = 574996365
},
st_ctim = {
tv_sec = 1674837962,
tv_nsec = 574996365
},
__glibc_reserved = {0, 0, 0}
}
tbuf = "D\377F$\376\177", '\000' <repeats 18 times>,
"hq\247>\227\177\000\000\200\374\245>\227\177\000\000\020\000G$\376\177\000\000\b\000G$\376\177\000\000W\301\000\000\000\000\000\000``\321>\227\177\000\000\005",
'\000' <repeats 23 times>,
"\210\266\324>\227\177\000\000\000p\321>\227\177\000\000\342z\321>\227\177\000\000f\024\322>\227\177\000\000\260إ>",
'\000' <repeats 12 times>,
"\260Z\321>\227\177\000\0008^\321>\227\177\000\000\344U0\000\000\000\000\000hq\247>\227\177\000\000\220\000G$\376\177\000\000\b\000G$\376\177\000\000\340h\321>\227\177\000\000/\v\322>\227\177\000\000\004\000\000\000\000\000\000\000\340h\321>\227\177\000\000\001",
'\000' <repeats 15 times>,
"\001\000\000\000\000\000\000\000\260Z\321>\227\177\000\000\260Z\321>\227\177\000\000\001\000\000\000\003\000\000\000\020\000G$\376\177\000\0008^\321>\227\177\000\000\000\000\000\000\000\000\000\000\001",
'\000' <repeats 16 times>,
"\037G$\376\177\000\000\001\261\324>\227\177\000\000\377\377\377\377\000\000\000\000\330w\321>\227\177\000\000\360\252\324>\227\177\000\0006\027g\n3@\022\000\000\263\324>\227\177\000\000\306\363v\n3@\022\000\005",
'\000' <repeats 15 times>,
"\260Z\321>\227\177\000\000\017\000\000\000\000\000\000\000\300\321\301>\227\177\000\000\270\003G$\376\177\000\000\370\235\216\000\000\000\000\000@\240\324>\227\177\000\000^n\322>\227\177\000\000\001",
'\000' <repeats 15 times>,
"\330w\321>\227\177\000\000\340\326\322>\227\177\000\000\000\000\000\000\000\000\000\000\020\003G$\376\177\000\000\003",
'\000' <repeats 14 times>
option_index = 0
long_options = {{
name = 0x80a91f "help",
has_arg = 0,
flag = 0x0,
val = 104
}, {
name = 0x8054cc "version",
has_arg = 0,
flag = 0x0,
val = 118
}, {
name = 0x80a924 "alias",
has_arg = 1,
flag = 0x0,
val = 1024
}, {
name = 0x80a92a "subst",
has_arg = 1,
flag = 0x0,
val = 1025
}, {
name = 0x80a930 "substdef",
has_arg = 1,
flag = 0x0,
val = 1026
}, {
name = 0x80a939 "substdefs",
has_arg = 1,
flag = 0x0,
val = 1027
}, {
name = 0x80a943 "server-id",
has_arg = 1,
flag = 0x0,
val = 1028
}, {
name = 0x80a94d "loadmodule",
has_arg = 1,
flag = 0x0,
val = 1029
}, {
name = 0x80a958 "modparam",
has_arg = 1,
flag = 0x0,
val = 1030
}, {
name = 0x80a961 "log-engine",
has_arg = 1,
flag = 0x0,
val = 1031
}, {
name = 0x80a96c "debug",
has_arg = 1,
flag = 0x0,
val = 1032
}, {
name = 0x80a972 "cfg-print",
has_arg = 0,
flag = 0x0,
val = 1033
}, {
name = 0x80a97c "atexit",
has_arg = 1,
flag = 0x0,
val = 1034
}, {
name = 0x0,
has_arg = 0,
flag = 0x0,
val = 0
}}
__func__ = "main"
quit
```
111.11.111.11 is the IP address of the server. 22.222.222.222 is my public IP address.
192.168.0.199 is my address behind NAT.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3350
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3350(a)github.com>