Hello,
it has to be an update anyhow, the functions were moved to corex module
to allow variables as parameters. I think now it can be host:port.
Cheers,
Daniel
On 1/15/13 8:33 PM, Klaus Feichtinger wrote:
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 <Klaus.FEICHTINGER(a)frequentis.com>
An: Klaus Feichtinger (klaus.feichtinger(a)inode.at)
<klaus.feichtinger(a)inode.at>
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
sr-dev(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
--
Daniel-Constantin Mierla -
http://www.asipto.com
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio World Conference, April 16-17, 2013, Berlin
-
http://conference.kamailio.com -