Re: [SR-Users] limiting concurrent calls with dialog module

2011-10-02 Thread Alex Balashov
Graham, Good deal. The one improvement I would suggest would be to use sqlops for custom DB queries as it is more flexible, and is the canonical way to do them now as of >= 1.5.0. avp_db_query() could go away at some point. -- This message was painstakingly thumbed out on my mobile, so apolog

Re: [SR-Users] limiting concurrent calls with dialog module

2011-10-02 Thread Graham Wooden
Hi Uri, I just got done tailoring this exact concept with the dialog module (you may have just read my posts). Here is how I am doing it, roughly, for me. I have two places where I am executing the 3rd section below (for outbound and inbound). Your mileage will vary. modparam("auth_db", "load_cr

Re: [SR-Users] Cflag is not getting updated.

2011-10-02 Thread Krishna Kurapati
Looks like sipping does not work with TCP transport. I looked at the code it expects the client waits on UDP port. code snippet from nathelper.c if (curi.proto != PROTO_UDP && curi.proto != PROTO_NONE) continue; I would like it to use TCP transport and send

Re: [SR-Users] Cflag is not getting updated.

2011-10-02 Thread Krishna Kurapati
Finally, I figured what is going on. The client is the culprit. I am using pjsip library which by default is configured to rewrite the Contact Header when it detects a change in IP address in response. It is basically Unregistering the Private address contact and Registering the public IP contact

Re: [SR-Users] Kamailio as dispatcher fails due to from domain on extension.

2011-10-02 Thread Henrik Aagaard Sørensen
Hi Daniel (and everyone else). I'm still facing problems when using Kamailio as dispatcher in front of FreeSwitch. Everything works when connected directly to FreeSwitch. When connected via Kamailio, some calls fails in certain directions between devices. I've setup tshark on FreeSwitch now to an

[SR-Users] limiting concurrent calls with dialog module

2011-10-02 Thread Uri Shacked
Hi, I am trying to create concurrent calls limitations. two questions: 1. should i use dialog module? or is there a better module? 2. i was trying to work with the dialog module, but didnt understand how and where to configure the commands and which to use any examples or ideas? BR, Uri

Re: [SR-Users] Cflag is not getting updated.

2011-10-02 Thread Krishna Kurapati
I looked at the source code. Updating cflags seems straight forward. I even did upgrade of the kamailio to latest. The behavior is the same with the upgraded -the cflags in userlocation are not getting updated. Also, the received column is not being set either. Domain:: location table=512 records=