[Serdev] [BUG] Closed: (SER-101) Converting function parameters: sr_module.h: fix_param()

Jan Janak (JIRA) serdev at lists.iptel.org
Tue Apr 11 13:14:00 UTC 2006


     [ http://bugs.sip-router.org/browse/SER-101?page=history ]
     
Jan Janak closed SER-101:
-------------------------

     Resolution: Fixed
    Fix Version: HEAD

> Converting function parameters: sr_module.h: fix_param()
> --------------------------------------------------------
>
>          Key: SER-101
>          URL: http://bugs.sip-router.org/browse/SER-101
>      Project: SIP Express Router
>         Type: Improvement
>   Components: core
>     Versions: HEAD
>     Reporter: Tomas Mandys
>     Assignee: Jan Janak
>     Priority: Minor
>      Fix For: HEAD

>
> I suggest that fix_param() should be modified to allow integer/string overloading, i.e. when FPARAM_INT and string is not number then 1 should be returned, not ERR. 
> Ex:
>     ret = fix_param(FPARAM_AVP, param);
>     if (ret <= 0) return ret;		
>     ret=  fix_param(FPARAM_INT, param);
>     if (ret <= 0) return ret;		
>     return fix_param(FPARAM_ASCIIZ, param);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://bugs.sip-router.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira




More information about the Serdev mailing list