Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

S

siax

@siax
Unfollow Follow
About
Posts
15
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • FOP2 websocket in Chrome - latest release issues
    S siax
    Support

    I just updated to 2.22 as FOP2 wasn't loading in Chrome anymore and all went fine for about an hour. Now after the login, the page with all buttons is shown for one second and then only a blank white page remains.

    Internet Explorer 9 works (as good as IE9 can)
    Firefox 6 works as well

    though it's interesting to see, that DND icons are green in IE and Chrome, but red in Firefox... :?

    EDIT: clearing Chrome's cache helped here.


  • Strange Label issue
    S siax
    Support

    Sorry, I did a mistake... the issue is slightly different and it has nothing to do with the spaces...

    I actually did not really created a test user John Doe, but used an existing test user, who's last name was only one letter.

    please check my edited post above. Not the whole last name is being removed. It's the last LETTER only. Tested with different users, different name lengths


  • Strange Label issue
    S siax
    Support

    FreePBX has been updated from 2.7 to 2.8 via the Upgrade Tool, no manual changes...

    I'm using User & Device mode, if that is of any help...

    thanks for your help!


  • Strange Label issue
    S siax
    Support

    ok I try to explain again...

    Asterisk 1.6 and FreePBX 2.8.1.4 on Centos (AsteriskNOW)
    FOP2.21 beta (language set to German), fop2admin 1.2.6
    Test user: 1234 <John Doe>
    Test queue: 4567 Test

    if 1234 <John Doe> logs into one of our queues via FreePBX feature code 4567*
    CLI> queue show
    4567 has 1 calls...
    Members:
    Local/1234@from-queue/n (dynamic) (In use) has taken no calls yet

    if 1234 <John Doe> is being added to a queue via cli "queue add member Local/1234@from-queue/n to 4567"
    CLI> queue show
    4567 has 1 calls...
    Members:
    Local/1234@from-queue/n (dynamic) (In use) has taken no calls yet

    if I go to FOP2 (not fop2admin!!!) and click on the user button status icon and select "add to Test" to put 1234 <John Doe> into the "Test" queue
    --> at this point John Doe's FOP2 Button changes to "John Do" immediately, also he is being added as "John Do" to the Test queue
    CLI> queue show
    4567 has 1 calls...
    Members:
    John Do (Local/1234@from-queue/n) (dynamic) (In use) has taken no calls yet

    edit: issue was a little different


  • Strange Label issue
    S siax
    Support

    I had this issue and could solve it (temporarily) by removing the Local/XXX queue member entries (with wrong name) from my queues.

    We have Device & User mode and the users are named "First_Name(Space)Last_name"

    When re-adding the agent via FOP2.21 beta to his queues, the last letter is removed from his name, when I hit "queue show" in CLI the again. As a result on the next FOP2 login, the labels are again wrong.

    why does FOP2 put the name into the queue member list anyway?

    when users log into queues via feature code or when I add them via cli they are added without name and all FOP2 labels remain fine.

    edit: slightly different issue


  • User & Devices Mode
    S siax
    Support

    you are right in Queue channel it is actually Local/xxxx@from-queue

    I entered the same (Local/xxxx@from-queue) in Originate Channel and pickup is now working correctly.

    But do I get you right, that I actually should have from-queue in Queue channel only and from-internal in Originate Channel fields?

    is there anything to enter into Channel, ChanSpy Options and External Transfer? These fields are blank in my Fop2 Buttons in FreePBX 2.8.1.4


  • User & Devices Mode
    S siax
    Support

    I checked the FreePBX admin page "FOP2 Buttons" and it acutally shows the Queue Channels as
    Local/xxxx@from-internal, should I enter the same for Originate Channel?

    don't worry, I'm going to check it myself πŸ˜‰


  • User & Devices Mode
    S siax
    Support

    I have the same issue, but I am still using the autoconfig-buttons-freepbx.sh for button configuration. Can this be adapted here as well?


  • DND status indication
    S siax
    Support

    you are genius, thanks a lot!

    I did the changes in the dnd macros and it works excellent!
    As I see for call forwarding similar changes need to be done.

    [app-dnd-on]
    include => app-dnd-on-custom
    exten => *78,1,Answer
    exten => *78,n,Wait(1)
    exten => *78,n,Macro(user-callerid,)
    ; added for fop2
    exten => *78,n,Set(DB(DND/${AMPUSER})=YES)
    ; next line deactivated and changed for device and user mode 
    ; exten => *78,n,Set(CHAN=${CUT(CHANNEL,-,1)})
    exten => *78,n,Set(CHAN=USER/${AMPUSER})
    exten => *78,n,Set(DB(fop2state/${CHAN})=Do not Disturb)
    exten => *78,n,UserEvent(FOP2ASTDB,Family: fop2state,Channel: ${CHAN},Value: Do not Disturb)
    ; end fop2 addition
    exten => *78,n,Set(DB(DND/${AMPUSER})=YES)
    exten => *78,n,Set(STATE=BUSY)
    exten => *78,n,Gosub(app-dnd-on,sstate,1)
    exten => *78,n,Playback(do-not-disturb&activated)
    exten => *78,n,Macro(hangupcall,)
    exten => sstate,1,Set(DEVSTATE(Custom:DND${AMPUSER})=${STATE})
    exten => sstate,n,Set(DEVICES=${DB(AMPUSER/${AMPUSER}/device)})
    exten => sstate,n,GotoIf($["${DEVICES}" = "" ]?return)
    exten => sstate,n,Set(LOOPCNT=${FIELDQTY(DEVICES,&)})
    exten => sstate,n,Set(ITER=1)
    exten => sstate,n(begin),Set(DEVSTATE(Custom:DEVDND${CUT(DEVICES,&,${ITER})})=${STATE})
    exten => sstate,n,Set(ITER=$[${ITER} + 1])
    exten => sstate,n,GotoIf($[${ITER} <= ${LOOPCNT}]?begin)
    exten => sstate,n(return),Return()
    
    [app-dnd-off]
    include => app-dnd-off-custom
    exten => *79,1,Answer
    exten => *79,n,Wait(1)
    exten => *79,n,Macro(user-callerid,)
    ; added for fop2
    ; next line deactivated and changed for device and user mode 
    ;exten => *79,n,Set(CHAN=${CUT(CHANNEL,-,1)})
    exten => *79,n,Set(CHAN=USER/${AMPUSER})
    exten => *79,n,dbDel(fop2state/${CHAN})
    exten => *79,n,UserEvent(FOP2ASTDB,Family: fop2state,Channel: ${CHAN},Value: )
    ; end fop2 addition
    exten => *79,n,dbDel(DND/${AMPUSER})
    exten => *79,n,Set(STATE=NOT_INUSE)
    exten => *79,n,Gosub(app-dnd-off,sstate,1)
    exten => *79,n,Playback(do-not-disturb&de-activated)
    exten => *79,n,Macro(hangupcall,)
    exten => sstate,1,Set(DEVSTATE(Custom:DND${AMPUSER})=${STATE})
    exten => sstate,n,Set(DEVICES=${DB(AMPUSER/${AMPUSER}/device)})
    exten => sstate,n,GotoIf($["${DEVICES}" = "" ]?return)
    exten => sstate,n,Set(LOOPCNT=${FIELDQTY(DEVICES,&)})
    exten => sstate,n,Set(ITER=1)
    exten => sstate,n(begin),Set(DEVSTATE(Custom:DEVDND${CUT(DEVICES,&,${ITER})})=${STATE})
    exten => sstate,n,Set(ITER=$[${ITER} + 1])
    exten => sstate,n,GotoIf($[${ITER} <= ${LOOPCNT}]?begin)
    exten => sstate,n(return),Return()
    
    [app-dnd-toggle]
    include => app-dnd-toggle-custom
    exten => *76,1,Answer
    exten => *76,n,Wait(1)
    exten => *76,n,Macro(user-callerid,)
    exten => *76,n,GotoIf($["${DB(DND/${AMPUSER})}" = ""]?activate:deactivate)
    exten => *76,n(activate),Set(DB(DND/${AMPUSER})=YES)
    ; next line deactivated and changed for device and user mode 
    ;exten => *76,n,Set(CHAN=${CUT(CHANNEL,-,1)})
    exten => *76,n,Set(CHAN=USER/${AMPUSER})
    exten => *76,n,Set(DB(fop2state/${CHAN})=Do not Disturb)
    exten => *76,n,UserEvent(FOP2ASTDB,Family: fop2state,Channel: ${CHAN},Value: Do not Disturb)
    exten => *76,n,Set(STATE=BUSY)
    exten => *76,n,Gosub(app-dnd-toggle,sstate,1)
    exten => *76,n,Playback(do-not-disturb&activated)
    exten => *76,n,Macro(hangupcall,)
    exten => *76,n(deactivate),dbDel(DND/${AMPUSER})
    ; next line deactivated and changed for device and user mode 
    ; exten => *76,n,Set(CHAN=${CUT(CHANNEL,-,1)})
    exten => *76,n,Set(CHAN=USER/${AMPUSER})
    exten => *76,n,dbDel(fop2state/${CHAN})
    exten => *76,n,UserEvent(FOP2ASTDB,Family: fop2state,Channel: ${CHAN},Value: )
    exten => *76,n,Set(STATE=NOT_INUSE)
    exten => *76,n,Gosub(app-dnd-toggle,sstate,1)
    exten => *76,n,Playback(do-not-disturb&de-activated)
    exten => *76,n,Macro(hangupcall,)
    exten => sstate,1,Set(DEVSTATE(Custom:DND${AMPUSER})=${STATE})
    exten => sstate,n,Set(DEVICES=${DB(AMPUSER/${AMPUSER}/device)})
    exten => sstate,n,GotoIf($["${DEVICES}" = "" ]?return)
    exten => sstate,n,Set(LOOPCNT=${FIELDQTY(DEVICES,&)})
    exten => sstate,n,Set(ITER=1)
    exten => sstate,n(begin),Set(DEVSTATE(Custom:DEVDND${CUT(DEVICES,&,${ITER})})=${STATE})
    exten => sstate,n,Set(ITER=$[${ITER} + 1])
    exten => sstate,n,GotoIf($[${ITER} <= ${LOOPCNT}]?begin)
    exten => sstate,n(return),Return()
    

    you just won a new customer!


  • DND status indication
    S siax
    Support

    This seems to make sense. I will try it out and give feedback tomorrow.

    Thanks again!


  • DND status indication
    S siax
    Support

    yes I use the automatic FreePBX configuration and yes I use device and user mode

    thanks for your help!


  • DND status indication
    S siax
    Support

    btw. I did a manager reload and no amportal restart/ core restart but this should no matter I guess (?)

    are we talking about the manager "admin" account? this is where I set the permissions and it's the one entered in fop2.conf


  • DND status indication
    S siax
    Support

    Hello Nicolas,

    thanks for your reply. Unfortunately this does not do the trick. There are quite many calls already running, so I obviously didn't extract the right informartion. here's for you all newchannel and and newexten and everything else I though which might be useful

    127.0.0.1       <- Event: Newchannel
    127.0.0.1       <- Privilege: call,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- ChannelState: 0
    127.0.0.1       <- ChannelStateDesc: Down
    127.0.0.1       <- CallerIDNum: 1007
    127.0.0.1       <- CallerIDName: IETSIPTELCGN007 (Aastra 6757i)
    127.0.0.1       <- AccountCode: 
    127.0.0.1       <- Exten: *78
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: ChannelUpdate
    127.0.0.1       <- Privilege: system,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Channeltype: SIP
    127.0.0.1       <- SIPcallid: 24f1ee7c692d1af5
    127.0.0.1       <- SIPfullcontact: sip:1007@10.0.1.101:5060;transport=udp
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newstate
    127.0.0.1       <- Privilege: call,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- ChannelState: 4
    127.0.0.1       <- ChannelStateDesc: Ring
    127.0.0.1       <- CallerIDNum: 1007
    127.0.0.1       <- CallerIDName: IETSIPTELCGN007 (Aastra 6757i)
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: ExtensionStatus
    127.0.0.1       <- Privilege: call,all
    127.0.0.1       <- Exten: 9666
    127.0.0.1       <- Context: ext-local
    127.0.0.1       <- Hint: SIP/1007&Custom:DND9666
    127.0.0.1       <- Status: 1
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: *78
    127.0.0.1       <- Priority: 1
    127.0.0.1       <- Application: Answer
    127.0.0.1       <- AppData: 
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newstate
    127.0.0.1       <- Privilege: call,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- ChannelState: 6
    127.0.0.1       <- ChannelStateDesc: Up
    127.0.0.1       <- CallerIDNum: 1007
    127.0.0.1       <- CallerIDName: IETSIPTELCGN007 (Aastra 6757i)
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: *78
    127.0.0.1       <- Priority: 2
    127.0.0.1       <- Application: Wait
    127.0.0.1       <- AppData: 1
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: *78
    127.0.0.1       <- Priority: 3
    127.0.0.1       <- Application: Macro
    127.0.0.1       <- AppData: user-callerid,
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-user-callerid
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 1
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: AMPUSER=1007
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-user-callerid
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 2
    127.0.0.1       <- Application: GotoIf
    127.0.0.1       <- AppData: 0?report
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-user-callerid
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 3
    127.0.0.1       <- Application: ExecIf
    127.0.0.1       <- AppData: 1?Set(REALCALLERIDNUM=1007)
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-user-callerid
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 4
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: AMPUSER=9666
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-user-callerid
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 5
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: AMPUSERCIDNAME=Simon
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-user-callerid
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 6
    127.0.0.1       <- Application: GotoIf
    127.0.0.1       <- AppData: 0?report
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-user-callerid
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 7
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: AMPUSERCID=9666
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-user-callerid
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 8
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: CALLERID(all)="Simon" <9666>
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-user-callerid
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 10
    127.0.0.1       <- Application: GotoIf
    127.0.0.1       <- AppData: 0?continue
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-user-callerid
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 11
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: __TTL=64
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-user-callerid
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 12
    127.0.0.1       <- Application: GotoIf
    127.0.0.1       <- AppData: 1?continue
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-user-callerid
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 19
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: CALLERID(number)=9666
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: NewCallerid
    127.0.0.1       <- Privilege: call,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- CallerIDNum: 9666
    127.0.0.1       <- CallerIDName: Simon
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- CID-CallingPres: 0 (Presentation Allowed, Not Screened)
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-user-callerid
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 20
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: CALLERID(name)=Simon
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    
    127.0.0.1       <- Event: NewCallerid
    127.0.0.1       <- Privilege: call,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- CallerIDNum: 9666
    127.0.0.1       <- CallerIDName: Simon
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- CID-CallingPres: 0 (Presentation Allowed, Not Screened)
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-user-callerid
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 21
    127.0.0.1       <- Application: NoOp
    127.0.0.1       <- AppData: Using CallerID "Simon" <9666>
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: *78
    127.0.0.1       <- Priority: 4
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: DB(DND/9666)=YES
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: *78
    127.0.0.1       <- Priority: 5
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: CHAN=SIP/1007
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: *78
    127.0.0.1       <- Priority: 6
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: DB(fop2state/SIP/1007)=Do not Disturb
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: *78
    127.0.0.1       <- Priority: 7
    127.0.0.1       <- Application: UserEvent
    127.0.0.1       <- AppData: FOP2ASTDB,Family: fop2state,Channel: SIP/1007,Value: Do not Disturb
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: UserEvent
    127.0.0.1       <- Privilege: user,all
    127.0.0.1       <- UserEvent: FOP2ASTDB
    127.0.0.1       <- Family: fop2state
    127.0.0.1       <- Channel: SIP/1007
    127.0.0.1       <- Value: Do not Disturb
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: *78
    127.0.0.1       <- Priority: 8
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: DB(DND/9666)=YES
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: *78
    127.0.0.1       <- Priority: 9
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: STATE=BUSY
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: *78
    127.0.0.1       <- Priority: 10
    127.0.0.1       <- Application: Gosub
    127.0.0.1       <- AppData: app-dnd-on,sstate,1
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: app-dnd-on
    127.0.0.1       <- Extension: sstate
    127.0.0.1       <- Priority: 1
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: DEVSTATE(Custom:DND9666)=BUSY
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: app-dnd-on
    127.0.0.1       <- Extension: sstate
    127.0.0.1       <- Priority: 2
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: DEVICES=1007
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: app-dnd-on
    127.0.0.1       <- Extension: sstate
    127.0.0.1       <- Priority: 3
    127.0.0.1       <- Application: GotoIf
    127.0.0.1       <- AppData: 0?return
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: app-dnd-on
    127.0.0.1       <- Extension: sstate
    127.0.0.1       <- Priority: 4
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: LOOPCNT=1
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: app-dnd-on
    127.0.0.1       <- Extension: sstate
    127.0.0.1       <- Priority: 5
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: ITER=1
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: app-dnd-on
    127.0.0.1       <- Extension: sstate
    127.0.0.1       <- Priority: 6
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: DEVSTATE(Custom:DEVDND1007)=BUSY
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: app-dnd-on
    127.0.0.1       <- Extension: sstate
    127.0.0.1       <- Priority: 7
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: ITER=2
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: app-dnd-on
    127.0.0.1       <- Extension: sstate
    127.0.0.1       <- Priority: 8
    127.0.0.1       <- Application: GotoIf
    127.0.0.1       <- AppData: 0?begin
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: app-dnd-on
    127.0.0.1       <- Extension: sstate
    127.0.0.1       <- Priority: 9
    127.0.0.1       <- Application: Return
    127.0.0.1       <- AppData: 
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: *78
    127.0.0.1       <- Priority: 11
    127.0.0.1       <- Application: Playback
    127.0.0.1       <- AppData: do-not-disturb&activated
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: *78
    127.0.0.1       <- Priority: 12
    127.0.0.1       <- Application: Macro
    127.0.0.1       <- AppData: hangupcall,
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-hangupcall
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 4
    127.0.0.1       <- Application: GotoIf
    127.0.0.1       <- AppData: 1?skipblkvm
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-hangupcall
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 7
    127.0.0.1       <- Application: GotoIf
    127.0.0.1       <- AppData: 1?theend
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-hangupcall
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 9
    127.0.0.1       <- Application: Hangup
    127.0.0.1       <- AppData: 
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: h
    127.0.0.1       <- Priority: 1
    127.0.0.1       <- Application: Macro
    127.0.0.1       <- AppData: hangupcall
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-hangupcall
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 1
    127.0.0.1       <- Application: GotoIf
    127.0.0.1       <- AppData: 1?skiprg
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-hangupcall
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 4
    127.0.0.1       <- Application: GotoIf
    127.0.0.1       <- AppData: 1?skipblkvm
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-hangupcall
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 7
    127.0.0.1       <- Application: GotoIf
    127.0.0.1       <- AppData: 1?theend
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-0000619b
    127.0.0.1       <- Context: macro-hangupcall
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 9
    127.0.0.1       <- Application: Hangup
    127.0.0.1       <- AppData: 
    127.0.0.1       <- Uniqueid: 1305721003.106490
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: ExtensionStatus
    127.0.0.1       <- Privilege: call,all
    127.0.0.1       <- Exten: 9666
    127.0.0.1       <- Context: ext-local
    127.0.0.1       <- Hint: SIP/1007&Custom:DND9666
    127.0.0.1       <- Status: 0
    127.0.0.1       <- Server: 0
    
    

    Cheers,
    Simon


  • Visual Phonebook
    S siax
    Support

    did you create the fop2 mysql database?

    if you have phpmyadmin installed it can be imported very easily using mysql.db from the /html/fop2 directory

    German:

    hast du die Mysql Datenbank fΓΌr fop2 angelegt?

    wenn phpmyadmin installiert ist kannst du sehr einfach die mysql.db Datei aus dem /html/fop2 Verzeichnis importieren


  • DND status indication
    S siax
    Support

    System:
    Centos 5 (AsteriskNow)
    Asterisk 1.6.2.17.2
    FreePBX 2.8.1.4
    FOP2 2.20

    Hello,

    so far my FOP2 installation is running fine. Login and call status is indicated without any big trouble. Unfortunately the Do not Disturb status of the users does not reach the FOP. What I checked so far:

    Manager permissions:

    read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate
    write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate

    extensions_override_freepbx.conf in /etc/asterisk (from FOP 2.20, no changes made):

    [app-dnd-on]
    include => app-dnd-on-custom
    exten => *78,1,Answer
    exten => *78,n,Wait(1)
    exten => *78,n,Macro(user-callerid,)
    ; added for fop2
    exten => *78,n,Set(DB(DND/${AMPUSER})=YES)
    exten => *78,n,Set(CHAN=${CUT(CHANNEL,-,1)})
    exten => *78,n,Set(DB(fop2state/${CHAN})=Do not Disturb)
    exten => *78,n,UserEvent(FOP2ASTDB,Family: fop2state,Channel: ${CHAN},Value: Do not Disturb)
    ; end fop2 addition
    exten => *78,n,Set(DB(DND/${AMPUSER})=YES)
    exten => *78,n,Set(STATE=BUSY)
    exten => *78,n,Gosub(app-dnd-on,sstate,1)
    exten => *78,n,Playback(do-not-disturb&activated)
    exten => *78,n,Macro(hangupcall,)
    exten => sstate,1,Set(DEVSTATE(Custom:DND${AMPUSER})=${STATE})
    exten => sstate,n,Set(DEVICES=${DB(AMPUSER/${AMPUSER}/device)})
    exten => sstate,n,GotoIf($["${DEVICES}" = "" ]?return)
    exten => sstate,n,Set(LOOPCNT=${FIELDQTY(DEVICES,&)})
    exten => sstate,n,Set(ITER=1)
    exten => sstate,n(begin),Set(DEVSTATE(Custom:DEVDND${CUT(DEVICES,&,${ITER})})=${STATE})
    exten => sstate,n,Set(ITER=$[${ITER} + 1])
    exten => sstate,n,GotoIf($[${ITER} <= ${LOOPCNT}]?begin)
    exten => sstate,n(return),Return()
    
    [app-dnd-off]
    include => app-dnd-off-custom
    exten => *79,1,Answer
    exten => *79,n,Wait(1)
    exten => *79,n,Macro(user-callerid,)
    ; added for fop2
    exten => *79,n,Set(CHAN=${CUT(CHANNEL,-,1)})
    exten => *79,n,dbDel(fop2state/${CHAN})
    exten => *79,n,UserEvent(FOP2ASTDB,Family: fop2state,Channel: ${CHAN},Value: )
    ; end fop2 addition
    exten => *79,n,dbDel(DND/${AMPUSER})
    exten => *79,n,Set(STATE=NOT_INUSE)
    exten => *79,n,Gosub(app-dnd-off,sstate,1)
    exten => *79,n,Playback(do-not-disturb&de-activated)
    exten => *79,n,Macro(hangupcall,)
    exten => sstate,1,Set(DEVSTATE(Custom:DND${AMPUSER})=${STATE})
    exten => sstate,n,Set(DEVICES=${DB(AMPUSER/${AMPUSER}/device)})
    exten => sstate,n,GotoIf($["${DEVICES}" = "" ]?return)
    exten => sstate,n,Set(LOOPCNT=${FIELDQTY(DEVICES,&)})
    exten => sstate,n,Set(ITER=1)
    exten => sstate,n(begin),Set(DEVSTATE(Custom:DEVDND${CUT(DEVICES,&,${ITER})})=${STATE})
    exten => sstate,n,Set(ITER=$[${ITER} + 1])
    exten => sstate,n,GotoIf($[${ITER} <= ${LOOPCNT}]?begin)
    exten => sstate,n(return),Return()
    
    [app-dnd-toggle]
    include => app-dnd-toggle-custom
    exten => *76,1,Answer
    exten => *76,n,Wait(1)
    exten => *76,n,Macro(user-callerid,)
    exten => *76,n,GotoIf($["${DB(DND/${AMPUSER})}" = ""]?activate:deactivate)
    exten => *76,n(activate),Set(DB(DND/${AMPUSER})=YES)
    exten => *76,n,Set(CHAN=${CUT(CHANNEL,-,1)})
    exten => *76,n,Set(DB(fop2state/${CHAN})=Do not Disturb)
    exten => *76,n,UserEvent(FOP2ASTDB,Family: fop2state,Channel: ${CHAN},Value: Do not Disturb)
    exten => *76,n,Set(STATE=BUSY)
    exten => *76,n,Gosub(app-dnd-toggle,sstate,1)
    exten => *76,n,Playback(do-not-disturb&activated)
    exten => *76,n,Macro(hangupcall,)
    exten => *76,n(deactivate),dbDel(DND/${AMPUSER})
    exten => *76,n,Set(CHAN=${CUT(CHANNEL,-,1)})
    exten => *76,n,dbDel(fop2state/${CHAN})
    exten => *76,n,UserEvent(FOP2ASTDB,Family: fop2state,Channel: ${CHAN},Value: )
    exten => *76,n,Set(STATE=NOT_INUSE)
    exten => *76,n,Gosub(app-dnd-toggle,sstate,1)
    exten => *76,n,Playback(do-not-disturb&de-activated)
    exten => *76,n,Macro(hangupcall,)
    exten => sstate,1,Set(DEVSTATE(Custom:DND${AMPUSER})=${STATE})
    exten => sstate,n,Set(DEVICES=${DB(AMPUSER/${AMPUSER}/device)})
    exten => sstate,n,GotoIf($["${DEVICES}" = "" ]?return)
    exten => sstate,n,Set(LOOPCNT=${FIELDQTY(DEVICES,&)})
    exten => sstate,n,Set(ITER=1)
    exten => sstate,n(begin),Set(DEVSTATE(Custom:DEVDND${CUT(DEVICES,&,${ITER})})=${STATE})
    exten => sstate,n,Set(ITER=$[${ITER} + 1])
    exten => sstate,n,GotoIf($[${ITER} <= ${LOOPCNT}]?begin)
    exten => sstate,n(return),Return()
    
    [app-cf-off]
    include => app-cf-off-custom
    exten => *73,1,Answer
    exten => *73,n,Wait(1)
    exten => *73,n,Macro(user-callerid,)
    exten => *73,n,dbDel(CF/${AMPUSER})
    exten => *73,n,Set(CHAN=${CUT(CHANNEL,-,1)})
    exten => *73,n,UserEvent(FOP2CUST,Family: astdbcust,Channel: ${CHAN},Value: )
    exten => *73,n,Playback(call-fwd-unconditional&de-activated)
    exten => *73,n,Macro(hangupcall,)
    exten => _*73.,1,Answer
    exten => _*73.,n,Wait(1)
    exten => _*73.,n,Set(fromext=${EXTEN:3})
    exten => _*73.,n,dbDel(CF/${fromext})
    exten => _*73.,n,Set(CHAN=${DB(DEVICE/${fromext}/dial)})
    exten => _*73.,n,UserEvent(FOP2CUST,Family: astdbcust,Channel: ${CHAN},Value: )
    exten => _*73.,n,Playback(call-fwd-unconditional&for&extension)
    exten => _*73.,n,SayDigits(${fromext})
    exten => _*73.,n,Playback(cancelled)
    exten => _*73.,n,Macro(hangupcall,)
    
    [app-cf-on]
    include => app-cf-on-custom
    exten => *72,1,Answer
    exten => *72,n,Wait(1)
    exten => *72,n,Macro(user-callerid,)
    exten => *72,n,Playback(call-fwd-unconditional)
    exten => *72,n,Playback(please-enter-your&extension)
    exten => *72,n,Read(fromext,then-press-pound,,,,)
    exten => *72,n,Set(fromext=${IF($["foo${fromext}"="foo"]?${AMPUSER}:${fromext})})
    exten => *72,n,Wait(1)
    exten => *72,n(startread),Playback(ent-target-attendant)
    exten => *72,n,Read(toext,then-press-pound,,,,)
    exten => *72,n,GotoIf($["foo${toext}"="foo"]?startread)
    exten => *72,n,Wait(1)
    exten => *72,n,Set(DB(CF/${fromext})=${toext})
    exten => *72,n,Set(CHAN=${DB(DEVICE/${fromext}/dial)})
    exten => *72,n,UserEvent(FOP2CUST,Family: astdbcust,Channel: ${CHAN},Value: ${toext} )
    exten => *72,n,Playback(call-fwd-unconditional&for&extension)
    exten => *72,n,SayDigits(${fromext})
    exten => *72,n,Playback(is-set-to)
    exten => *72,n,SayDigits(${toext})
    exten => *72,n,Macro(hangupcall,)
    exten => _*72.,1,Answer
    exten => _*72.,n,Wait(1)
    exten => _*72.,n,Macro(user-callerid,)
    exten => _*72.,n,Set(DB(CF/${AMPUSER})=${EXTEN:3})
    exten => _*72.,n,Set(CHAN=${DB(DEVICE/${AMPUSER}/dial)})
    exten => _*72.,n,UserEvent(FOP2CUST,Family: astdbcust,Channel: ${CHAN},Value: ${EXTEN:3} )
    exten => _*72.,n,Playback(call-fwd-unconditional&for&extension)
    exten => _*72.,n,SayDigits(${AMPUSER})
    exten => _*72.,n,Playback(is-set-to)
    exten => _*72.,n,SayDigits(${EXTEN:3})
    exten => _*72.,n,Macro(hangupcall,)
    
    [fop2-park]
    exten => _X.,1,Set(ARRAY(RETURN_EXTENSION,RETURN_CONTEXT)=${CUT(EXTEN,:,1)}\,${CUT(EXTEN,:,2)})
    exten => _X.,n,ParkAndAnnounce(PARKED,,Console/dsp,${RETURN_CONTEXT},${RETURN_EXTENSION},1)
    exten => _X.,n,Goto(${RETURN_CONTEXT},${RETURN_EXTENSION},1)
    exten => _X.,n,Hangup
    
    [fop2-dummy]
    exten => dummy,1,Answer
    exten => dummy,2,Wait(1)
    exten => dummy,3,Hangup
    
    ;[fop2-park]
    ; Alternative fop2-park for asterisk 1.6 and up, using parkinglots and Park application
    ;exten => _X.,1,Set(ARRAY(RETURN_EXTENSION,RETURN_CONTEXT)=${CUT(EXTEN,:,1)},${CUT(EXTEN,:,2)})
    ;exten => _X.,n,Set(PARKINGLOT=parkinglot_${RETURN_CONTEXT})
    ;exten => _X.,n,Park(,${RETURN_CONTEXT},${RETURN_EXTENSION},1,s)
    
    

    log during DND dial via *78 my phone is 1007 my user exten is 9666

    
    127.0.0.1       <- Event: VarSet
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-00003937
    127.0.0.1       <- Variable: MACRO_DEPTH
    127.0.0.1       <- Value: 1
    127.0.0.1       <- Uniqueid: 1305630186.72219
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-00003937
    127.0.0.1       <- Context: macro-hangupcall
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 4
    127.0.0.1       <- Application: GotoIf
    127.0.0.1       <- AppData: 1?skipblkvm
    127.0.0.1       <- Uniqueid: 1305630186.72219
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: VarSet
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-00003937
    127.0.0.1       <- Variable: MACRO_DEPTH
    127.0.0.1       <- Value: 1
    127.0.0.1       <- Uniqueid: 1305630186.72219
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-00003937
    127.0.0.1       <- Context: macro-hangupcall
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 7
    127.0.0.1       <- Application: GotoIf
    127.0.0.1       <- AppData: 1?theend
    127.0.0.1       <- Uniqueid: 1305630186.72219
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: VarSet
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-00003937
    127.0.0.1       <- Variable: MACRO_DEPTH
    127.0.0.1       <- Value: 1
    127.0.0.1       <- Uniqueid: 1305630186.72219
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-00003937
    127.0.0.1       <- Context: macro-hangupcall
    127.0.0.1       <- Extension: s
    127.0.0.1       <- Priority: 9
    127.0.0.1       <- Application: Hangup
    127.0.0.1       <- AppData:
    127.0.0.1       <- Uniqueid: 1305630186.72219
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: VarSet
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-00003937
    127.0.0.1       <- Variable: MACRO_DEPTH
    127.0.0.1       <- Value: 0
    127.0.0.1       <- Uniqueid: 1305630186.72219
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: VarSet
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-00003937
    127.0.0.1       <- Variable: RTPAUDIOQOS
    127.0.0.1       <- Value: ssrc=164155281;themssrc=1923237859;lp=0;rxjitter=0.000215;rxcount=152;txjitter=0.000000;txcount=179;rlp=0;rtt=0.000000
    127.0.0.1       <- Uniqueid: 1305630186.72219
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: VarSet
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-00003937
    127.0.0.1       <- Variable: RTPAUDIOQOSJITTER
    127.0.0.1       <- Value: minrxjitter=0.000001;maxrxjitter=0.009601;avgrxjitter=0.001482;stdevrxjitter=16831570662546681178158623672130372778864813544777170415896070931141270497851246435101681526382304928610904811525591468605440.000000;reported_minjitter=0.000000;reported_maxjitte
    127.0.0.1       <- Uniqueid: 1305630186.72219
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: VarSet
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-00003937
    127.0.0.1       <- Variable: RTPAUDIOQOSLOSS
    127.0.0.1       <- Value: lost=0;expected=152;
    127.0.0.1       <- Uniqueid: 1305630186.72219
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: VarSet
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-00003937
    127.0.0.1       <- Variable: RTPAUDIOQOSRTT
    127.0.0.1       <- Value: minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;
    127.0.0.1       <- Uniqueid: 1305630186.72219
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: VarSet
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- Channel: SIP/1007-00003937
    127.0.0.1       <- Variable: RTPAUDIOQOS
    127.0.0.1       <- Value:
    127.0.0.1       <- Uniqueid: 1305630186.72219
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: Hangup
    127.0.0.1       <- Privilege: call,all
    127.0.0.1       <- Channel: SIP/1007-00003937
    127.0.0.1       <- Uniqueid: 1305630186.72219
    127.0.0.1       <- CallerIDNum: 9666
    127.0.0.1       <- CallerIDName: Simon
    127.0.0.1       <- Cause: 16
    127.0.0.1       <- Cause-txt: Normal Clearing
    127.0.0.1       <- Server: 0
    
    127.0.0.1       <- Event: ExtensionStatus
    127.0.0.1       <- Privilege: call,all
    127.0.0.1       <- Exten: 9666
    127.0.0.1       <- Context: ext-local
    127.0.0.1       <- Hint: SIP/1007&Custom:DND9666
    127.0.0.1       <- Status: 0
    127.0.0.1       <- Server: 0
    

    what else can I check to make this working?
    btw. while reading I also found that some have trouble with the Pause/Unpause status not getting updated. I seem to have that too, but it's a feature we didn't use so far.

    Thanks in advance
    Simon

  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups