From f5422833fbb42149d3a47450d863f0e5e1d29c6b Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Sun, 3 Jun 2018 10:46:54 +0200 Subject: [PATCH] corex: docs - send() updated to send_udp() - example for send_tcp() --- src/modules/corex/doc/corex_admin.xml | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/src/modules/corex/doc/corex_admin.xml b/src/modules/corex/doc/corex_admin.xml index bee0ec4791c..346ecf20199 100644 --- a/src/modules/corex/doc/corex_admin.xml +++ b/src/modules/corex/doc/corex_admin.xml @@ -205,9 +205,9 @@ modparam("corex", "msg_avp", "$avp(msg)") -
+
- <function moreinfo="none">send([ host [ :port ] ])</function> + <function moreinfo="none">send_udp([ host [ :port ] ])</function> Send the original SIP message to a specific destination in stateless @@ -228,13 +228,13 @@ modparam("corex", "msg_avp", "$avp(msg)") This function can be used from REQUEST_ROUTE or FAILURE_ROUTE. - <function>send</function> usage + <function>send_udp</function> usage ... - send(); - send("10.20.15.10"); - send("sip.example.com:5070"); - send("$var(res)"); + send_udp(); + send_udp("10.20.15.10"); + send_udp("sip.example.com:5070"); + send_udp("$var(res)"); ... @@ -245,10 +245,21 @@ modparam("corex", "msg_avp", "$avp(msg)") send_tcp([ host [ :port ] ]) - This function is identical to send() + This function is identical to send_udp() described above, except that it sends the SIP message using the TCP protocol instead of UDP. + + <function>send_tcp</function> usage + +... + send_tcp(); + send_tcp("10.20.15.10"); + send_tcp("sip.example.com:5070"); + send_tcp("$var(res)"); +... + +