Hello,

it should be possible to provide only the uri attribute in each of the
serial routes. To URI should not be overwriten in such case. Can you get
the debug messages for such case with debug=3 in kamailio.cfg as well as
the pcap file with the sip traffic?

Cheers,
Daniel

On 10.07.20 17:48, Julien Klingenmeyer wrote:
>
> 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

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla

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

Reply via email to