Extensions.conf for sip provider

From open-voip.org

Jump to: navigation, search
 ;; This is the extensions.conf file for the examples discussed in Inbound & Outbound with your SIP provider page
 ;
 [general]
 [globals]
 ;        next 3 lines in remarks, use them for if you want to direct from "default" context to another context. in this example the context of in the general section in the sip.conf is going to "from-sip" context directly.
 ;[default]   
 ;exten => _X.,1,gosub(from-sip,${EXTEN},1)                      ;direct inboound call from DID provider to specific extention
 ;exten => _X.,2,hangup()
 ;
 [from-sip]
 exten => 12121111111,1,Dial(SIP/1000,60)             ; direct inboound call from DID provider to specific extention
 exten => 12122222222,1,Dial(SIP/2000,60)             ; direct inboound call from DID provider to specific extention
 exten => _X.,1,Dial(SIP/${EXTEN},30)                       ; calls between extensions
 exten => _9X.,1,Dial(SIP/${EXTEN:1}@deltathree)            ; 9 prefix will call out through deltathree  
 exten => _X.,2,hangup()


Links:

Personal tools