[OpenSIPS-Devel] [ opensips-Bugs-3075732 ] dialplan module rejects large numbers

SourceForge.net noreply at sourceforge.net
Mon Sep 27 11:49:28 CEST 2010


Bugs item #3075732, was opened at 2010-09-26 05:12
Message generated for change (Comment added) made by anca_vamanu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3075732&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Paul Wise (pabs3)
>Assigned to: Anca Vamanu (anca_vamanu)
Summary: dialplan module rejects large numbers

Initial Comment:
The dpid variable in the dialplan module is an int but the parsing for the id parameter of the dp_translate function and mi command uses a function (str2s) that only allows unsigned shorts. Please switch to str2sint so that these can use full int values. Patch attached.

I'm working around this by doing the following:

$var(dp) = 200000000;
dp_translate("$var(dp)","$rU/$rU")

Instead of just this:

dp_translate("200000000","$rU/$rU")

----------------------------------------------------------------------

>Comment By: Anca Vamanu (anca_vamanu)
Date: 2010-09-27 12:49

Message:
Hi Paul,

Thank you for the report and suggestion, I have fixed it, but modified a
bit the patch ( str2sint receives different parameters). I have made the
changes both in trunk and 1.6.

Thanks and regards,
Anca

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3075732&group_id=232389



More information about the Devel mailing list