Hi,

I would like to know if it is possible to use the rtjson module to do serial 
forking and at each failure only replacing the R-URI from the initial request?
Have some of you already tried this module in this way?

If so, how should the json body look like? Could I have a body with only 
information about the R-URI?
I did a quick test giving the JSON below to the rtjson_init_routes function and 
it was not successful: first route is correctly loaded and tried, but at 
failure time when calling the rtjson_next_route function in the failure route 
it does not rewrite with the next route present in the JSON. The To header is 
used instead.
I used the example described on this page to make this try: 
https://kb.asipto.com/kamailio:k43-async-sip-routing-nodejs

(I am using Kamailio 5.3)

Am I missing something?

Thanks and enjoy your week-end 😊

{
      "success":true,
      "version":"1.0",
      "routing":"serial",
      "routes":[
         {
            "uri":"sip:+1...@sip-out-1.abc.net;user=phone"
         },
         {
            "uri":"sip:+1...@sip-out-2.abc.net;user=phone"
         },
         {
            "uri":"sip:+1...@sip-out-3.abc.net;user=phone"
         }
      ]
   }

Julien
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to