Skip to content

Instantly share code, notes, and snippets.

@mistergibson
Created August 17, 2011 01:43
Show Gist options
  • Save mistergibson/1150617 to your computer and use it in GitHub Desktop.
Save mistergibson/1150617 to your computer and use it in GitHub Desktop.
Review Welcome
Intent: a simple configuration that handles incoming sip calls.
@extensions.conf:
[from-sip]
exten => s,1,Wait,1;
exten => s,2,Dial(SIP/s,30); # not sure if this works.
exten => s,3,Hangup;
# what I need here is a way to handle calls to unknown/undefined (s). I'll probably just playback(not-available) and hang up. Any syntax hints appreciated.
@sip.conf:
[1000]
context=from-sip
type=friend
host=dynamic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment