[OpenSIPS-Users] launch() and rest_get()
Callum Guy
callum.guy at x-on.co.uk
Tue Oct 1 04:30:17 EDT 2019
Hi All,
I wanted to report the following behaviour in 3.0 - launch wrapping
rest_get does not continue execution:
route {
xlog("L_INFO", "INFO: LAUNCHING.....! \n");
rest_get("https://www.google.com", $avp(response_body));
xlog("L_INFO", "INFO: LAUNCHED.....!!!! \n");
}
2019-10-01T09:25:51.030715+01:00 FR-P-SIPREG-1 opensips[78990]: INFO:
LAUNCHING.....!
2019-10-01T09:25:51.342875+01:00 FR-P-SIPREG-1 opensips[78990]: INFO:
LAUNCHED.....!!!!
2019-10-01T09:25:51.485666+01:00 FR-P-SIPREG-1 opensips[78992]: INFO:
LAUNCHING.....!
2019-10-01T09:25:51.806213+01:00 FR-P-SIPREG-1 opensips[78992]: INFO:
LAUNCHED.....!!!!
route {
xlog("L_INFO", "INFO: LAUNCHING.....! \n");
launch(rest_get("https://www.google.com", $avp(response_body)));
xlog("L_INFO", "INFO: LAUNCHED.....!!!! \n");
}
2019-10-01T09:26:05.485315+01:00 FR-P-SIPREG-1 opensips[79100]: INFO:
LAUNCHING.....!
2019-10-01T09:26:06.726854+01:00 FR-P-SIPREG-1 opensips[79103]: INFO:
LAUNCHING.....!
# *opensips -V*
version: opensips 3.0.0 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC,
F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
main.c compiled on 13:02:44 May 30 2019 with gcc 4.8.5
This can be avoided simply by using async however I don't believe this to
be the correct bahviour?
Many thanks,
Callum
--
*0333 332 0000 | www.x-on.co.uk <http://www.x-on.co.uk> | **
<https://www.linkedin.com/company/x-on> <https://www.facebook.com/XonTel>
<https://twitter.com/xonuk> *
X-on
is a trading name of Storacall
Technology Ltd a limited company registered in
England and Wales.
Registered Office : Avaland House, 110 London Road, Apsley, Hemel
Hempstead,
Herts, HP3 9SD. Company Registration No. 2578478.
The
information in this e-mail is confidential and for use by the addressee(s)
only. If you are not the intended recipient, please notify X-on immediately
on +44(0)333 332 0000 and delete the
message from your computer. If you are
not a named addressee you must not use,
disclose, disseminate, distribute,
copy, print or reply to this email. Views
or opinions expressed by an
individual
within this email may not necessarily
reflect the views of X-on
or its associated companies. Although X-on routinely
screens for viruses,
addressees should scan this email and any attachments
for
viruses. X-on
makes no representation or warranty as to the absence of viruses
in this
email or any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20191001/2e868a91/attachment-0001.html>
More information about the Users
mailing list