Created
January 27, 2022 20:26
-
-
Save eccentricbiped/bcf0bd9fd996011bf93718121a236c62 to your computer and use it in GitHub Desktop.
CallToSip.php
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
<?php | |
echo header('content-type: text/xml'); | |
echo '<?xml version="1.0" encoding="UTF-8"?>'; | |
/** Get sip endpoint list **/ | |
$params=$_REQUEST['SipUser']; | |
$toNumberList=explode(",",$params); | |
?> | |
<Response> | |
<?php | |
for($i=0; $i < sizeof($toNumberList) ;$i++) { $to=$toNumberList[$i]; ?> | |
<Dial timeout="20"> | |
<Sip> | |
<?php echo $to; ?> | |
</Sip> | |
</Dial> | |
<?php } ?> | |
</Response> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment