|
|
@ -446,7 +446,7 @@ route[FIND_ROUTES] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
# Handle the case when a prefered route is set |
|
|
# Handle the case when a prefered route is set |
|
|
$var(contact_uri) = @from.uri.user + "@" + @from.uri.host; |
|
|
|
|
|
|
|
|
$var(contact_uri) = $(ct{tobody.user}) + "@" + $(ct{tobody.host}); |
|
|
if ($sht(associations=>$var(contact_uri)) != $null) { |
|
|
if ($sht(associations=>$var(contact_uri)) != $null) { |
|
|
$var(prefered_route) = $sht(associations=>$var(contact_uri)); |
|
|
$var(prefered_route) = $sht(associations=>$var(contact_uri)); |
|
|
|
|
|
|
|
|
@ -712,7 +712,7 @@ failure_route[INTERNAL_FAULT] |
|
|
|
|
|
|
|
|
onsend_route { |
|
|
onsend_route { |
|
|
if (isflagset(FLAG_ASSOCIATE_USER)) { |
|
|
if (isflagset(FLAG_ASSOCIATE_USER)) { |
|
|
$var(contact_uri) = @from.uri.user + "@" + @from.uri.host; |
|
|
|
|
|
|
|
|
$var(contact_uri) = $(ct{tobody.user}) + "@" + $(ct{tobody.host}); |
|
|
xlog("L_INFO", "$ci|log|associate user $var(contact_uri) with media server sip:$sndto(ip):$sndto(port)\n"); |
|
|
xlog("L_INFO", "$ci|log|associate user $var(contact_uri) with media server sip:$sndto(ip):$sndto(port)\n"); |
|
|
$sht(associations=>$var(contact_uri))= "sip:" + $sndto(ip) + ":" + $sndto(port); |
|
|
$sht(associations=>$var(contact_uri))= "sip:" + $sndto(ip) + ":" + $sndto(port); |
|
|
} |
|
|
} |
|
|
|