Browse code

fixups: call them even for 0 params. functions

- kamailio compatibility: fixups for function with no parameters
can be used

Andrei Pelinescu-Onciul authored on 21/11/2008 10:49:48
Showing 1 changed files
... ...
@@ -512,6 +512,11 @@ static int fix_actions(struct action* a)
512 512
 				if (cmd && cmd->c.fixup) {
513 513
 					int i;
514 514
 					DBG("fixing %s()\n", cmd->c.name);
515
+					if (t->val[1].u.number==0) {
516
+						ret = cmd->c.fixup(0, 0);
517
+						if (ret < 0)
518
+							return ret;
519
+					}
515 520
 					/* type cast NUMBER to STRING, old modules may expect
516 521
 					 * all STRING params during fixup */
517 522
 					for (i=0; i<t->val[1].u.number; i++) {