[Kamailio-Users] Stateless forward

Antonio Reale ant.reale at gmail.com
Tue Feb 9 10:35:26 CET 2010


Hi all,
I'm trying to setup a very basic scenario with kamailio 3.0. It is
placed in front of a softswitch and it has to modify some headers
before forward (stateless) messages to softswitch.
If I use
route {
        rewritehost("192.168.10.1");
        t_relay();
}

all work, but if I want to do that stateless and I use forward() or
send() instead of t_relay(), I get a syntax error:
"bad forward argument" or "bad send argument". If I use
...
forward("udp:192.168.10.1:5060");
...

I see in the log
/usr/local/sbin/kamailio[3675]: : <core> [proxy.c:271]: ERROR:
mk_proxy: could not resolve hostname: "udp:192.168.10.1:5060"
/usr/local/sbin/kamailio[3675]: ERROR: <core> [route.c:1026]: fixing
failed (code=-478) at cfg:/usr/local/etc/kamailio/kamailio.cfg:77
Same error using the long format of send() function.

I can't see any particular hint on the documentation, what I'm missing?

Thank you. Best regards.

-- 
Antonio




More information about the sr-users mailing list