我的備忘記事

    版本為 21:26, 20 Nov 2024

    到這個版本。

    返回到 版本存檔.

    查閱目前版本

    Customize SPYGROUP on FreePBX

    方式一:功能型

    [ext-local-custom]
    exten => s,1,Set(GROUP=${DB(spygrp/${CALLERID(number)}))
    exten => s,n,GotoIf($[${ISNULL(${GROUP})}]?:continue)
    exten => s,n,NoOp(SPYGROUP is <${GROUP}> for ext.${CALLERID})
    exten => s,n,Set(SPYGROUP=${GROUP})
    exten => s,n(continue),NoOP(Ignore SPYGROUP...)
    
    [app-chanspy-set-on]
    exten => 7791,1,Answer
    exten => 7791,n,Wait(1)
    exten => 7791,n,Macro(user-callerid,)
    exten => 7791,n,Set(DB(spygrp/${AMPUSER})=spyon)
    exten => 7791,n,Playback(activated)
    exten => 7791,n,Hangup
    [app-chanspy-set-off]
    exten => 7792,1,Answer
    exten => 7792,n,Wait(1)
    exten => 7792,n,Macro(user-callerid,)
    exten => 7792,n,DBDel(spygrp/${AMPUSER})
    exten => 7792,n,Playback(de-activated)
    exten => 7792,n,Hangup
    

    [app-chanspy-group]

    方法二:簡易型

    使用 override 方式修改 [macro-dial] 在 extensions.conf

    [macro-dial]
    exten => s,1,NoOp("------------ Set SPYGROUP -------------")
    exten => s,n,Set(TOEXT=${ARG3})
    ;exten => s,n,Set(TOEXT="150")
    ; Spy activate to ext.110-160
    ;exten => s,n,GotoIf($[ $["x${LEN(${TOEXT})}"="x3"] & $["x${TOEXT:0:1}"="x1"] & $[${TOEXT:1:1}<=6] ]?spy:nospy)
    exten => s,n,GotoIf($[ $["x${LEN(${TOEXT})}"="x3"] & $[${TOEXT:0:3}<=201] & $[${TOEXT:0:3}>110] ]?spy:continue)
    exten => s,n(spy),Set(__SPYGROUP=spygrp)
    exten => s,n(continue),NoOp("--------- Nothing --------")
    exten => s,n,GotoIf($["${MOHCLASS}" = ""]?dial)
    exten => s,n,SetMusicOnHold(${MOHCLASS})
    exten => s,n(dial),AGI(dialparties.agi)
    exten => s,n,NoOp(Returned from dialparties with no extensions to call and DIALSTATUS: ${DIALSTATUS})
    ...
    

    參考連結

    Public DNS Server

    Google)
    server#1 :8.8.8.8
    server#2 :8.8.4.4

    OpenDNS)
    server#1 :208.67.222.222
    server#2 :208.67.220.220


    Speak your IP with extension

    function SIPCHANINFO -> get current channel
    function SIPPEER -> get ip address
    http://www.the-asterisk-book.com/uns...n-sippeer.html


    N-Way Call on Asterisk

    http://www.voip-info.org/wiki/view/A...way+call+HOWTO
    http://www.voip-info.org/wiki/view/A...isk+cmd+MeetMe
    http://blog.sina.com.cn/s/blog_4b8c4a6001000bef.html


    n2n VPN

    http://www.ntop.org/n2n/
    http://board.planetpeer.de/index.php?topic=5714.0
    http://www.vpnhosting.cz/index.php/N...osting.cz.html

    Getting Start

    #>yum installsubversion
    #>cd /usr/src
    #>svn co https://svn.ntop.org/svn/ntop/trunk/n2n

     - Fingerprint: 24:bf:8f:03:c1:f0:fe:72:3f:d2:d0:dd:9a:c9:d0:1b:7b:ab:56:34
    (R)eject, accept (t)emporarily or accept (p)ermanently? p <--

    #>cd n2n
    #>make
    #>make PREFIX=/opt/n2n install
    #>/opt/n2n/sbin/edge -d n2n0 -a 10.9.9.1 -c mypbxnet -k mypass -l 88.86.108.50:82 &
    #>ifconfig n2n0
    

    n2n0      Link encap:Ethernet  HWaddr 6E:45:BE:68:F3:AA
              inet addr:10.9.9.1  Bcast:10.9.9.255  Mask:255.255.255.0
              inet6 addr: fe80::6c45:beff:fe68:f3aa/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1400  Metric:1
              RX packets:88 errors:0 dropped:0 overruns:0 frame:0
              TX packets:87 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:500
              RX bytes:8676 (8.4 KiB)  TX bytes:9994 (9.7 KiB)


     

     


    Above integrate with Asterisk as Call notifier

    http://www.uk-experience.com/2008/06...-call-monitor/ 


    Upgrading MindTouch Deki 8.08 (Kilen Woods) to MindTouch 2009 (non-VM)
    http://www.mindtouch.com/Official_Mi..._2009_(non-VM)

    Lyons (9.02) Release Notes
    http://developer.mindtouch.com/Deki/Release/Lyons

     

     

     

    Powered by MindTouch Core