Hello,

can you provide here all the http_client_query(...) you have in your config and list in which route block are they used (like request_route, failure_route, ...)? You can replace IP addresses, usernames, passwords with other strings, but if you use any kamailio variables (e.g. $rU), let them in place.

Cheers,
Daniel

On 23.11.17 20:54, Alexandru Covalschi wrote:
sip:172.21.0.14:5060 is the local address of the server, it seems like a bug in http_client, as I don't have such http_query call anywhere :/ 
just re-checked
Also the fact that it works perfectly on 4.4.6 tells that it's not a configuration issue

________________________________
Alexandru Covalschi
VoIP Engineer and System Administrator
tel: +373 673 98 493

23 нояб. 2017 г., в 16:59, Daniel-Constantin Mierla <miconda@gmail.com> написал(а):

There was a mistake in the exports structure, the name of the function with 4 parameter was http_query instead of http_client_query. I pushed a patch to fix it.

Then, related to the issue with cannot resolve the host, the debug messages show an invalid http url being used:

Nov 21 04:18:20 ast1 /usr/sbin/kamailio[20804]: DEBUG: http_client [functions.c:146]: curL_query_url(): ****** ##### CURL URL [sip:172.21.0.14:5060]

The it fails to do the dns stuff with it...

Cheers,
Daniel

On 22.11.17 22:38, Alexandru Covalschi wrote:
Just wanted to ask if you need my help to test/check/etc.

________________________________
Alexandru Covalschi
VoIP Engineer and System Administrator
tel: +373 673 98 493

21 нояб. 2017 г., в 11:58, Alexandru Covalschi <568691@gmail.com> написал(а):

Kamailio is actually starting, please take a look at that debug=4 log file: https://filebin.net/r54y3jkmzdyk9zak/syslog_http_client_query_failed.txt
at line 1042 http_client module is successfully loading, but at line 12785 it fails to load http_client_query

Also please check line 50385 in https://filebin.net/352vff41fwx7uowg/syslog_http_query_curl_6.txt 
I'm using http_query here with 5.0.4 http_client, you can see that http_client makes a request, but afterwards it returns curl error 6, but the weirdest thing is - at line 19887 I request token from the very same IP address, only url is changed, and it actually works fine.
________________________________
Alexandru Covalschi
VoIP Engineer and System Administrator
tel: +373 673 98 493

21 нояб. 2017 г., в 10:44, Daniel-Constantin Mierla <miconda@gmail.com> написал(а):

But then kamailio is not starting, or?

Can you provide all the error message as they are printed in syslog file? File, line and other details are part of the logs message, allowing to identify the location in the source code where that happens ...

Cheers,
Daniel


On 21.11.17 09:38, Alexandru Covalschi wrote:
It is still one of the issues

________________________________
Alexandru Covalschi
VoIP Engineer and System Administrator
tel: +373 673 98 493

21 нояб. 2017 г., в 9:40, Daniel-Constantin Mierla <miconda@gmail.com> написал(а):

Hello,

in your email in this thread, you said:

> When I try to change http_query to http_client_query it fails to load with  error "failed to find command http_client_query".

Is it still the case, or that was sorted out?

Cheers,
Daniel

On 20.11.17 22:43, Alexandru Covalschi wrote:
Works ok on 4.4.6. So I suppose it's a weird 5.0.4 + my environment bug. I'm rolling back to 4.4.6 right now, will keep one 5.0.4 machine for testing (on debian 9)
Let me know if I can provide any dumps/cores etc.

________________________________
Alexandru Covalschi
VoIP Engineer and System Administrator
tel: +373 673 98 493

20 нояб. 2017 г., в 23:29, Alexandru Covalschi <568691@gmail.com> написал(а):

So the weirdest thing is Kamailio actually sends the request, but it returns curl error 6 in the answer variable. I have a plenty of clonned servers and same behaviour is on all of them, also just now tried on a fresh debian 9 - same result. I'm inside a virtual machine (vmware), but not sure it matters...

________________________________
Alexandru Covalschi
VoIP Engineer and System Administrator
tel: +373 673 98 493

20 нояб. 2017 г., в 22:37, Alexandru Covalschi <568691@gmail.com> написал(а):

I often get WARNING: http_client [functions.c:281]: curL_query_url(): Couldn't resolve host, while I don't even use hostnames. 
After I changed IP address to hostname (which I've added into /etc/hosts) nothing changed. It seems like a weird bug, but I've no idea - is it CURL or kamailio, but when I execute curl from shell it is working fine. I have google dns in resolve.conf and nslookup is also working ok.
Can anyone help me with that?

________________________________
Alexandru Covalschi
VoIP Engineer and System Administrator
tel: +373 673 98 493

20 нояб. 2017 г., в 22:06, Alexandru Covalschi <568691@gmail.com> написал(а):

t





_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com


-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com



-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com


-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com