|
@@ -36,6 +36,7 @@ Alex Balashov
|
|
|
3.3. timer_interval (int)
|
|
|
3.4. auth_min_expires (int)
|
|
|
3.5. auth_max_expires (int)
|
|
|
+ 3.6. use_path_addr (str)
|
|
|
|
|
|
4. Functions
|
|
|
|
|
@@ -64,16 +65,17 @@ Alex Balashov
|
|
|
1.3. Set timer_interval parameter
|
|
|
1.4. Set auth_min_expires parameter
|
|
|
1.5. Set auth_max_expires parameter
|
|
|
- 1.6. msrp usage
|
|
|
- 1.7. msrp_reply usage
|
|
|
- 1.8. msrp_is_request usage
|
|
|
- 1.9. msrp_is_reply usage
|
|
|
- 1.10. msrp_set_dst usage
|
|
|
- 1.11. msrp_relay_flags usage
|
|
|
- 1.12. msrp_reply_flags usage
|
|
|
- 1.13. msrp_cmap_save usage
|
|
|
- 1.14. msrp_cmap_lookup usage
|
|
|
- 1.15. Event Route
|
|
|
+ 1.6. Set use_path_addr parameter
|
|
|
+ 1.7. msrp_relay usage
|
|
|
+ 1.8. msrp_reply usage
|
|
|
+ 1.9. msrp_is_request usage
|
|
|
+ 1.10. msrp_is_reply usage
|
|
|
+ 1.11. msrp_set_dst usage
|
|
|
+ 1.12. msrp_relay_flags usage
|
|
|
+ 1.13. msrp_reply_flags usage
|
|
|
+ 1.14. msrp_cmap_save usage
|
|
|
+ 1.15. msrp_cmap_lookup usage
|
|
|
+ 1.16. Event Route
|
|
|
|
|
|
Chapter 1. Admin Guide
|
|
|
|
|
@@ -92,6 +94,7 @@ Chapter 1. Admin Guide
|
|
|
3.3. timer_interval (int)
|
|
|
3.4. auth_min_expires (int)
|
|
|
3.5. auth_max_expires (int)
|
|
|
+ 3.6. use_path_addr (str)
|
|
|
|
|
|
4. Functions
|
|
|
|
|
@@ -167,6 +170,7 @@ Chapter 1. Admin Guide
|
|
|
3.3. timer_interval (int)
|
|
|
3.4. auth_min_expires (int)
|
|
|
3.5. auth_max_expires (int)
|
|
|
+ 3.6. use_path_addr (str)
|
|
|
|
|
|
3.1. sipmsg (int)
|
|
|
|
|
@@ -228,6 +232,17 @@ modparam("msrp", "auth_min_expiresl", 90)
|
|
|
modparam("msrp", "auth_max_expiresl", 1800)
|
|
|
...
|
|
|
|
|
|
+3.6. use_path_addr (str)
|
|
|
+
|
|
|
+ The hostname:port to be used when building Use-Path header.
|
|
|
+
|
|
|
+ Default value is NULL (server IP and port are used).
|
|
|
+
|
|
|
+ Example 1.6. Set use_path_addr parameter
|
|
|
+...
|
|
|
+modparam("msrp", "use_path_addr", "msrp.kamailio.org:5061")
|
|
|
+...
|
|
|
+
|
|
|
4. Functions
|
|
|
|
|
|
4.1. msrp_relay()
|
|
@@ -249,7 +264,7 @@ modparam("msrp", "auth_max_expiresl", 1800)
|
|
|
|
|
|
This function can be used in ANY_ROUTE.
|
|
|
|
|
|
- Example 1.6. msrp usage
|
|
|
+ Example 1.7. msrp_relay usage
|
|
|
...
|
|
|
event_route[msrp:frame-in] {
|
|
|
msrp_relay();
|
|
@@ -264,7 +279,7 @@ event_route[msrp:frame-in] {
|
|
|
|
|
|
This function can be used in ANY_ROUTE.
|
|
|
|
|
|
- Example 1.7. msrp_reply usage
|
|
|
+ Example 1.8. msrp_reply usage
|
|
|
...
|
|
|
event_route[msrp:frame-in] {
|
|
|
msrp_reply("403", "Not allowed");
|
|
@@ -277,7 +292,7 @@ event_route[msrp:frame-in] {
|
|
|
|
|
|
This function can be used in ANY_ROUTE.
|
|
|
|
|
|
- Example 1.8. msrp_is_request usage
|
|
|
+ Example 1.9. msrp_is_request usage
|
|
|
...
|
|
|
event_route[msrp:frame-in] {
|
|
|
if(msrp_is_request())
|
|
@@ -294,7 +309,7 @@ event_route[msrp:frame-in] {
|
|
|
|
|
|
This function can be used in ANY_ROUTE.
|
|
|
|
|
|
- Example 1.9. msrp_is_reply usage
|
|
|
+ Example 1.10. msrp_is_reply usage
|
|
|
...
|
|
|
event_route[msrp:frame-in] {
|
|
|
if(msrp_is_reply())
|
|
@@ -314,7 +329,7 @@ event_route[msrp:frame-in] {
|
|
|
|
|
|
This function can be used in ANY_ROUTE.
|
|
|
|
|
|
- Example 1.10. msrp_set_dst usage
|
|
|
+ Example 1.11. msrp_set_dst usage
|
|
|
...
|
|
|
event_route[msrp:frame-in] {
|
|
|
...
|
|
@@ -333,7 +348,7 @@ event_route[msrp:frame-in] {
|
|
|
|
|
|
This function can be used in ANY_ROUTE.
|
|
|
|
|
|
- Example 1.11. msrp_relay_flags usage
|
|
|
+ Example 1.12. msrp_relay_flags usage
|
|
|
...
|
|
|
event_route[msrp:frame-in] {
|
|
|
...
|
|
@@ -352,7 +367,7 @@ event_route[msrp:frame-in] {
|
|
|
|
|
|
This function can be used in ANY_ROUTE.
|
|
|
|
|
|
- Example 1.12. msrp_reply_flags usage
|
|
|
+ Example 1.13. msrp_reply_flags usage
|
|
|
...
|
|
|
event_route[msrp:frame-in] {
|
|
|
...
|
|
@@ -368,7 +383,7 @@ event_route[msrp:frame-in] {
|
|
|
|
|
|
This function can be used in ANY_ROUTE.
|
|
|
|
|
|
- Example 1.13. msrp_cmap_save usage
|
|
|
+ Example 1.14. msrp_cmap_save usage
|
|
|
...
|
|
|
event_route[msrp:frame-in] {
|
|
|
...
|
|
@@ -383,7 +398,7 @@ event_route[msrp:frame-in] {
|
|
|
|
|
|
This function can be used in ANY_ROUTE.
|
|
|
|
|
|
- Example 1.14. msrp_cmap_lookup usage
|
|
|
+ Example 1.15. msrp_cmap_lookup usage
|
|
|
...
|
|
|
event_route[msrp:frame-in] {
|
|
|
...
|
|
@@ -490,7 +505,7 @@ Content-Type: text/plain
|
|
|
Next is an example of configuration file with the routing block for
|
|
|
MSRP frames. In this config, the SIP traffic is rejected.
|
|
|
|
|
|
- Example 1.15. Event Route
|
|
|
+ Example 1.16. Event Route
|
|
|
...
|
|
|
|
|
|
#!KAMAILIO
|