Hello,
can you give the listen and alias parameters you have in
kamailio.cfg?
Are you using domain module and have the ip in the domain table?
Cheers,
Daniel
On 22/09/15 13:33, Yasin CANER wrote:
Hello all;
it is 3rd. mail to send about it. i installed kamailio V 4.3.2 and
Aster?sk 13.5 version the same machine. Kamailio listens 5061
port and asterisk listens 5080 port.
When the calls
happens , aster?sk sends perfectly
200 Ok message to Kamailio and then kamailio sends to
UAC. Here is the problem, UAC sends to ACK message to kamailio , and
then kamailio flooding itself with ACK messages. after checking
some debug logs , i found the problem. loose_route function
selecting wrong next hops. i cannot find the solution.
Thanks for helps
UAC ->--
INVITE:5061--->KAMAILIO->-INVITE:5080---->ASTER?SK
UAC ->-- 200
OK:5060--->KAMAILIO-<-200 OK:5061---<-ASTER?SK
UAC ->-- ACK :5061--->
KAMAILIO->- ACK :5061---->-KAMAILIO
KAMAILIO->- ACK
:5061---->-KAMAILIO
KAMAILIO->- ACK :5061---->-KAMAILIO
------------
6(10643) DEBUG: <core> [parser/msg_parser.c:606]:
parse_msg(): SIP Request:
6(10643) DEBUG: <core> [parser/msg_parser.c:608]:
parse_msg(): method: <ACK>
6(10643) DEBUG: <core> [parser/msg_parser.c:610]:
parse_msg(): uri: <sip:050661102@ip:5080>
6(10643) DEBUG: <core> [parser/msg_parser.c:612]:
parse_msg(): version: <SIP/2.0>
6(10643) DEBUG: <core> [parser/parse_via.c:1254]:
parse_via_param(): Found param type 235, <rport> =
<n/a>; state=6
6(10643) DEBUG: <core> [parser/parse_via.c:1254]:
parse_via_param(): Found param type 232, <branch> =
<z9hG4bKPjf470c12ae4af4c6484564045f41323f2>; state=16
6(10643) DEBUG: <core> [parser/parse_via.c:2642]:
parse_via(): end of header reached, state=5
6(10643) DEBUG: <core> [parser/msg_parser.c:496]:
parse_headers(): parse_headers: Via found, flags=2
6(10643) DEBUG: <core> [parser/msg_parser.c:498]:
parse_headers(): parse_headers: this is the first via
6(10643) DEBUG: <core> [receive.c:134]: receive_msg():
After parse_msg...
6(10643) DEBUG: <core> [receive.c:177]: receive_msg():
preparing to run routing scripts...
6(10643) DEBUG: <core> [parser/parse_addr_spec.c:172]:
parse_to_param(): DEBUG: add_param: tag=as6832055a
6(10643) DEBUG: <core> [parser/parse_addr_spec.c:894]:
parse_addr_spec(): end of header reached, state=29
6(10643) DEBUG: <core> [parser/msg_parser.c:173]:
get_hdr_field(): DEBUG: get_hdr_field: <To> [44];
uri=[sip:50661102@ip]
6(10643) DEBUG: <core> [parser/msg_parser.c:175]:
get_hdr_field(): DEBUG: to body [sip:50661102@ip]
6(10643) DEBUG: maxfwd [mf_funcs.c:85]: is_maxfwd_present():
value = 70
6(10643) DEBUG: <core> [parser/msg_parser.c:153]:
get_hdr_field(): get_hdr_field: cseq <CSeq>:
<16369> <ACK>
6(10643) DEBUG: <core> [parser/msg_parser.c:187]:
get_hdr_field(): DEBUG: get_hdr_body : content_length=0
6(10643) DEBUG: <core> [parser/msg_parser.c:89]:
get_hdr_field(): found end of header
6(10643) DEBUG: <core> [parser/parse_addr_spec.c:172]:
parse_to_param(): DEBUG: add_param:
tag=4e6c8524c571421ebaa0fa35b35d9d45
6(10643) DEBUG: <core> [parser/parse_addr_spec.c:894]:
parse_addr_spec(): end of header reached, state=29
6(10643) DEBUG: sanity [mod_sanity.c:248]: w_sanity_check():
sanity checks result: 1
6(10643) DEBUG: <core> [msg_translator.c:158]:
check_via_address(): (uac, uac, 0)
6(10643) DEBUG: siputils [checks.c:100]: has_totag(): totag
found
6(10643) ALERT: <script>:
6(10643) DEBUG: rr [loose.c:88]: is_preloaded():
is_preloaded: No
6(10643) DEBUG: <core> [socket_info.c:563]:
grep_sock_info(): checking if host==us: 12==12 && [ip]
== [ip]
6(10643) DEBUG: <core> [socket_info.c:566]:
grep_sock_info(): checking if port 5061 (advertise 0) matches
port 5080
6(10643) DEBUG: <core> [forward.c:412]: check_self():
host != me
6(10643) DEBUG: rr [loose.c:672]: after_strict(): Next hop:
'sip:ip:5061;lr;ftag=4e6c8524c571421ebaa0fa35b35d9d45' is
loose router
6(10643) DEBUG: rr [loose.c:722]: after_strict(): The last
route URI:
'sip:ip:5061;lr;ftag=4e6c8524c571421ebaa0fa35b35d9d45'
6(10643) ALERT: <script>: ACK RU:
sip:ip:5061;lr;ftag=4e6c8524c571421ebaa0fa35b35d9d45
6(10643) DEBUG: siputils [checks.c:100]: has_totag(): totag
found
6(10643) DEBUG: tm [t_lookup.c:1312]: t_newtran(): DEBUG:
t_newtran: msg id=1 , global msg id=0 , T on
entrance=0xffffffffffffffff
6(10643) DEBUG: tm [t_lookup.c:466]: t_lookup_request():
t_lookup_request: start searching: hash=64842, isACK=1
6(10643) DEBUG: tm [t_lookup.c:424]: matching_3261(): DEBUG:
RFC3261 transaction matching failed
6(10643) DEBUG: tm [t_lookup.c:648]: t_lookup_request():
DEBUG: t_lookup_request: no transaction found
6(10643) DEBUG: tm [t_funcs.c:279]: t_relay_to(): SER:
forwarding ACK statelessly
6(10643) DEBUG: <core> [md5utils.c:67]:
MD5StringArray(): MD5 calculated:
a0d4b97551e277683a30e969a0e407f7
6(10643) DEBUG: <core> [forward.c:556]:
forward_request(): Sending:
ACK sip:ip:5061;lr;ftag=4e6c8524c571421ebaa0fa35b35d9d45
SIP/2.0
Via: SIP/2.0/UDP
ip:5061;branch=z9hG4bKa4df.a0d4b97551e277683a30e969a0e407f7.0
Via: SIP/2.0/UDP
uac:5064;received=uac;rport=5064;branch=z9hG4bKPjf470c12ae4af4c6484564045f41323f2
Max-Forwards: 69
From: sip:85030231@ip;tag=4e6c8524c571421ebaa0fa35b35d9d45
To: sip:50661102@ip;tag=as6832055a
Call-ID: 9235c4f0d23c4136b27186329a3c5fb4
CSeq: 16369 ACK
Content-Length: 0
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - http://asipto.com/u/kat