Re: [SR-Users] routing SIP REGISTER with app_perl

2014-09-16 Thread Daniel-Constantin Mierla
Hello, On 16/09/14 18:37, Vik Killa wrote: Thanks Daniel, I want to remove the htable entry after the register goes through, and I also want to check if the htable entry exists later. I see sht_rm_value_re("ha=>.*"); this is going to remove all the items from the hash table -- perhaps you d

Re: [SR-Users] routing SIP REGISTER with app_perl

2014-09-16 Thread Vik Killa
Thanks Daniel, I want to remove the htable entry after the register goes through, and I also want to check if the htable entry exists later. I see sht_rm_value_re("ha=>.*"); to remove the htable entry but how do i later check if the key exists? Thanks /V On Tue, Sep 16, 2014 at 11:52 AM, Danie

Re: [SR-Users] routing SIP REGISTER with app_perl

2014-09-16 Thread Daniel-Constantin Mierla
Hello, if you want to rely on kamailio to memorize where to send the following register, the hash table is the right tool. Cheers, Daniel On 16/09/14 03:37, Vik Killa wrote: Hello, I'm learning Kamailio. My ultimate goal is to be able to route SIP messages from User Agents to specific FS bo

[SR-Users] routing SIP REGISTER with app_perl

2014-09-15 Thread Vik Killa
Hello, I'm learning Kamailio. My ultimate goal is to be able to route SIP messages from User Agents to specific FS boxes. I'm starting with routing REGISTER messages. I used app_perl to randomly lookup one of the FS box's IP Address from postgres database, then I stored the IP in avp and then in h