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=90a2b0469a41ff4a6b95fa0f0ff357c2bb78cbc8;hb=5372897f367498972c96f5494e142e6e11b29eb8;hpb=7ee4bace7200b1ff7b2510c45a08c8a77bd714e0 diff --git a/FS/FS/part_export/freeswitch_multifile.pm b/FS/FS/part_export/freeswitch_multifile.pm index 90a2b0469..972ea24e1 100644 --- a/FS/FS/part_export/freeswitch_multifile.pm +++ b/FS/FS/part_export/freeswitch_multifile.pm @@ -26,6 +26,8 @@ tie my %options, 'Tie::IxHash', + + @@ -121,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 );