Skip to content

Instantly share code, notes, and snippets.

@toraritte
Created June 11, 2019 18:30
Show Gist options
  • Save toraritte/3ee3c12a02f68def4ee56bcde7d4785f to your computer and use it in GitHub Desktop.
Save toraritte/3ee3c12a02f68def4ee56bcde7d4785f to your computer and use it in GitHub Desktop.
Whitelist registered numbers only (naive try)
<extension name="SignalWire CONNECTORS incoming call">
<!-- the number you assigned in your SignalWire dashboard -->
<condition field="destination_number" expression="^(\+15550123456)$"/>
<condition field="ani" expression="^(\+15557891011)$">
<!-- <condition field="ani" expression="^(\+15551213141)$"> -->
<action application="answer"/>
<action application="ivr" data="demo_ivr"/>
</condition>
</extension>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment