Bug 13029: Allow to pass additional parameters to SMS::Send drivers
authorJulian Maurice <julian.maurice@biblibre.com>
Mon, 6 Oct 2014 13:04:12 +0000 (15:04 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 16 Dec 2016 11:33:39 +0000 (11:33 +0000)
commitd6d16e90dab280188e9a1a3b1466a5e6a9139fae
treea450beeba40333c5441992110337f8473c467b9d
parent1bfcebfb7fa0837428fb577a6fc059886fe37afb
Bug 13029: Allow to pass additional parameters to SMS::Send drivers

C4::SMS::send_sms now reads a YAML file and pass all parameters in the
file to SMS::Send::new.

The config file is read in <installdir>/etc/sms/driver/<driver>.yaml.
For instance, if the driver used is SMS::Send::UK::Kapow, the config
file has to be in <installdir>/etc/sms/driver/UK/Kapow.yaml

A underscore character is prepended to all parameter names so they are
treated as driver-specific options (leading underscore must not appear
in config file).

Signed-off-by: Magnus Enger <magnus@libriotech.no>

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/SMS.pm