Hello,
I'm using Kamailio 1.5.3. I configured it in a proxy mode. I would like to know what is the best way to forward the SIP message to a C application via a socket, block kamailio.cfg script, and reforward it to kamailio to continue his treatment.
I found a ugly bay using PV as lock with a while loop, but this solution is not acceptable for me. I saw SEAS module, but it is only for Java Application server.
Do you know a simple way to do it with an existing module ? Do I have to write my own module ?
Thanks for your response, Regards,
El Miércoles, 2 de Diciembre de 2009, Olivier Détour escribió:
I saw SEAS module, but it is only for Java Application server.
SEAS is a protocol to communicate with OpenSer/Kamailio. If you develop a SEAS client, in any language, then you can use SEAS protocol to communicate with OpenSer/Kamailio and route messages through SEAS.
Hello,
I'm using Kamailio 1.5.3. I configured it in a proxy mode. I would like to know what is the best way to forward the SIP message to a C application via a socket, block kamailio.cfg script, and reforward it to kamailio to continue his treatment.
I found a ugly bay using PV as lock with a while loop, but this solution is not acceptable for me. I saw SEAS module, but it is only for Java Application server.
Do you know a simple way to do it with an existing module ? Do I have to write my own module ?
Thanks for your response, Regards,
-- Olivier Détour EPITA 2009
El Jueves, 3 de Diciembre de 2009, Olivier Détour escribió:
Hello,
I'm using Kamailio 1.5.3. I configured it in a proxy mode. I would like to know what is the best way to forward the SIP message to a C application via a socket, block kamailio.cfg script, and reforward it to kamailio to continue his treatment.
Hi, please don't send duplicate mails. You already got a response for your first mail.
On Thu, Dec 3, 2009 at 2:18 PM, Iñaki Baz Castillo ibc@aliax.net wrote:
El Jueves, 3 de Diciembre de 2009, Olivier Détour escribió:
Hello,
I'm using Kamailio 1.5.3. I configured it in a proxy mode. I would like to know what is the best way to forward the SIP message to a C application via a socket, block kamailio.cfg script, and reforward it to kamailio to continue his treatment.
Hi, please don't send duplicate mails. You already got a response for your first mail.
Sorry for the duplicate mail. I try to use SEAS module, but I don't understand how to connect Kamailio on my program. In Kamailio's conf, I wrote something like that:
... modparam("seas", "listen_sockets","127.0.0.1:5080") ... if (!as_relay_t("app_server_1")) { log("Error sending to app server"); t_reply("500","App Server not connected"); } ...
I wrote a little C program to connect on 5080 and 5081. Connection works, but when a SIP message passes through Kamailio, I get a 500 error. I have to install application server but I can't do it.
So could you redirect me to a good documentation to do something like if you think it is possible.
Thanks, Regards,
El Jueves, 3 de Diciembre de 2009, Olivier Détour escribió:
On Thu, Dec 3, 2009 at 2:18 PM, Iñaki Baz Castillo ibc@aliax.net wrote:
El Jueves, 3 de Diciembre de 2009, Olivier Détour escribió:
Hello,
I'm using Kamailio 1.5.3. I configured it in a proxy mode. I would like to know what is the best way to forward the SIP message to a C application via a socket, block kamailio.cfg script, and reforward it to kamailio to continue his treatment.
Hi, please don't send duplicate mails. You already got a response for your first mail.
Sorry for the duplicate mail. I try to use SEAS module, but I don't understand how to connect Kamailio on my program. In Kamailio's conf, I wrote something like that:
... modparam("seas", "listen_sockets","127.0.0.1:5080") ... if (!as_relay_t("app_server_1")) { log("Error sending to app server"); t_reply("500","App Server not connected"); } ...
I wrote a little C program to connect on 5080 and 5081. Connection works, but when a SIP message passes through Kamailio, I get a 500 error. I have to install application server but I can't do it.
So could you redirect me to a good documentation to do something like if you think it is possible.
Sorry, I've no experience on it.