Re: [SR-Users] kemi with lua and dispatcher - attempt to index field 'dispatcher' (a nil value)

2017-11-22 Thread Daniel-Constantin Mierla
Hello, On 22.11.17 16:45, Karsten Horsmann wrote: > Hello Daniel, > > yes after playing around under kamailio-5.0.x, i understand that kemi > exports are not complete. > > For example the KSR.hdr.append_hf dont work in kamailio-5.0.x > attempt to call field 'append_hf' (a nil value) > KSR.hdr.app

Re: [SR-Users] kemi with lua and dispatcher - attempt to index field 'dispatcher' (a nil value)

2017-11-22 Thread Karsten Horsmann
Hello Daniel, yes after playing around under kamailio-5.0.x, i understand that kemi exports are not complete. For example the KSR.hdr.append_hf dont work in kamailio-5.0.x attempt to call field 'append_hf' (a nil value) KSR.hdr.append_hf("P-Hint: outbound\r\n"); But i found KSR.hdr.append("P-Hint

Re: [SR-Users] kemi with lua and dispatcher - attempt to index field 'dispatcher' (a nil value)

2017-11-22 Thread Daniel-Constantin Mierla
Hello, On 22.11.17 12:42, Karsten Horsmann wrote: > Hello List, > > i dunno why this happen :) after i write an email to the list - but > now i found it. > > the app_lua/kemi function name is sr.dispatcher.select for ds_select_dst as wrote on my previous response to your initial email in this di

Re: [SR-Users] kemi with lua and dispatcher - attempt to index field 'dispatcher' (a nil value)

2017-11-22 Thread Daniel-Constantin Mierla
Hello, version 5.0 doesn't have a lot of the functions from kamailio modules exported to kemi (KSR module). Not even v5.1 will have all of them, but I expect to be over 80% in v5.1. There is a generic kemi function that can be used to execute any (most of) functions from modules KSR.x.modf(...):

Re: [SR-Users] kemi with lua and dispatcher - attempt to index field 'dispatcher' (a nil value)

2017-11-22 Thread Karsten Horsmann
Hello List, i dunno why this happen :) after i write an email to the list - but now i found it. the app_lua/kemi function name is sr.dispatcher.select for ds_select_dst The source-code documentation guides me to this point after greping around in app_lua. # dst_select( "GROUP", "HASH METHOD