extensions.conf 684 B

123456789101112131415161718192021
  1. [default]
  2. ; Things you're used to....
  3. exten => music,n,Dial(SIP/1234@conference.freeswitch.org|120)
  4. exten => _1XXXXX,n,set(cool=${EXTEN})
  5. exten => _1XXXXX,n,set(myvar=true)
  6. exten => _1XXXXX,n,Goto(default|music)
  7. exten => 2137991400/1000,n,Goto(default|music)
  8. ; Some new magic you can do....
  9. exten => ~^(18(0{2}|8{2}|7{2}|6{2})\d{7})$,n,enum($1)
  10. exten => ~^(18(0{2}|8{2}|7{2}|6{2})\d{7})$,n,bridge(${enum_auto_route})
  11. ; instead of exten, put anything about the call you would rather match on.
  12. ; either the names of a field in caller_profile or a string of variables to expand.
  13. caller_id_number => 2137991400,n,Goto(default|music)
  14. ${sip_from_user} => bill,n,Goto(default|music)