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

SourceForge.net noreply at sourceforge.net
Sun Sep 26 04:12:16 CEST 2010


Bugs item #3075732, was opened at 2010-09-26 10:12
Message generated for change (Tracker Item Submitted) made by pabs3
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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Paul Wise (pabs3)
Assigned to: Nobody/Anonymous (nobody)
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")

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

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