[SR-Users] Re: Difference betwwen TM functions in KEMI
Hello Alex, You're totally right, that was the issue. Thank you so much for the help. Helpful as always. Cheers, Duarte Rocha __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
[SR-Users] Difference betwwen TM functions in KEMI
Hello all, I'm using Kamailio with native script and KEMI in Javascript. I noticed that functions from the TM module can have different results if I call them on KEMI or Native script. Is this intended behaviour? Don't they share the state? In order to test this i made the following code : KEMI Code : function ksr_request_route() { try{ if ( KSR.is_method("BYE") ) { print.error("BYE Request KEMI BYE") KSR.route("exists_test") if(KSR.tm.t_exists()) { print.error("KEMI : Transaction exists") } else { print.error("KEMI : Transaction does not exist") } Native Code : route[exists_test] { if( t_exists()) { xerr("Native Script : Transaction exists \n"); } else { xerr("Native Script : Transaction does not exist \n"); } } I've also tried to change function call order but every time I get "Transaction does not exist" on native and "Transaction Exists" on KEMI. Is this intended behaviour? Should I only call tm functions in native or Kemi in order to have consistency ? Thanks in advance, Best Regards, __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
[SR-Users] Re: RADIUS ACC - Interim Updates
Thanks for the help. I've ended up creating a route invoked by rtimer module where i check all active dialogs and for each of them sent a radius accounting update. Cheers, Duarte __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
[SR-Users] RADIUS ACC - Interim Updates
Hello all, I can't seem to find a way to make interim accounting requests for RADIUS. Can you help me with this? I can't find any native way for doing this. I've thought of getting a custom timer for each dialog and run a event route similar do dialog:start or dialog:end. Is that possible? Cheers, Duarte Rocha __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
[SR-Users] dialog:event unknown and kemi callback error
Hello all, I'm currently developing some kamailio scripts with app_jsdt by migrating a proxy of mine from Kamailio routing script to Js. I've migrated some parts of my request_route and everything seems to be working fine. I am now trying to migrate my event routes to JS and I started with dialog. dialog parameters : modparam("dialog", "event_callback", "dialogEvent") Code : function dialogEvent(event) { KSR.info("Dialog event " + event + " in JS") } After this i try to make a call and in my logs i have : "Dialog event unknown in JS" "Dialog event dialog:start in JS" Is this normal behaviour that I should ignore and only try to process "start,end,failure" or is this a signal of something wrong in my code? I also have this error in my code : "sr_kemi_cbname_lookup_idx(): index 1 is out of range". Does that mean that i have a JS function that calls a missing function in kamailio script or the opposite? How can I identify the root cause? Thanks in advance, Cheers __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
[SR-Users] Re: RADIUS - Can't use extra attributes
Hello Daniel, Thanks for the reply. The extra dictionary is already included otherwise an error is thrown and Kamailio doesn't start. However, i realized my mistake now and you were right. I was checking for the extra attributes in a tcpdump and on radius server and i didn't had the dictionary configured on both of them. The extra attributes are in the packet but weren't being listed. One more question. Kamailio doesn't have a way to do a totally custom RADIUS access-request packet right? (Sorry if this opens another thread. I usually just hit reply on the mailing list and let Outlook create the e-mail, but it usually creates another thread and i'm not sure why). Thanks again. Cheers, Duarte __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
[SR-Users] Re: RADIUS - Can't use extra attributes
Hello Daniel, Thanks for the reply. The extra dictionary is already included otherwise an error is thrown and Kamailio doesn't start. However, i realized my mistake now and you were right. I was checking for the extra attributes in a tcpdump and on radius server and i didn't had the dictionary configured on both of them. The extra attributes are in the packet but weren't being listed. One more question. Kamailio doesn't have a way to do a totally custom RADIUS access-request packet right? (Sorry if this opens another thread. I usually just hit reply on the mailing list and let Outlook create the e-mail, but it usually creates another thread and i'm not sure why). Thanks again. Cheers, Duarte __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
[SR-Users] RADIUS - Can't use extra attributes
Hello all, I'm currently implementing a Kamailio with RADIUS. I want to send an Access-Request to my RADIUS server and in order to do that i'm using misc_radius module and radius_does_uri_exist() function without any arguments : "if (radius_does_uri_exist()) {" For my module configuration I have the following configurations : "modparam("misc_radius", "radius_config", "/etc/radcli/radiusclient.conf") modparam("misc_radius", "uri_extra", "Sip-Method=$rm")" >From what i understand, with this config my access-request should contain the >default attributes and Sip-Method Attribute but that is not happening. Only >defaults attributes are included. I've tried to run Kamailio with "-ddd" flag for better debug and i only get this error : "1(176) DEBUG: misc_radius [functions.c:615]: radius_does_uri_user_host_exist(): failure". Is there any other configuration that i must do? Thanks for the help. Cheers, Duarte __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
[SR-Users] Re: Choose RTP port in routing script
Thanks for the reply. I want to be able to get different port ranges for some costumers since some of them can only their firewall to a small destination port range . __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
[SR-Users] Choose RTP port in routing script
Hello all, I have my rtpengine configured to use ports 2 - 5 for RTP in rtpengine.conf. Now i want to able to select the port or the port range in a call by call basis. Is that possible? I've tried to use "media-address" flag on rtpengine_manage but i wasn't successful. Thanks in advance, Cheers, Duarte Rocha __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: