I’m attempting to connect my application to kamailio via the seas module.
Kamailio ver. 5.3.2
I have loaded all the necessary configuration file components.
I start kamailio and everything looks good. I then start my app server which connects to the loopback ports 5040 and 5041 and send my counted string “servername” to each connection. Again everything looks good. Seas module responds with : “… EUREKA, we have a new connected AS: myappserver
I then send a register request to kamailio.…
[View More] Request_route calls as_relay_t(myappserver) and I subsequently get an ERROR – w_as_relay_t(): no processer found for packet dst xxx.xxx.xxx.xxx:pppp
As best as I can figure out from the source…. It looks as if something else needs to be sent to kamailio (from myappserver) in order for a processor_id to be assigned to ‘as->bound_processor[i]
My application server is just straight up C code. I must be forgetting something or maybe completely off the mark as to how the seas module functions.
Any help would be greatly appreciated.
Thanks,
Dan
Sent from Mail for Windows
[View Less]
Module: kamailio
Branch: master
Commit: 2fdf550ac0a865ba2336e80ce2d450f3c378ad50
URL: https://github.com/kamailio/kamailio/commit/2fdf550ac0a865ba2336e80ce2d450f…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2021-09-27T12:46:18+02:00
modules: readme files regenerated - posops ... [skip ci]
---
Modified: src/modules/posops/README
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]2fdf550ac0a865ba2336e80ce2d450f…
Patch: https://github.com/kamailio/kamailio/commit/2fdf550ac0a865ba2336e80ce2d450f…
---
diff --git a/src/modules/posops/README b/src/modules/posops/README
index d5f49f0cbb..6e126f645f 100644
--- a/src/modules/posops/README
+++ b/src/modules/posops/README
@@ -41,6 +41,7 @@ Daniel-Constantin Mierla
4.9. pos_findi_str(idx, val)
4.10. pos_rfind_str(idx, val)
4.11. pos_rfindi_str(idx, val)
+ 4.12. pos_search(idx, re)
List of Examples
@@ -56,6 +57,7 @@ Daniel-Constantin Mierla
1.10. pos_findi_str() usage
1.11. pos_find_str() usage
1.12. pos_rfindi_str() usage
+ 1.13. pos_search() usage
Chapter 1. Admin Guide
@@ -84,6 +86,7 @@ Chapter 1. Admin Guide
4.9. pos_findi_str(idx, val)
4.10. pos_rfind_str(idx, val)
4.11. pos_rfindi_str(idx, val)
+ 4.12. pos_search(idx, re)
1. Overview
@@ -140,6 +143,7 @@ modparam("posops", "idx0", -200)
4.9. pos_findi_str(idx, val)
4.10. pos_rfind_str(idx, val)
4.11. pos_rfindi_str(idx, val)
+ 4.12. pos_search(idx, re)
4.1. pos_append(idx, val)
@@ -316,3 +320,23 @@ $var(idx) = pos_rfind_str("100", "kamailio");
...
$var(idx) = pos_rfindi_str("100", "kamailio");
...
+
+4.12. pos_search(idx, re)
+
+ Return the position that starts matching the regular expression re in
+ message buffer starting at idx. In case of not finding it or error, the
+ return code is negative. If val is at index 0, it returns the value
+ specified by modparam idx0.
+
+ The idx can be an integer value or a variable holding an integer. If
+ the value is negative, the position is counted from the end of the
+ buffer.
+
+ The re can be a static regular expression string.
+
+ This function can be used from ANY_ROUTE.
+
+ Example 1.13. pos_search() usage
+...
+$var(idx) = pos_search("100", "[0-9]+");
+...
[View Less]