Browse Source

fix associations

3.17
karl anderson 13 years ago
parent
commit
9e2d3f33b3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      kamailio/kamailio.cfg

+ 2
- 2
kamailio/kamailio.cfg View File

@ -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);
} }


Loading…
Cancel
Save