|
@@ -56,7 +56,8 @@ Bogdan-Andre Iancu
|
|
3.19. path_use_received (integer)
|
|
3.19. path_use_received (integer)
|
|
3.20. reg_callid_avp (string)
|
|
3.20. reg_callid_avp (string)
|
|
3.21. xavp_cfg (string)
|
|
3.21. xavp_cfg (string)
|
|
- 3.22. gruu_enabled (integer)
|
|
|
|
|
|
+ 3.22. xavp_rcd (string)
|
|
|
|
+ 3.23. gruu_enabled (integer)
|
|
|
|
|
|
4. Functions
|
|
4. Functions
|
|
|
|
|
|
@@ -104,15 +105,16 @@ Bogdan-Andre Iancu
|
|
1.18. Set path_use_received parameter
|
|
1.18. Set path_use_received parameter
|
|
1.19. Set reg_callid_avp parameter
|
|
1.19. Set reg_callid_avp parameter
|
|
1.20. Set xavp_cfg parameter
|
|
1.20. Set xavp_cfg parameter
|
|
- 1.21. Set gruu_enabled parameter
|
|
|
|
- 1.22. save usage
|
|
|
|
- 1.23. lookup usage
|
|
|
|
- 1.24. registered usage
|
|
|
|
- 1.25. add_sock_hdr usage
|
|
|
|
- 1.26. registered usage
|
|
|
|
|
|
+ 1.21. Set xavp_rcd parameter
|
|
|
|
+ 1.22. Set gruu_enabled parameter
|
|
|
|
+ 1.23. save usage
|
|
|
|
+ 1.24. lookup usage
|
|
|
|
+ 1.25. registered usage
|
|
|
|
+ 1.26. add_sock_hdr usage
|
|
1.27. registered usage
|
|
1.27. registered usage
|
|
1.28. registered usage
|
|
1.28. registered usage
|
|
- 1.29. $ulc(name) usage
|
|
|
|
|
|
+ 1.29. registered usage
|
|
|
|
+ 1.30. $ulc(name) usage
|
|
|
|
|
|
Chapter 1. Admin Guide
|
|
Chapter 1. Admin Guide
|
|
|
|
|
|
@@ -151,7 +153,8 @@ Chapter 1. Admin Guide
|
|
3.19. path_use_received (integer)
|
|
3.19. path_use_received (integer)
|
|
3.20. reg_callid_avp (string)
|
|
3.20. reg_callid_avp (string)
|
|
3.21. xavp_cfg (string)
|
|
3.21. xavp_cfg (string)
|
|
- 3.22. gruu_enabled (integer)
|
|
|
|
|
|
+ 3.22. xavp_rcd (string)
|
|
|
|
+ 3.23. gruu_enabled (integer)
|
|
|
|
|
|
4. Functions
|
|
4. Functions
|
|
|
|
|
|
@@ -261,7 +264,8 @@ Chapter 1. Admin Guide
|
|
3.19. path_use_received (integer)
|
|
3.19. path_use_received (integer)
|
|
3.20. reg_callid_avp (string)
|
|
3.20. reg_callid_avp (string)
|
|
3.21. xavp_cfg (string)
|
|
3.21. xavp_cfg (string)
|
|
- 3.22. gruu_enabled (integer)
|
|
|
|
|
|
+ 3.22. xavp_rcd (string)
|
|
|
|
+ 3.23. gruu_enabled (integer)
|
|
|
|
|
|
3.1. default_expires (integer)
|
|
3.1. default_expires (integer)
|
|
|
|
|
|
@@ -582,7 +586,24 @@ modparam("registrar", "reg_callid_avp", "$avp(s:avp)")
|
|
modparam("registrar", "xavp_cfg", "reg")
|
|
modparam("registrar", "xavp_cfg", "reg")
|
|
...
|
|
...
|
|
|
|
|
|
-3.22. gruu_enabled (integer)
|
|
|
|
|
|
+3.22. xavp_rcd (string)
|
|
|
|
+
|
|
|
|
+ Defines the name of XAVP class to store details from the location
|
|
|
|
+ records. The values are stored as inner XAVPs, like
|
|
|
|
+ $xavp(class=>attribute). Valid inner XAVP names:
|
|
|
|
+ * ruid - the record's internal unique id.
|
|
|
|
+
|
|
|
|
+ For example. if this parameter is set to 'ulrcd', then the ruid for
|
|
|
|
+ contact records are set in $xavp(ulrcd=>ruid).
|
|
|
|
+
|
|
|
|
+ Default value is NULL (disabled).
|
|
|
|
+
|
|
|
|
+ Example 1.21. Set xavp_rcd parameter
|
|
|
|
+...
|
|
|
|
+modparam("registrar", "xavp_cfg", "ulrcd")
|
|
|
|
+...
|
|
|
|
+
|
|
|
|
+3.23. gruu_enabled (integer)
|
|
|
|
|
|
If set to 1 and GRUU "+sip.instance" parameter to Contact header of
|
|
If set to 1 and GRUU "+sip.instance" parameter to Contact header of
|
|
REGISTER is present, then the value of the parameter is saved to
|
|
REGISTER is present, then the value of the parameter is saved to
|
|
@@ -592,7 +613,7 @@ modparam("registrar", "xavp_cfg", "reg")
|
|
|
|
|
|
Default value is 1 (enabled).
|
|
Default value is 1 (enabled).
|
|
|
|
|
|
- Example 1.21. Set gruu_enabled parameter
|
|
|
|
|
|
+ Example 1.22. Set gruu_enabled parameter
|
|
...
|
|
...
|
|
modparam("registrar", "gruu_enabled", 0)
|
|
modparam("registrar", "gruu_enabled", 0)
|
|
...
|
|
...
|
|
@@ -644,7 +665,7 @@ modparam("registrar", "gruu_enabled", 0)
|
|
|
|
|
|
This function can be used from REQUEST_ROUTE and REPLY_ROUTE.
|
|
This function can be used from REQUEST_ROUTE and REPLY_ROUTE.
|
|
|
|
|
|
- Example 1.22. save usage
|
|
|
|
|
|
+ Example 1.23. save usage
|
|
...
|
|
...
|
|
save("location");
|
|
save("location");
|
|
save("location", "0x01");
|
|
save("location", "0x01");
|
|
@@ -677,7 +698,7 @@ save("location", "0x00", "sip:[email protected]");
|
|
|
|
|
|
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
|
|
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
|
|
|
|
|
|
- Example 1.23. lookup usage
|
|
|
|
|
|
+ Example 1.24. lookup usage
|
|
...
|
|
...
|
|
lookup("location");
|
|
lookup("location");
|
|
switch ($retcode) {
|
|
switch ($retcode) {
|
|
@@ -705,7 +726,7 @@ switch ($retcode) {
|
|
|
|
|
|
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
|
|
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
|
|
|
|
|
|
- Example 1.24. registered usage
|
|
|
|
|
|
+ Example 1.25. registered usage
|
|
...
|
|
...
|
|
if (registered("location")) {
|
|
if (registered("location")) {
|
|
sl_send_reply("100", "Trying");
|
|
sl_send_reply("100", "Trying");
|
|
@@ -725,7 +746,7 @@ if (registered("location")) {
|
|
|
|
|
|
This function can be used from REQUEST_ROUTE.
|
|
This function can be used from REQUEST_ROUTE.
|
|
|
|
|
|
- Example 1.25. add_sock_hdr usage
|
|
|
|
|
|
+ Example 1.26. add_sock_hdr usage
|
|
...
|
|
...
|
|
add_sock_hdr("Sock-Info");
|
|
add_sock_hdr("Sock-Info");
|
|
...
|
|
...
|
|
@@ -743,7 +764,7 @@ add_sock_hdr("Sock-Info");
|
|
|
|
|
|
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
|
|
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
|
|
|
|
|
|
- Example 1.26. registered usage
|
|
|
|
|
|
+ Example 1.27. registered usage
|
|
...
|
|
...
|
|
unregister("location", "$ru");
|
|
unregister("location", "$ru");
|
|
unregister("location", "sip:[email protected]");
|
|
unregister("location", "sip:[email protected]");
|
|
@@ -765,7 +786,7 @@ unregister("location", "sip:[email protected]");
|
|
|
|
|
|
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
|
|
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
|
|
|
|
|
|
- Example 1.27. registered usage
|
|
|
|
|
|
+ Example 1.28. registered usage
|
|
...
|
|
...
|
|
reg_fetch_contacts("location", "$ru", "callee");
|
|
reg_fetch_contacts("location", "$ru", "callee");
|
|
reg_fetch_contacts("location", "sip:[email protected]", "caller");
|
|
reg_fetch_contacts("location", "sip:[email protected]", "caller");
|
|
@@ -784,7 +805,7 @@ reg_fetch_contacts("location", "sip:[email protected]", "caller");
|
|
|
|
|
|
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
|
|
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
|
|
|
|
|
|
- Example 1.28. registered usage
|
|
|
|
|
|
+ Example 1.29. registered usage
|
|
...
|
|
...
|
|
reg_free_contacts("callee");
|
|
reg_free_contacts("callee");
|
|
...
|
|
...
|
|
@@ -850,7 +871,7 @@ reg_free_contacts("callee");
|
|
The pseudo-variable accepts positive index value to access a specific
|
|
The pseudo-variable accepts positive index value to access a specific
|
|
contact record.
|
|
contact record.
|
|
|
|
|
|
- Example 1.29. $ulc(name) usage
|
|
|
|
|
|
+ Example 1.30. $ulc(name) usage
|
|
...
|
|
...
|
|
if(reg_fetch_contacts("location", "$fu", "caller"))
|
|
if(reg_fetch_contacts("location", "$fu", "caller"))
|
|
{
|
|
{
|