~cyrenity/zivios/devel

« back to all changes in this revision

Viewing changes to application/modules/asterisk/views/scripts/service/editsiptrunk.phtml

  • Committer: Ghulam Mustafa
  • Date: 2008-10-21 16:38:13 UTC
  • Revision ID: gmustafa@zivios.org-20081021163813-t085abmh2sipz8mm
add/modify voip trunks now working completely with ldap

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
        $clidname = trim($match[1][0]);
28
28
        $clidnum = trim($match[2][0]);
29
29
        
30
 
        $d = $this->data;
31
 
        $allow = explode(" ", $d['allow']);
32
 
        
 
30
        $d = $this->data;       
33
31
function select($label, $name, $array, $selected) {
34
32
        echo "<label for=\"$name\"> $label: </label>";
35
33
        echo "<select name=\"$name\">";
105
103
                <fieldset>
106
104
                        <legend>Advance Settings</legend>
107
105
                        <label for="codecs">* Codecs: </label>
108
 
                                <input type="checkbox" name="codecs" value="alaw"  <? if (in_array('alaw', $allow)) echo 'checked';?>> A-Law 
109
 
                                <input type="checkbox" name="codecs" value="ulaw"  <? if (in_array('ulaw', $allow)) echo 'checked';?>> U-Law 
110
 
                                <input type="checkbox" name="codecs" value="gsm"  <? if (in_array('gsm', $allow)) echo 'checked';?>> GSM 
111
 
                                <input type="checkbox" name="codecs" value="g729"  <? if (in_array('g729', $allow)) echo 'checked';?>> G729  
112
 
                                <input type="checkbox" name="codecs" value="g726" <? if (in_array('g726', $allow)) echo 'checked';?>> G726  
113
 
                                <input type="checkbox" name="codecs" value="adpcm" <? if (in_array('adpcm', $allow)) echo 'checked';?>> ADPCM 
114
 
                                <input type="checkbox" name="codecs" value="lpc10" <? if (in_array('lpc10', $allow)) echo 'checked';?>> LPC10 
115
 
                                <input type="checkbox" name="codecs" value="ilbc" <? if (in_array('ilbc', $allow)) echo 'checked';?>> ILBC 
116
 
                                <input type="checkbox" name="codecs" value="speex" <? if (in_array('speex', $allow)) echo 'checked';?>> SPEEX <br><br>
 
106
                                <input type="checkbox" name="codecs" value="alaw"  <? if (in_array('alaw', $d['allow'])) echo 'checked';?>> A-Law 
 
107
                                <input type="checkbox" name="codecs" value="ulaw"  <? if (in_array('ulaw', $d['allow'])) echo 'checked';?>> U-Law 
 
108
                                <input type="checkbox" name="codecs" value="gsm"  <? if (in_array('gsm', $d['allow'])) echo 'checked';?>> GSM 
 
109
                                <input type="checkbox" name="codecs" value="g729"  <? if (in_array('g729', $d['allow'])) echo 'checked';?>> G729  
 
110
                                <input type="checkbox" name="codecs" value="g726" <? if (in_array('g726', $d['allow'])) echo 'checked';?>> G726  
 
111
                                <input type="checkbox" name="codecs" value="adpcm" <? if (in_array('adpcm', $d['allow'])) echo 'checked';?>> ADPCM 
 
112
                                <input type="checkbox" name="codecs" value="lpc10" <? if (in_array('lpc10', $d['allow'])) echo 'checked';?>> LPC10 
 
113
                                <input type="checkbox" name="codecs" value="ilbc" <? if (in_array('ilbc', $d['allow'])) echo 'checked';?>> ILBC 
 
114
                                <input type="checkbox" name="codecs" value="speex" <? if (in_array('speex', $d['allow'])) echo 'checked';?>> SPEEX <br><br>
117
115
 
118
116
                        <label for="expiry">* Expiry: </label>
119
117
                                <input id="expiry" type="text" size="20" value="<?=$d['expiry']?>" name="expiry" /><br /> <br>
120
118
                
121
119
                        <label for="port">* Port: </label>
122
120
                                <input id="port" type="text" size="20" value="<?=$d['port']?>" name="port" /><br /> <br>
123
 
                
124
 
                        <label for="authuser"> Auth User: </label>
125
 
                                <input id="authuser" type="text" size="20" value="<?=$d['authuser']?>" name="authuser" /><br /> <br>
126
 
                                
127
121
                        
128
122
                        <?php
129
123
                                $arrtypes = array('peer' => 'Peer', 'friend' => 'Friend');
153
147
        <fieldset>
154
148
                Make sure you have provided all information correctly before adding the trunk. <br><br>
155
149
                <input type="hidden" name="operate_dn" value="<?php echo $this->obj->getdn(); ?>" />
156
 
                <input type="hidden" name="delonot" value="yes" />
157
 
                <input type="hidden" name="oldtrunk" value="<?=$d['name']?>" />
158
 
                <input type="hidden" name="olduser" value="<?=$d['username']?>" />
159
150
                <input type="hidden" name="addRequestFor" value="service" />
160
 
                <input type="submit" name="edittrunk" value="Modify Trunk" onclick="javascript:callAjaxRender('edittrunk', '/asterisk/service/addsiptrunk/','pgupdate')"> <br>
 
151
                <input type="hidden" name="protocol" value="sip" />
 
152
                <input type="submit" name="edittrunk" value="Modify Trunk" onclick="javascript:callAjaxRender('edittrunk', '/asterisk/service/editProvider/','pgupdate')"> <br>
161
153
                </fieldset>
162
154
        </div>
163
155
</div>