Hello,
could you please update the core cookbook for Kamailio release 4.0.0?
The core functions "send" and "send_tcp" are including wrong examples of
usage (since many previous versions....). You have written the example
send("10.10.10.10:5070");
which is representing a socket, but not a hostname. However, caused by
the double quote it is interpreted as a hostname and kamailio is trying
to resolve that string. As it is (mostly) not resolvable, kamailio
cannot start. Many newbies are having a problem with this fault. I guess
forward() and its variations will have the same problem, when a target
is added within the brackets (instead of using pseudo variables).
I recommend adding a second example - one for an ip address based target
and one for a domain target with correct forms e.g.
send(10.10.10.10, 5070);
send("kamailio.org");
thanks
Klaus
-------- Original-Nachricht --------
Betreff: kamailio doc update
Datum: Tue, 15 Jan 2013 14:50:14 +0000
Von: FEICHTINGER Klaus <[email protected]>
An: Klaus Feichtinger ([email protected])
<[email protected]>
Please update CORE Cookbook
*send*
Send the original SIP message to a specific destination in stateless
mode. No changes are applied to received message, no Via header is
added. Host can be an IP or hostname. Used protocol: UDP
Parameter is mandatory and has string format.
Example of usage:
send("10.10.10.10:5070");
Is not a valid example. Correct would be:
send(10.10.10.10, 5070); for IP address + port
or
send("myHost.com");
_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev