|
|
|
@ -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) + ">"; |
|
|
|
|