Asterisk – CLI komande

Agent commands agent logoff – Sets an agent offline agent show – Show status of agents agent show online – Show all online agents AGI commands agi dump html – Dumps a list of AGI commands in HTML format agi exec – Add AGI command to a channel in Async AGI agi set debug [on|off] – Enable/Disable AGI debugging agi show commands [topic] – List AGI commands […]

Asterisk – Preuzimanje DID iz SIP header-a

Prilikom registracije SIP trunk-a, a radi lakšeg rutiranja poziva, potrebno je preuzeti DID iz SIP header-a. Na osnovu tog DID broja se prave inbound rute. U nastavku su 2 načina preuzimanja DID iz SIP header-a (duži i kraći) koji rade isti posao. Kraći način: [custom-get-did-from-sip] exten => _.,1,Goto(from-trunk,${CUT(CUT(SIP_HEADER(To),@,1),:,2)},1) Za context u trunk-u je potrebno upisati custom-get-did-from-sip. Duži način: [custom-get-did] exten […]