[SR-Users] modify FROM field in the "failure_route" block

Alex Balashov abalashov at evaristesys.com
Thu Mar 22 18:12:02 CET 2012


On 03/22/2012 01:00 PM, Robert R wrote:

> When I am trying to modify FROM field in the "failure_route" block I
> get an error message:
>
> failure_route[1]
> {
>     ...
> uac_replace_from("$avp(i:204)");
>     append_branch();
>     t_relay();
> }
>
> Not starting openser: invalid configuration file!
> Mar 22 10:51:39 [6457] CRITICAL:core:yyerror: parse error in config
> file, line 662, column 32-33: Command cannot be used in the block
> Mar 22 10:51:39 [6457] ERROR:core:main: bad config file (1 errors)

You can probably get around it this way:

failure_route[1]
{
    ...

    append_branch();

    route(STUFF);
    t_relay();
}


route[STUFF]
{
     uac_replace_from(...);
}

-- 
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Atlanta, GA 30030
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/



More information about the sr-users mailing list