Hi, by the way: What version of OpenSER are you using? "Not starting openser: invalid configuration file!"
Maybe you should upgrade to a more recent Kamailio Version, that might solve the problem as well. Carsten 2012/3/22 Daniel-Constantin Mierla <mico...@gmail.com>: > Hello, > > On 3/22/12 3:59 PM, Robert R wrote: > > Hi, > > 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) > > It seems "uac_replace_from()" can not be used in the "failure_route" block. > What's the correct way to modify (appending a tag) FROM field in the > "failure_route" block? > > do you mean appending a tag parameter to From header? This is a risky > operation in the first place. uac_replace_from() does not operate on tag > parameter, is for display name and uri part of From header. > > Ways to play with any kind of header are provided by textops module, like > search and replace, remove header, add header ... > > Cheers, > Daniel > > -- > Daniel-Constantin Mierla > Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany > http://www.asipto.com/index.php/kamailio-advanced-training/ > > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list > sr-users@lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > -- Carsten Bock CEO (Geschäftsführer) ng-voice GmbH Schomburgstr. 80 D-22767 Hamburg / Germany http://www.ng-voice.com mailto:cars...@ng-voice.com Mobile +49 179 2021244 Office +49 40 34927219 Fax +49 40 34927220 Sitz der Gesellschaft: Hamburg Registergericht: Amtsgericht Hamburg, HRB 120189 Geschäftsführer: Carsten Bock Ust-ID: DE279344284 Hier finden Sie unsere handelsrechtlichen Pflichtangaben: http://www.ng-voice.com/imprint/ -- Meet ng-voice at LinuxTag 2012 in Berlin - May 23rd - 26th, 2012. Save the date! _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users