Changeset 5364
- Timestamp:
- 12/06/07 13:02:19 (5 years ago)
- Files:
-
- modules/branches/2.4/core/agi-bin/dialparties.agi (modified) (3 diffs)
- modules/branches/2.4/core/functions.inc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.4/core/agi-bin/dialparties.agi
r5341 r5364 49 49 $ampmgrpass = get_var( $AGI, "AMPMGRPASS" ); 50 50 $cwinusebusy = get_var( $AGI, "CWINUSEBUSY" ); 51 $ast_version = get_var( $AGI, "ASTVERSION" ); 51 52 52 53 $cwignore = get_var( $AGI, "CWIGNORE" ); … … 582 583 $AGI->noop(''); 583 584 } else { 585 // Asterisk 1.6 uses , instead of | and 1.4 can't recieve a , in the ds. 586 // 587 if (version_compare($ast_version, "1.6", "ge")) { 588 $ds_seperator = ','; 589 } else { 590 $ds_seperator = '|'; 591 } 592 584 593 if (($rgmethod == "hunt") || ($rgmethod == "memoryhunt") || ($rgmethod == "firstavailable") || ($rgmethod == "firstnotonphone")) { 585 $ds = '|';594 $ds = $ds_seperator; 586 595 if ($timer) { 587 596 $ds .= $timer; 588 597 } 589 $ds .= '|'. $dialopts; // pound to transfer, provide ringing598 $ds .= $ds_seperator . $dialopts; // pound to transfer, provide ringing 590 599 $AGI->set_variable('ds',$ds); 591 600 $AGI->set_variable("HuntMembers",$loops); 592 601 $AGI->set_priority("huntdial"); // dial command was at priority 20 where dialplan handles calling a ringgroup with strategy of "hunt" or "MemoryHunt" 593 602 } else { 594 $ds .= '|';603 $ds .= $ds_seperator; 595 604 if ($timer) { 596 605 $ds .= $timer; … … 599 608 } 600 609 } 601 $ds .= '|'. $dialopts; // pound to transfer, provide ringing610 $ds .= $ds_seperator . $dialopts; // pound to transfer, provide ringing 602 611 if (trim($use_confirmation) != "FALSE") { 603 612 $AGI->set_variable('__RG_IDX',$ringgroup_index); modules/branches/2.4/core/functions.inc.php
r5352 r5364 813 813 } 814 814 } 815 815 // Put the asterisk version in a global for agi etc. 816 $ext->addGlobal('ASTVERSION', $version); 817 816 818 /* outbound routes */ 817 819 // modules should use their own table for storage (and module_get_config() to add dialplan)
