Best way to do something like this IMO would be to use a caching backend like 
memcache. You could either use a timer route or an external script to 
periodically repopulate the tuple. 

-Brett

> On Oct 3, 2016, at 10:21 AM, Ramachandran, Agalya (Contractor) 
> <[email protected]> wrote:
> 
> Hi team,
>  
> I have a question and it follows:
>  
> If we need to add a header for Authorization purpose, before making a REST 
> call, we need to use rest_append_hf_method()
> E.X: rest_append_hf("Authorization: Bearer mF_9.B5f-4.1JqM");
>  
> My question is, If I want to read a text file, is there any function exposed 
> so that I can read the text file and place the content of the text file for 
> Authorization header?
>  
> Also, Is there a way that I need to read the text file for every hour and 
> read the file?
>  
> Please guide me how this can be achieved?
>  
> Regards,
> Agalya
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to