summaryrefslogtreecommitdiff
path: root/FS/FS/part_export/freeswitch.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-07-22 11:52:22 -0700
committerIvan Kohler <ivan@freeside.biz>2013-07-22 11:52:22 -0700
commit4d81e21107622f8731a6301c3c811108840582fd (patch)
tree1ba3e9be4969d7877695742c0208983b381d7836 /FS/FS/part_export/freeswitch.pm
parent3107476389f090334fe1d92df6fab68c366408b4 (diff)
nibblebill integrateion, RT#19587
Diffstat (limited to 'FS/FS/part_export/freeswitch.pm')
-rw-r--r--FS/FS/part_export/freeswitch.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/FS/FS/part_export/freeswitch.pm b/FS/FS/part_export/freeswitch.pm
index ff0d243..291130f 100644
--- a/FS/FS/part_export/freeswitch.pm
+++ b/FS/FS/part_export/freeswitch.pm
@@ -136,8 +136,13 @@ sub freeswitch_template_fillin {
DELIMITERS => [ '<%', '%>' ],
);
+ my $cust_pkg = $svc_phone->cust_svc->cust_pkg;
+ my $nibble_rate = $cust_pkg ? $cust_pkg->part_pkg->option('nibble_rate')
+ : '';
+
#false lazinessish w/phone_shellcommands::_export_command
my %hash = (
+ 'nibble_rate' => $nibble_rate,
map { $_ => $svc_phone->getfield($_) } $svc_phone->fields
);