Re: [SR-Users] How to run MySQL queries in Kamailio

2016-04-28 Thread SamyGo
Hi Fuad, I think you should put the db return value in am avp before using it in the sl_send_reply. $avp(ip) = $avp(ra=>ip) Or whatever the syntax is. Make sure that the DB query is returning the required value. Also I guess just using a 302 is not enough and you need to set the proper contact

Re: [SR-Users] dlg_bridge

2016-04-28 Thread huseyin kalyoncu
Hello Daniel After all Kamailio was not calling set_contact_alias on reply received from itself. So in reply_route block calling following code resolved the issue. if (src_ip == "KAMAILIO_IP_ADDRESS" && status == "200") { if ($fU == "click2call") {

[SR-Users] How to run MySQL queries in Kamailio

2016-04-28 Thread Ahmad Fuad
Dear Support, Kindly find below my Database Table (kamailio.ext). Column names are "ext" and "ip" mysql> select * from ext -> ; +--++ | ext | ip | +--++ | 202 | 192.168.55.157 | | 203 | 192.168.55.158 | | 204 | 192.168.55.159 |

Re: [SR-Users] kamailio-radius RPM for Centos

2016-04-28 Thread Antonio Reale
Thanks Daniel, just completed the building of all Centos and Redhat rpms with RADIUS support. Regards, Antonio. Il 28/04/2016 17:46, Daniel-Constantin Mierla ha scritto: Hello, thanks for pursuing further on this! I granted you (user r4ndomx) access to kamailio project on opensuse build

Re: [SR-Users] dlg_bridge

2016-04-28 Thread huseyin kalyoncu
Hello Daniel I forgot to mention when I sent the capture file. There is only single Kamailio instance running but It listens multiple ports. 5090 for outside traffic and 5060 for inside traffic (other Kamailio servers, FS servers, etc.) On Wed, Apr 27, 2016 at 7:49 PM, huseyin kalyoncu

Re: [SR-Users] kamailio-radius RPM for Centos

2016-04-28 Thread Daniel-Constantin Mierla
Hello, thanks for pursuing further on this! I granted you (user r4ndomx) access to kamailio project on opensuse build service. You can make there the same setting as you did for your repo to get the radius packages built. Let me know if you need anything else. Cheers, Daniel On 27/04/16

Re: [SR-Users] fetch data from Mysql Using Kamailio

2016-04-28 Thread Alberto Sagredo
Hi. Try something like this $var(valor)=0; $var(valor) = $dbr(ra=>[0,0]); Use $var(valor) for that purpose. I will check address table if you plan to use some ip authentication or similar. Its more powerful if you are looking for that BR 2016-04-28 16:19 GMT+02:00 Shahid Mehmood

Re: [SR-Users] fetch data from Mysql Using Kamailio

2016-04-28 Thread Shahid Mehmood
Thanx ur kind reply sql_query("cb", "select ip from ext where ext='$rU'", "ra"); $var(a)= sql_result_free("ra"); i have an other question . how i get data return from sql query. i get 1 from sql_result_free("ra"); i need ip address like below mysql> select ip from ext where ext=202 -> ;

Re: [SR-Users] fetch data from Mysql Using Kamailio

2016-04-28 Thread Alberto Sagredo
Just a point . Its not needed to resend same email every day. Will try to do the best with mailing list, but sometimes we are ill, occupied.. or just do not know what to answer.. BR 2016-04-27 16:18 GMT+02:00 Shahid Mehmood : > Dear All, > i am getting error

Re: [SR-Users] fetch data from Mysql Using Kamailio

2016-04-28 Thread Alberto Sagredo
Ups Sorry #!ifdef WITH_MYSQL loadmodule "db_mysql.so" #!endif modparam("sqlops","sqlcon","cb=>mysql://root:pass@IP/kamailio") if($rU=~"^1[0-9][0-9]$") { sql_query("cb", "select asterisk from x where extension='$rU'","valora"); sql_result_free("valora"); } With no issues.. Any error on mysql¿

Re: [SR-Users] Kamailio IMS_QOS

2016-04-28 Thread Jason Penton
Hi José Ivailo is correct here, you need to have p-cscf *be* the SBC or at least sit in front of one if it is not the SBC. If not you will effectively be sending "junk" to the PCRF and it will be impossible for it to signal the correct setup of bearers between UE and P-CSCF/SBC. Then, re. youre

Re: [SR-Users] Kamailio IMS_QOS

2016-04-28 Thread José Seabra
Hi Ivo, That answers to my doubts. Thank you Regards José 2016-04-27 23:22 GMT+01:00 Ivailo Dobrev : > Hi Jose, > > Framed IP or some king of hashing over IP/identitiy/APN... is used from > PCRF for session binding. If I understand question right the short answer > is

Re: [SR-Users] set_body_multipart and memory leak

2016-04-28 Thread Sergey Basov
Hi Daniel. I have create pool request as you have proposed. https://github.com/kamailio/kamailio/pull/587 After this patches problem with memory leak was solved for me. Thank you. -- Best regards, Sergey Basov e-mail: sergey.v.ba...@gmail.com tel: (+38067) 403-62-54

Re: [SR-Users] Kamailio IMS_QOS

2016-04-28 Thread Ivailo Dobrev
Hi Jose, Framed IP or some king of hashing over IP/identitiy/APN... is used from PCRF for session binding. If I understand question right the short answer is that reservation from PCRF is made by Media-Component-Description not by framed IP address. In your architecture if Kamailio instance