[SR-Users] Double attempt to record-route, RR param not added

ron.kamailio at mcleodnet.com ron.kamailio at mcleodnet.com
Sat Jan 3 21:13:32 CET 2015


Thanks Daniel.

 

I am now using record_route_advertised_address() to set the alternate
address rather than record_route_preset() followed by record_route().  Also,
I am able to add the tag using add_rr_param().  The documentation for the
record_route_preset function isn't clear that it actually adds the header,
so I understood that I needed to call the record_route function as well.

 

record_route(), record_route(string)

The function adds a new Record-Route header field.

 

record_route_advertised_address(address)

The function adds a new Record-Route header field using the address given.

 

record_route_preset(string [,string2])

This function will put the string into Record-Route

 

Thanks again for your help,

Ron

 

From: sr-users [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of
Daniel-Constantin Mierla
Sent: January-03-15 1:54 AM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Double attempt to record-route, RR param not added

 

Hello,

you call record_route_preset() in the switch and record_route() before
t_relay(), therefore you attempt to add two times the record-route header.

I am not sure the add_rr_param() works on the header added by
record_route_preset(), to that function you can include the URI parameter
directly in the function parameter.

Cheers,
Daniel

On 03/01/15 00:03, ron.kamailio at mcleodnet.com wrote:

One additional bit of information.  Here is a message flow diagram of the
call scenario.  The circled message is where the Record-Route header is
added.

 

http://www.siplabs.net/tracebin/record-route/message-flow-diagram.png

 

Thanks,

Ron

 

From: sr-users [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of
ron.kamailio at mcleodnet.com
Sent: January-02-15 2:42 PM
To: sr-users at lists.sip-router.org
Subject: [SR-Users] Double attempt to record-route, RR param not added

 

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 at 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

 

 

 

 
-- 
This email was Anti Virus checked by Astaro Security Gateway.
http://www.astaro.com






_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150103/b6b018f8/attachment.html>


More information about the sr-users mailing list