[Freeswitch-dev] PlayAndGetDigits backward compatibility
Hi I was trying to build my old scripts with latest revision in mod_managed and I found out PlayAndGetDigits takes one more argument: public string PlayAndGetDigits(int min_digits, int max_digits, int max_tries, int timeout, string terminators, string audio_files, string bad_input_audio_files, string digits_regex, string var_name, *int digit_timeout*); Isn't it possible to add an overload for backward compatibility? thanks
SWITCH_DECLARE(char *) playAndGetDigits(int min_digits, int max_digits, int max_tries, int timeout, char *terminators, char *audio_files, char *bad_input_audio_files, char *digits_regex, const char *var_name = NULL, int digit_timeout = 0); This is how it's declared in the c++ swig should pass this into its translation and fill in 0 when it's not specified. On Mon, Jan 3, 2011 at 6:03 AM, babak yakhchali <babak.freeswitch@gmail.com> wrote:
Hi I was trying to build my old scripts with latest revision in mod_managed and I found out PlayAndGetDigits takes one more argument: public string PlayAndGetDigits(int min_digits, int max_digits, int max_tries, int timeout, string terminators, string audio_files, string bad_input_audio_files, string digits_regex, string var_name, int digit_timeout); Isn't it possible to add an overload for backward compatibility? thanks _______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
thanx for the answer but there is only one prototype in FreeSWITCH.Managed.dll which needs the last parameter and because of this when someone links to dll, on building, an error comes up which says there is no overload which .... this is the only signature from FreeSWITCH.Managed.dll metadata: public string PlayAndGetDigits(int min_digits, int max_digits, int max_tries, int timeout, string terminators, string audio_files, string bad_input_audio_files, string digits_regex, string var_name, int digit_timeout);
participants (2)
-
Anthony Minessale
-
babak yakhchali