Skip to content

Instantly share code, notes, and snippets.

@orlaqp
Created October 5, 2014 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orlaqp/9b03c26f6f31eb5eef72 to your computer and use it in GitHub Desktop.
Save orlaqp/9b03c26f6f31eb5eef72 to your computer and use it in GitHub Desktop.
I added this to: dialplan/default.xml
<extension name="Adhearsion">
<condition>
<action application="rayo"/>
</condition>
</extension>
And this is part of rayo.xml
<!-- XMPP server domain -->
<domain name="$${rayo_domain_name}" shared-secret="ClueCon">
<!-- use this instead if you want secure XMPP client to server connections. Put .crt and .key file in freeswitch/certs -->
<!--domain name="$${rayo_domain_name}" shared-secret="ClueCon" cert="$${base_dir}/certs/$${rayo_domain_name}.crt" key="$${base_dir}/certs/$${rayo_domain_name}.key"-->
<!-- Listeners for new Rayo client connections -->
<!--listen type="c2s" port="5222" address="$${local_ip_v4}" acl="rayo-clients"/-->
<listen type="c2s" port="5222" address="$${rayo_ip}" acl=""/>
<!-- Listeners for new server connections -->
<!--listen type="s2s" port="5269" address="$${local_ip_v4}" acl="rayo-servers"/-->
<!-- servers to connect to -->
<!--connect port="5269" address="node.example.com" domain="example.com"/-->
<!-- Authorized users -->
<users>
<user name="usera" password="1"/>
</users>
</domain>
Also this is how I setup my adhearsion.rb file:
##
# Use with FreeSWITCH
#
config.punchblock.platform = :xmpp # Use FreeSWITCH
config.punchblock.username = "usera@127.0.0.1"
config.punchblock.password = "1" # Your Inbound EventSocket password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment