int connect_server(struct jsonrpc_server *server)
{
struct sockaddr_in server_addr;
struct hostent *hp;
server_addr.sin_family = AF_INET;
server_addr.sin_port = htons(server->port);
Hard coded IPv4 in a product that has supported IPv6 since over 10 years? Tss tss.
Also, the timouts are hardcoded.
Maybe we should try to use CURL, like the utils module do and standardise the way Kamailio connect to HTTP servers. Having one http client may be beneficial, an http_client module.
The idea with suspend and restart transactions in another route block that json_rpc uses seems like a good idea also for the HTTP client functions in utils.
Just some thoughts after looking into the code, a Sunday evening brainstorm :-)
/O
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#336 - Kamailio: problem route
User who did this - Olle Johansson (oej)
----------
Please use the sr-users mailing list for support. This is a bug tracker where you report things when you think or know that the source code have problems or if you have additional source code you want incorporated.
I am sure you will get a lot of answers on the mailing list. Important is to learn the difference between Kamailio an a media server like Asterisk or FreeSwitch. Kamailio can not handle media or play prompts, but can forward the call to a media server that plays the prompt you want.
See you on the mailing list! Welcome to Kamailio!
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=336#comment1067
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task is now closed:
FS#336 - Kamailio: problem route
User who did this - Daniel-Constantin Mierla (miconda)
Reason for closing: Deferred
More information can be found at the following URL:
https://sip-router.org/tracker/index.php?do=details&task_id=336
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#336 - Kamailio: problem route
User who did this - Daniel-Constantin Mierla (miconda)
----------
The tracker is for bugs in kamailio c code or requests for new features. For configuration file questions and troubleshooting, use the mailing list sr-users(a)lists.sip-router.org (http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users).
For this particular case, look in syslog (/var/log/syslog or /var/log/messages) to see if there is any error message from kamailio. If not, start kamailio with debug=3 in config file, it will be lot more log messages. If you can't figure out what is wrong, then follow up on mailing list. I will close this item on tracker.
----------
More information can be found at the following URL:
https://sip-router.org/tracker/index.php?do=details&task_id=336#comment1066
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - camilo (Skamilo0)
Attached to Project - sip-router
Summary - Kamailio: problem route
Task Type - Feature Request
Category - Modules kamailio
Status - Unconfirmed
Assigned To -
Operating System - FreeBSD
Severity - Low
Priority - Normal
Reported Version - Development
Due in Version - Undecided
Due Date - Undecided
Details - Hello!
i am new in It, i speak spanish y very bad english, my problem is:
i want route to announcement when is busy or request timeout(486|408):
...
...
if(t_check_status("486|408")){
route(TEST);
exit;
}
route[TEST] {
setflag(1);
append_hf("P-App-Name: announcement\r\n");
rewritehostport("sip.inf.uct.cl:5080");
route("RELAY");
exit;
}
route[RELAY] {
if(is_method("ACK")) {
exec_msg("/bin/echo \" $$SIP_HF_FROM $$SIP_HF_TO $$SIP_RURI \" >> /home/kaminfo/llamadas.log");
...
...
this just to prove that routing works.
call with linphone and gives an error that says "I'm terribly sorry, server error occurred (6/SL).
Are you missing something in code?
Please help, is my final
Thank you.
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=336
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task is now closed:
FS#309 - ims_registrar_scscf: unexpected 200 OK response after calling assign_server_unreg()
User who did this - Camille Oudot (coudot)
Reason for closing: Fixed
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=309
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has been changed. The changes are listed below. For full information about what has changed, visit the URL and click the History tab.
FS#309 - ims_registrar_scscf: unexpected 200 OK response after calling assign_server_unreg()
User who did this: Camille Oudot (coudot)
Percent Complete: 0% -> 100%
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=309
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task is now closed:
FS#163 - enable milliseconds precision for accounting
User who did this - Daniel-Constantin Mierla (miconda)
Reason for closing: Implemented
Additional comments about closing: Implemented in master branch, given when time_mode=2 for acc module.
More information can be found at the following URL:
https://sip-router.org/tracker/index.php?do=details&task_id=163
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.