RPC::XML::Server switched from add_proc to add_procedure in version 0.75.
This patch fixes the following error:
eg-pbx-mediator.pl will not run and returns an error:
Can't locate object method "add_proc" via package "RPC::XML::Server::new:
Signed-off-by: Josh Stompro <stomproj@larl.org>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
# ~ any other datatypes are for INCOMING args
#
- $server->add_proc({
+ $server->add_procedure({
name => 'inject', code => \&inject, signature => ['struct string', 'struct string string', 'struct string string int']
});
- $server->add_proc({
+ $server->add_procedure({
name => 'get_failures',
code => \&get_failures,
signature => ['array']
});
- $server->add_proc({
+ $server->add_procedure({
name => 'ack_failures',
code => \&ack_failures,
signature => ['int array']
});
- $server->add_proc({
+ $server->add_procedure({
name => 'set_holidays',
code => \&set_holidays,
signature => ['int array']