Browse Source

3.18: dont keep the params yet

3.18
karl anderson 11 years ago
parent
commit
2a0716dd73
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      kamailio/registrar-role.cfg

+ 5
- 3
kamailio/registrar-role.cfg View File

@ -113,9 +113,11 @@ route[HANDLE_REGISTER]
$var(params) = "fs_path=<sip:MY_IP_ADDRESS:5060;lr;received='" + $rz + ":" + $si + ":" + $sp + ";transport=" + $proto + "'>";
if($(ct{tobody.params}) != $null) {
$var(params) = $(ct{tobody.params}{s.escape.common}) + ";" + $var(params);
}
## TODO: fix escaping, some phones send us -- reg-id=1;+sip.instance="urn:uuid:9b8bd513-0e6e-4660-ad5e-5e35d88cc68f";
## and if we can store it but not use it because it looses the escapes (that weren't there...)
#if($(ct{tobody.params}) != $null) {
# $var(params) = $(ct{tobody.params}{s.escape.common}) + ";" + $var(params);
#}
if ($avp(AVP_RECV_PARAM) == $null) {
$var(fs_contact) = "<" + $(ct{tobody.uri}) + ";" + $var(params) + ">";


Loading…
Cancel
Save