[Kamailio-Users] Stateless forward

Daniel-Constantin Mierla miconda at gmail.com
Tue Feb 9 10:51:22 CET 2010


Hello,

On 2/9/10 10:35 AM, Antonio Reale wrote:
> 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");
> ...
>    
This one should work:

route {
         rewritehost("192.168.10.1");
         forward();
}

If you don't want to change the r-uri:

$du = "sip:192.168.10.1:5060";
forward();


The forward in 3.0 has a slightly different parameters format than 
1.5.x. Docs should be updated and I will try to add backward 
compatibility alternative.

Cheers,
Daniel
> 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.
>
>    

-- 
Daniel-Constantin Mierla
eLearning class for Kamailio 3.0.0
* http://www.asipto.com/





More information about the sr-users mailing list