Guest User

Untitled

a guest
Oct 6th, 2020
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. [from-internal]
  2. ; always get+log the sip call-id header from a call
  3. exten => _.,1,Noop(call from internal handset)
  4. same => n,Set(SIPCallIDHeader=${CHANNEL(pjsip,call-id)})
  5. same => n,Gosub(from-internal-real,${EXTEN},1)
  6.  
  7. ; hints / BLF
  8. exten => _ZX,hint,PJSIP/${EXTEN}
  9.  
  10. [from-internal-real]
  11. exten => _ZX,1,NoOp(call to internal handset)
  12. same => n,Set(CALLERID(name)=${calleridname})
  13. same => n,Gosub(to_extension,${EXTEN},1)
  14.  
  15. exten => _1XX,1,Goto(macro-trunkdial,${EXTEN},1)
  16. exten => _XXX.,1,Goto(macro-trunkdial,${EXTEN},1)
  17. exten => _+XXX.,1,Goto(macro-trunkdial,${EXTEN},1)
  18.  
  19. exten => i,1,NoOp(Invalid number)
  20. same => n,Hangup(1)
  21.  
  22. ; star codes (no true Asterisk without them)
  23. exten => _*1,1,NoOp(Mailbox)
  24. same => n,NoOp(end the call, open messages menu on the phone instead)
  25. same => n,Answer()
  26. same => n,Set(endpoint=${CHANNEL(endpoint)})
  27. same => n,Set(result=${CURL(http://localhost/push2phone/open_browser?page=messages&ext=${endpoint})})
  28. same => n,Hangup()
  29.  
  30. ; directed pickup
  31. exten => _*8.,1,NoOp(Directed pickup)
  32. same => n,PickupChan(PJSIP/${EXTEN:2})
  33.  
Add Comment
Please, Sign In to add comment