Hello,

for the question of this thread it is important to know the version of kamailio used. In older versions, append_branch was called on purpose upon changes in failure route, in latest one, changes to routing URIs will be detected and a new branch is created by t_relay().

I do not know if latest lcr does internally append_branch(), but if it does and you change afterwards r-uri, then you will get two branches.


On 3/18/11 7:00 PM, Klaus Darilion wrote:

Am 16.03.2011 21:09, schrieb Steven Wheeler:
  $rd=$dd;
  $rp=$dp;
  $du=$ru;
This one I do not understand. Also I do not see the code where you
change $dU?

$dX - is the pseudo-variable for internal destination uri field (or outbound proxy address) -- this will not be shown in the sip message at all. Since user part of a SIP URI has no relevance in the IP routing, $dU (which you may think it is the user part of dst uri) is not exported as PV.

Cheers,
Daniel

Anyway, it seems that 2 branches are added: maybe one by lcr module
internally via next_gw and one manually? You can try to change $dU
before calling next_gw and omit the append_branch() call.

regards
klaus

_______________________________________________
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://www.asipto.com


_______________________________________________
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

Reply via email to