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=4d81e21107622f8731a6301c3c811108840582fd;hpb=3107476389f090334fe1d92df6fab68c366408b4 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 );