Changeset 5981
- Timestamp:
- 07/10/08 17:15:06 (6 months ago)
- Files:
-
- modules/branches/2.5/core/functions.inc.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.5/core/functions.inc.php
r5968 r5981 1492 1492 $context = 'macro-systemrecording'; 1493 1493 1494 //exten => s,1,Set(RECFILE=${IF($["${ARG2}" = ""]?/tmp/${AMPUSER}-ivrrecording:${ARG2})}) 1495 $ext->add($context, 's', '', new ext_setvar('RECFILE','${IF($["${ARG2}" = ""]?/tmp/${AMPUSER}-ivrrecording:${ARG2})}')); 1496 $ext->add($context, 's', '', new ext_execif('$["${ARG3}" != ""]','Authenticate','${ARG3}')); 1494 1497 $ext->add($context, 's', '', new ext_goto(1, '${ARG1}')); 1495 1498 1496 1499 $exten = 'dorecord'; 1497 1500 1498 $ext->add($context, $exten, '', new ext_record(' /tmp/${AMPUSER}-ivrrecording:wav'));1501 $ext->add($context, $exten, '', new ext_record('${RECFILE}:wav')); 1499 1502 $ext->add($context, $exten, '', new ext_wait(1)); 1500 1503 $ext->add($context, $exten, '', new ext_goto(1, 'confmenu')); … … 1502 1505 $exten = 'docheck'; 1503 1506 1504 $ext->add($context, $exten, '', new ext_playback('/tmp/${AMPUSER}-ivrrecording')); 1507 $ext->add($context, $exten, '', new ext_playback('beep')); 1508 $ext->add($context, $exten, 'dc_start', new ext_background('${RECFILE},m,${CHANNEL(language)},macro-systemrecording')); 1505 1509 $ext->add($context, $exten, '', new ext_wait(1)); 1506 1510 $ext->add($context, $exten, '', new ext_goto(1, 'confmenu')); … … 1508 1512 $exten = 'confmenu'; 1509 1513 if (version_compare($version, "1.4", "ge")) { 1510 $ext->add($context, $exten, '', new ext_background('to-listen-to-it&press-1&to-rerecord-it&press-star ,m,${CHANNEL(language)},macro-systemrecording'));1514 $ext->add($context, $exten, '', new ext_background('to-listen-to-it&press-1&to-rerecord-it&press-star&astcc-followed-by-pound,m,${CHANNEL(language)},macro-systemrecording')); 1511 1515 } else { 1512 $ext->add($context, $exten, '', new ext_background('to-listen-to-it&press-1&to-rerecord-it&press-star ,m,${LANGUAGE},macro-systemrecording'));1516 $ext->add($context, $exten, '', new ext_background('to-listen-to-it&press-1&to-rerecord-it&press-star&astcc-followed-by-pound,m,${LANGUAGE},macro-systemrecording')); 1513 1517 } 1514 1518 $ext->add($context, $exten, '', new ext_read('RECRESULT', '', 1, '', '', 4)); 1515 1519 $ext->add($context, $exten, '', new ext_gotoif('$["x${RECRESULT}"="x*"]', 'dorecord,1')); 1516 $ext->add($context, $exten, '', new ext_gotoif('$["x${RECRESULT}"="x1"]', 'docheck, 1'));1520 $ext->add($context, $exten, '', new ext_gotoif('$["x${RECRESULT}"="x1"]', 'docheck,2')); 1517 1521 $ext->add($context, $exten, '', new ext_goto(1)); 1518 1522 1519 $ext->add($context, '1', '', new ext_goto( 1, 'docheck'));1523 $ext->add($context, '1', '', new ext_goto('dc_start', 'docheck')); 1520 1524 $ext->add($context, '*', '', new ext_goto(1, 'dorecord')); 1521 1525 … … 3943 3947 $msgInvalidOutboundCID = _("Please enter a valid Outbound CID"); 3944 3948 $msgInvalidPause = _("Please enter a valid pause time in seconds, using digits only"); 3949 $msgInvalidDIDNum = _("You have entered a non-standard dialpattern for your DID. You can only enter standard dialpatterns. You must use the inbound routing form to enter non-standard patterns"); 3950 $msgInvalidCIDNum = _("Please enter a valid Caller ID Number or leave it blank for your Assigned DID/CID pair"); 3945 3951 3946 3952 // This is the actual gui stuff … … 4010 4016 $section = _("Assigned DID/CID"); 4011 4017 $currentcomponent->addguielem($section, new gui_textbox('newdid_name', $newdid_name, 'DID Description', _("A description for this DID, such as \"Fax\"")), 4); 4012 $currentcomponent->addguielem($section, new gui_textbox('newdid', $newdid, 'Add Inbound DID', _("A direct DID that is associated with this extension. The DID should be in the same format as provided by the provider (e.g. full number, 4 digits for 10x4, etc).<br><br>Format should be: <b>XXXXXXXXXX</b><br><br>.An optional CID can also be associated with this DID by setting the next box") ), 4);4013 $currentcomponent->addguielem($section, new gui_textbox('newdidcid', $newdidcid, 'Add Inbound CID', _("Add a CID for more specific DID + CID routing. A DID must be specified in the above Add DID box")), 4);4018 $currentcomponent->addguielem($section, new gui_textbox('newdid', $newdid, 'Add Inbound DID', _("A direct DID that is associated with this extension. The DID should be in the same format as provided by the provider (e.g. full number, 4 digits for 10x4, etc).<br><br>Format should be: <b>XXXXXXXXXX</b><br><br>.An optional CID can also be associated with this DID by setting the next box"),'!isDialpattern()',$msgInvalidDIDNum,true), 4); 4019 $currentcomponent->addguielem($section, new gui_textbox('newdidcid', $newdidcid, 'Add Inbound CID', _("Add a CID for more specific DID + CID routing. A CID must be specified in the above Add DID box"),'!isDialpattern()',$msgInvalidCIDNum,true), 4); 4014 4020 4015 4021 $dids = core_did_list('extension');
