I have been away from Kamailio for a while and starting working on a project
where it would be a good fit.
I am having a problem when I try to add a Record-Route header with a tag. I
see a message in the log indicating that a Double attempt to record-route
was made, and the tag that I specified (;rtpproxy=yes), does not get
included.
I have checked-over the scripts defined in the kamailio.cfg, and I am very
sure that record_route() does not get called more than once. Also, the log
only shows record_route being execute a single time.
Can anyone suggest how I can troubleshoot this problem further?
5(32087) ERROR: *** cfgtrace:request_route=[DEFAULT_ROUTE]
c=[//etc/kamailio/kamailio.cfg] l=206 a=57 n=set_adv_addr
5(32087) ERROR: *** cfgtrace:request_route=[DEFAULT_ROUTE]
c=[//etc/kamailio/kamailio.cfg] l=207 a=58 n=set_adv_port
5(32087) ERROR: *** cfgtrace:request_route=[DEFAULT_ROUTE]
c=[//etc/kamailio/kamailio.cfg] l=208 a=25 n=record_route_preset
5(32087) ERROR: *** cfgtrace:request_route=[DEFAULT_ROUTE]
c=[//etc/kamailio/kamailio.cfg] l=209 a=62 n=force_send_socket
5(32087) ERROR: *** cfgtrace:request_route=[DEFAULT_ROUTE]
c=[//etc/kamailio/kamailio.cfg] l=210 a=2 n=exit
5(32087) ERROR: *** cfgtrace:request_route=[DEFAULT_ROUTE]
c=[//etc/kamailio/kamailio.cfg] l=235 a=16 n=if
5(32087) ERROR: *** cfgtrace:request_route=[DEFAULT_ROUTE]
c=[//etc/kamailio/kamailio.cfg] l=231 a=41 n=isflagset
5(32087) ERROR: *** cfgtrace:request_route=[DEFAULT_ROUTE]
c=[//etc/kamailio/kamailio.cfg] l=232 a=25 n=add_rr_param
5(32087) DEBUG: rr [record.c:899]: add_rr_param():
rr_param_buf=<;rtpproxy=yes>
5(32087) ERROR: *** cfgtrace:request_route=[DEFAULT_ROUTE]
c=[//etc/kamailio/kamailio.cfg] l=235 a=25 n=xlog
5(32087) ERROR: <script>: new ru: sip:19999009595@192.168.100.52:5080
5(32087) ERROR: *** cfgtrace:request_route=[DEFAULT_ROUTE]
c=[//etc/kamailio/kamailio.cfg] l=236 a=24 n=record_route
5(32087) ERROR: rr [rr_mod.c:262]: w_record_route(): Double attempt to
record-route
5(32087) ERROR: *** cfgtrace:request_route=[DEFAULT_ROUTE]
c=[//etc/kamailio/kamailio.cfg] l=237 a=5 n=route
5(32087) ERROR: *** cfgtrace:request_route=[RELAY]
c=[//etc/kamailio/kamailio.cfg] l=247 a=16 n=if
5(32087) ERROR: *** cfgtrace:request_route=[RELAY]
c=[//etc/kamailio/kamailio.cfg] l=244 a=25 n=is_method
5(32087) ERROR: *** cfgtrace:request_route=[RELAY]
c=[//etc/kamailio/kamailio.cfg] l=246 a=16 n=if
5(32087) ERROR: *** cfgtrace:request_route=[RELAY]
c=[//etc/kamailio/kamailio.cfg] l=245 a=25 n=t_is_set
5(32087) ERROR: *** cfgtrace:request_route=[RELAY]
c=[//etc/kamailio/kamailio.cfg] l=245 a=25 n=t_on_branch
5(32087) ERROR: *** cfgtrace:request_route=[RELAY]
c=[//etc/kamailio/kamailio.cfg] l=250 a=16 n=if
5(32087) ERROR: *** cfgtrace:request_route=[RELAY]
c=[//etc/kamailio/kamailio.cfg] l=247 a=25 n=is_method
5(32087) ERROR: *** cfgtrace:request_route=[RELAY]
c=[//etc/kamailio/kamailio.cfg] l=249 a=16 n=if
5(32087) ERROR: *** cfgtrace:request_route=[RELAY]
c=[//etc/kamailio/kamailio.cfg] l=248 a=25 n=t_is_set
5(32087) ERROR: *** cfgtrace:request_route=[RELAY]
c=[//etc/kamailio/kamailio.cfg] l=248 a=25 n=t_on_reply
5(32087) ERROR: *** cfgtrace:request_route=[RELAY]
c=[//etc/kamailio/kamailio.cfg] l=254 a=16 n=if
5(32087) ERROR: *** cfgtrace:request_route=[RELAY]
c=[//etc/kamailio/kamailio.cfg] l=250 a=25 n=is_method
5(32087) ERROR: *** cfgtrace:request_route=[RELAY]
c=[//etc/kamailio/kamailio.cfg] l=252 a=16 n=if
5(32087) ERROR: *** cfgtrace:request_route=[RELAY]
c=[//etc/kamailio/kamailio.cfg] l=251 a=25 n=t_is_set
5(32087) ERROR: *** cfgtrace:request_route=[RELAY]
c=[//etc/kamailio/kamailio.cfg] l=251 a=25 n=t_on_failure
5(32087) ERROR: *** cfgtrace:request_route=[RELAY]
c=[//etc/kamailio/kamailio.cfg] l=257 a=16 n=if
5(32087) ERROR: *** cfgtrace:request_route=[RELAY]
c=[//etc/kamailio/kamailio.cfg] l=254 a=24 n=t_relay
The complete log file, script files, and SIP trace can be found here:
http://www.siplabs.net/tracebin/record-route/kamailio-log.txt
http://www.siplabs.net/tracebin/record-route/kamailio.cfg
http://www.siplabs.net/tracebin/record-route/bgcf-local.cfg
http://www.siplabs.net/tracebin/record-route/sip-trace.txt
Thanks and Happy New Year,
Ron