forked from marcelog/PAGI
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
namespace PAGI\DialDescriptor; | ||
|
||
/** | ||
* SIP Dial Descriptor class. | ||
* | ||
* @category PAGI | ||
* @package DialDescriptor | ||
* @author Thomas Stähle <[email protected]> | ||
* @license http://marcelog.github.com/PAGI/ Apache License 2.0 | ||
* @link http://marcelog.github.com/PAGI/ | ||
*/ | ||
class LocalDialDescriptor extends DialDescriptor | ||
{ | ||
const TECHNOLOGY = 'LOCAL'; | ||
|
||
/** | ||
* (non-PHPdoc) | ||
* @see DialDescriptor::getTechnology() | ||
*/ | ||
public function getTechnology() | ||
{ | ||
return self::TECHNOLOGY; | ||
} | ||
|
||
/** | ||
* (non-PHPdoc) | ||
* @see DialDescriptor::getChannelDescriptor() | ||
*/ | ||
public function getChannelDescriptor() | ||
{ | ||
return self::TECHNOLOGY .'/' .$this->target; | ||
} | ||
|
||
/** | ||
* constructor. | ||
* | ||
* @param string $context The asterisk context | ||
* @param string $extension The asterisk extension | ||
*/ | ||
public function __construct($context, $extension) | ||
{ | ||
$this->target = $extension . '@' . $context; | ||
} | ||
} |