Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [from-internal]
- ; always get+log the sip call-id header from a call
- exten => _.,1,Noop(call from internal handset)
- same => n,Set(SIPCallIDHeader=${CHANNEL(pjsip,call-id)})
- same => n,Gosub(from-internal-real,${EXTEN},1)
- ; hints / BLF
- exten => _ZX,hint,PJSIP/${EXTEN}
- [from-internal-real]
- exten => _ZX,1,NoOp(call to internal handset)
- same => n,Set(CALLERID(name)=${calleridname})
- same => n,Gosub(to_extension,${EXTEN},1)
- exten => _1XX,1,Goto(macro-trunkdial,${EXTEN},1)
- exten => _XXX.,1,Goto(macro-trunkdial,${EXTEN},1)
- exten => _+XXX.,1,Goto(macro-trunkdial,${EXTEN},1)
- exten => i,1,NoOp(Invalid number)
- same => n,Hangup(1)
- ; star codes (no true Asterisk without them)
- exten => _*1,1,NoOp(Mailbox)
- same => n,NoOp(end the call, open messages menu on the phone instead)
- same => n,Answer()
- same => n,Set(endpoint=${CHANNEL(endpoint)})
- same => n,Set(result=${CURL(http://localhost/push2phone/open_browser?page=messages&ext=${endpoint})})
- same => n,Hangup()
- ; directed pickup
- exten => _*8.,1,NoOp(Directed pickup)
- same => n,PickupChan(PJSIP/${EXTEN:2})
Add Comment
Please, Sign In to add comment