signalwire / freeswitch-docs

Source for the FreeSWITCH documentation
https://developer.signalwire.com/freeswitch
MIT License
21 stars 58 forks source link

the syntax of virtual host script #98

Closed YQW1504040201 closed 8 months ago

YQW1504040201 commented 8 months ago

The virtual host of video-demo(Verto) script is missing a On this connection https://developer.signalwire.com/freeswitch/FreeSWITCH-Explained/Modules/mod-verto/RESTful-Verto_8454242/

    <vhost domain="localhost">
      <param name="alias" value="seven.local freeswitch.org"/>
      <!-- <param name="root" value="/usr/local/freeswitch/htdocs"/> -->
      <!-- <param name="script_root" value="/usr/local/freeswitch/scripts"/> -->
      <param name="index" value="index.html"/>
      <rewrites>
        <rule expression="^/api" value="/my_custom_api.lua"/>
        <rule expression="^/channels" value="/rest.lua"/>
      </rewrites>
    </vhost>
  </vhosts>     <!-- missing-->