now that the send function issue got resolved, i tried core forward
function. core cookbook tells:
forward
Forward the SIP request to the given destination in stateless mode. This
has the format of [proto:]host[:port]. Host can be an IP or hostname;
supported protocols are UDP, TCP and TLS. (For TLS, you need to compile
the TLS support into core). If proto or port are not specified, NAPTR
and SRV lookups will be used to determine them (if possible).
If destination parameter is missing, the forward will be done based on RURI.
Example of usage:
forward("10.0.0.10:5060");
#or
forward();
i then went i tried
forward("tcp:192.98.102.20:5070");
but got errors from that line:
Apr 7 13:52:10 siika /usr/sbin/sip-proxy[22923]: : <core> [proxy.c:278]: ERROR:
mk_proxy: could not resolve hostname: "tcp:192.98.102.20:5070"
Apr 7 13:52:10 siika /usr/sbin/sip-proxy[22923]: ERROR: <core> [route.c:1214]:
fixing failed (code=-478) at cfg:/etc/sip-proxy/sip-proxy.cfg:1584
i also tried with
forward_tcp("192.98.102.20:5070");
but it didn't help either:
Apr 7 13:54:24 siika /usr/sbin/sip-proxy[23056]: : <core> [proxy.c:278]: ERROR:
mk_proxy: could not resolve hostname: "192.98.102.20:5070"
Apr 7 13:54:24 siika /usr/sbin/sip-proxy[23056]: ERROR: <core> [route.c:1214]:
fixing failed (code=-478) at cfg:/etc/sip-proxy/sip-proxy.cfg:1584
how should core cookbook be fixed this time?
-- juha