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=105ff02e1e900188f4c948422696a15b7b590e34;hb=5372897f367498972c96f5494e142e6e11b29eb8;hpb=cb51da1d9c3e75e1319705a5a2ed2d881c986ec4 diff --git a/FS/FS/part_export/freeswitch_multifile.pm b/FS/FS/part_export/freeswitch_multifile.pm index 105ff02e1..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', + + @@ -60,7 +62,7 @@ sub _export_insert { my $svcnum = $svc_phone->svcnum; my $fh = new File::Temp( - TEMPLATE => "$tempdir/freeswitch.$svcnum.XXXXXXXX", + TEMPLATE => "freeswitch.$svcnum.XXXXXXXX", DIR => $tempdir, #UNLINK => 0, ); @@ -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 );