[sr-dev] kamailio core-cookbook update request for stateless core functions "send" and "forward"
Daniel-Constantin Mierla
miconda at gmail.com
Thu Jan 17 10:08:04 CET 2013
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 at frequentis.com>
> An: Klaus Feichtinger (klaus.feichtinger at inode.at)
> <klaus.feichtinger at 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 at 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 -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20130117/31ae7b8b/attachment.htm>
More information about the sr-dev
mailing list