[OpenSIPS-Users] dlg_validate_dialog Error, help

Vlad Paiu vladpaiu at opensips.org
Thu Oct 11 11:35:45 CEST 2012


Hello,

The validate_dialog() and fix_route_dialog() functions are not currently 
allowed in branch_route.

But what are you trying to accomplish, more exactly ? The validation and 
fixing functions are meant to work on sequential requests, where you 
know the dialog end-points, so there is no need to call them on a 
per-branch basis.

Regards,

Vlad Paiu
OpenSIPS Developer
http://www.opensips-solutions.com

On 10/11/2012 12:35 PM, spady wrote:
> Hi Vlad, thanks for reply.
> I am trying to follow your hint but I get this error when I start Opensips:
>
> *Oct 11 10:29:45 opensips opensips: DBG:core:find_cmd_export_t: <has_totag>
> not found
> Oct 11 10:29:45 opensips opensips: DBG:core:find_cmd_export_t: found
> <has_totag>(0) in module uri
> [/usr/local/opensips_proxy/lib/opensips/modules/]
> Oct 11 10:29:45 opensips opensips: CRITICAL:core:yyerror: parse error in
> config file
> /usr/local/opensips_proxy/etc/opensips/opensips_residential_2012-6-11_14:13:47.CFG,
> line 532, column 17-18: Command cannot be used in the block#012
> Oct 11 10:29:45 opensips opensips: DBG:core:find_cmd_export_t: <loose_route>
> not found
> Oct 11 10:29:45 opensips opensips: DBG:core:find_cmd_export_t: found
> <loose_route>(0) in module rr
> [/usr/local/opensips_proxy/lib/opensips/modules/]
> Oct 11 10:29:45 opensips opensips: CRITICAL:core:yyerror: parse error in
> config file
> /usr/local/opensips_proxy/etc/opensips/opensips_residential_2012-6-11_14:13:47.CFG,
> line 533, column 21-22: Command cannot be used in the block#012
> Oct 11 10:29:45 opensips opensips: DBG:core:pv_lookup_spec_name: found in
> extra list [DLG_status]
> Oct 11 10:29:45 opensips opensips: DBG:core:find_cmd_export_t:
> <validate_dialog> not found
> Oct 11 10:29:45 opensips opensips: DBG:core:find_cmd_export_t: found
> <validate_dialog>(0) in module dialog
> [/usr/local/opensips_proxy/lib/opensips/modules/]
> Oct 11 10:29:45 opensips opensips: CRITICAL:core:yyerror: parse error in
> config file
> /usr/local/opensips_proxy/etc/opensips/opensips_residential_2012-6-11_14:13:47.CFG,
> line 535, column 34-35: Command cannot be used in the block#012
> Oct 11 10:29:45 opensips opensips: DBG:core:find_cmd_export_t:
> <fix_route_dialog> not found
> Oct 11 10:29:45 opensips opensips: DBG:core:find_cmd_export_t: found
> <fix_route_dialog>(0) in module dialog
> [/usr/local/opensips_proxy/lib/opensips/modules/]
> Oct 11 10:29:45 opensips opensips: CRITICAL:core:yyerror: parse error in
> config file
> /usr/local/opensips_proxy/etc/opensips/opensips_residential_2012-6-11_14:13:47.CFG,
> line 536, column 34-35: Command cannot be used in the block#012
> *
>
>
> Here is the code:
>
>
> branch_route[2] {	
> 	if (is_method("INVITE") && is_audio_on_hold()){
> 		if (has_totag()) {
>          loose_route();
>          if ($DLG_status!=NULL)
>              if (!validate_dialog())
>                  fix_route_dialog();
>                     }
>   	         set_dlg_flag("7");
>   	  } else {
>   	  	       if (is_method("INVITE")){
>   	  	     	reset_dlg_flag("7");
>   	          }
>   	        }
> 	 	if (is_dlg_flag_set("7") && (status=="200")){
>   	        replace_body("a=sendrecv.","a=inactive");
> 	      }
> 	    xlog("new branch at $ru\n");
>       }
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/dlg-validate-dialog-Error-help-tp7582200p7582206.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list