|
@@ -56,6 +56,7 @@ 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)
|
|
|
|
|
|
4. Functions
|
|
4. Functions
|
|
|
|
|
|
@@ -103,14 +104,15 @@ 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. save usage
|
|
|
|
- 1.22. lookup usage
|
|
|
|
- 1.23. registered usage
|
|
|
|
- 1.24. add_sock_hdr usage
|
|
|
|
- 1.25. registered usage
|
|
|
|
|
|
+ 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.26. registered usage
|
|
1.27. registered usage
|
|
1.27. registered usage
|
|
- 1.28. $ulc(name) usage
|
|
|
|
|
|
+ 1.28. registered usage
|
|
|
|
+ 1.29. $ulc(name) usage
|
|
|
|
|
|
Chapter 1. Admin Guide
|
|
Chapter 1. Admin Guide
|
|
|
|
|
|
@@ -149,6 +151,7 @@ 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)
|
|
|
|
|
|
4. Functions
|
|
4. Functions
|
|
|
|
|
|
@@ -258,6 +261,7 @@ 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.1. default_expires (integer)
|
|
3.1. default_expires (integer)
|
|
|
|
|
|
@@ -578,6 +582,21 @@ modparam("registrar", "reg_callid_avp", "$avp(s:avp)")
|
|
modparam("registrar", "xavp_cfg", "reg")
|
|
modparam("registrar", "xavp_cfg", "reg")
|
|
...
|
|
...
|
|
|
|
|
|
|
|
+3.22. gruu_enabled (integer)
|
|
|
|
+
|
|
|
|
+ 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
|
|
|
|
+ location and pub-gruu and temp-gruu addresses are generated.
|
|
|
|
+
|
|
|
|
+ Set it to 0 if you want to ignore GRUU extensions in REGISTER.
|
|
|
|
+
|
|
|
|
+ Default value is 1 (enabled).
|
|
|
|
+
|
|
|
|
+ Example 1.21. Set gruu_enabled parameter
|
|
|
|
+...
|
|
|
|
+modparam("registrar", "gruu_enabled", 0)
|
|
|
|
+...
|
|
|
|
+
|
|
4. Functions
|
|
4. Functions
|
|
|
|
|
|
4.1. save(domain, [, flags [, uri]])
|
|
4.1. save(domain, [, flags [, uri]])
|
|
@@ -625,7 +644,7 @@ modparam("registrar", "xavp_cfg", "reg")
|
|
|
|
|
|
This function can be used from REQUEST_ROUTE and REPLY_ROUTE.
|
|
This function can be used from REQUEST_ROUTE and REPLY_ROUTE.
|
|
|
|
|
|
- Example 1.21. save usage
|
|
|
|
|
|
+ Example 1.22. save usage
|
|
...
|
|
...
|
|
save("location");
|
|
save("location");
|
|
save("location", "0x01");
|
|
save("location", "0x01");
|
|
@@ -658,7 +677,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.22. lookup usage
|
|
|
|
|
|
+ Example 1.23. lookup usage
|
|
...
|
|
...
|
|
lookup("location");
|
|
lookup("location");
|
|
switch ($retcode) {
|
|
switch ($retcode) {
|
|
@@ -686,7 +705,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.23. registered usage
|
|
|
|
|
|
+ Example 1.24. registered usage
|
|
...
|
|
...
|
|
if (registered("location")) {
|
|
if (registered("location")) {
|
|
sl_send_reply("100", "Trying");
|
|
sl_send_reply("100", "Trying");
|
|
@@ -706,7 +725,7 @@ if (registered("location")) {
|
|
|
|
|
|
This function can be used from REQUEST_ROUTE.
|
|
This function can be used from REQUEST_ROUTE.
|
|
|
|
|
|
- Example 1.24. add_sock_hdr usage
|
|
|
|
|
|
+ Example 1.25. add_sock_hdr usage
|
|
...
|
|
...
|
|
add_sock_hdr("Sock-Info");
|
|
add_sock_hdr("Sock-Info");
|
|
...
|
|
...
|
|
@@ -724,7 +743,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.25. registered usage
|
|
|
|
|
|
+ Example 1.26. registered usage
|
|
...
|
|
...
|
|
unregister("location", "$ru");
|
|
unregister("location", "$ru");
|
|
unregister("location", "sip:[email protected]");
|
|
unregister("location", "sip:[email protected]");
|
|
@@ -746,7 +765,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.26. registered usage
|
|
|
|
|
|
+ Example 1.27. 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");
|
|
@@ -765,7 +784,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.27. registered usage
|
|
|
|
|
|
+ Example 1.28. registered usage
|
|
...
|
|
...
|
|
reg_free_contacts("callee");
|
|
reg_free_contacts("callee");
|
|
...
|
|
...
|
|
@@ -831,7 +850,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.28. $ulc(name) usage
|
|
|
|
|
|
+ Example 1.29. $ulc(name) usage
|
|
...
|
|
...
|
|
if(reg_fetch_contacts("location", "$fu", "caller"))
|
|
if(reg_fetch_contacts("location", "$fu", "caller"))
|
|
{
|
|
{
|