X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Ffreeswitch_multifile.pm;h=972ea24e19208b1018a5bf4cc603a89fc939c8c8;hp=7f79a0e68a65ef364c41ff45e099cd9f3b177042;hb=5372897f367498972c96f5494e142e6e11b29eb8;hpb=91dbe4c3834f38d428367d9a1e2c6cf9ea9d84a4 diff --git a/FS/FS/part_export/freeswitch_multifile.pm b/FS/FS/part_export/freeswitch_multifile.pm index 7f79a0e68..972ea24e1 100644 --- a/FS/FS/part_export/freeswitch_multifile.pm +++ b/FS/FS/part_export/freeswitch_multifile.pm @@ -123,9 +123,14 @@ sub freeswitch_template_fillin { || $svc_phone->domain || '$${sip_profile}'; + 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 = ( - 'domain' => $domain, + 'domain' => $domain, + 'nibble_rate' => $nibble_rate, map { $_ => $svc_phone->getfield($_) } $svc_phone->fields );