[Date Prev][Date Next][Thread Prev] [Thread Next][Date Index] [Thread Index]

Re: [Flash Operator Panel] Problem with asterisk 1.4 and userevent


  • From: Nicolás Gudiño <nicolas@xxxxxxxxxxxx>
  • Date: Sun, 26 Aug 2007 12:02:56 -0300
  • Mailing-list: contact operator_panel-help@lists.house.com.ar; run by ezmlm

Hi Francesco,

Some asterisk version do not append the Channel header to the userevent, so you will have to add it yourself... so, try using something like:

exten => *79,n,UserEvent(ASTDB|Family: DND^Channel: ${CHANNEL} ^Value: ^)

Best regards,

On Aug 26, 2007, at 11:28 AM, Francesco Romano wrote:

Any update on this?
Thank you

Francesco Romano ha scritto:
I have upgraded my asterisk from 1.2 to 1.4.10.1 and the DND notification stopped to works. I forgott something?
This is my extensions.conf:
[app-dnd-off]
exten => *79,1,Answer
exten => *79,n,Wait(1)
exten => *79,n,Macro(user-callerid,)
exten => *79,n,dbDel(DND/${AMPUSER})
exten => *79,n,UserEvent(ASTDB|Family: DND^Value: ^)
exten => *79,n,Playback(do-not-disturb&de-activated)
exten => *79,n,Macro(hangupcall,)


[app-dnd-on]
exten => *78,1,Answer
exten => *78,n,Wait(1)
exten => *78,n,Macro(user-callerid,)
exten => *78,n,Set(DB(DND/${AMPUSER})=YES)
exten => *78,n,UserEvent(ASTDB|Family: DND^Value: On)
exten => *78,n,Playback(do-not-disturb&activated)
exten => *78,n,Macro(hangupcall,)
------------------------------------------------------------
op_astdb.cfg
[DND]
fopledcolor=0x0000FF^0|0x00A000^0
settext=DND: ${value}|
flip=1|0
------------------------------------------------------------
This is the fop log with Asterisk 1.4:
127.0.0.1       <- Event: Newexten
127.0.0.1       <- Privilege: call,all
127.0.0.1       <- Channel: SIP/201-b7702868
127.0.0.1       <- Context: from-internal
127.0.0.1       <- Extension: *78
127.0.0.1       <- Priority: 5
127.0.0.1       <- Application: UserEvent
127.0.0.1       <- AppData: ASTDB|Family: DND^Value: On
127.0.0.1       <- Uniqueid: 1186838922.51
127.0.0.1       <- Server: 0

127.0.0.1 <- Event: UserEvent
127.0.0.1 <- Privilege: user,all
127.0.0.1 <- UserEvent: ASTDB
127.0.0.1 <- Family: DND^Value: On
127.0.0.1 <- Server: 0
Use of uninitialized value in concatenation (.) or string at ./ op_server.pl line 1918.
Use of uninitialized value in pattern match (m//) at ./ op_server.pl line 1919.
Use of uninitialized value in pattern match (m//) at ./ op_server.pl line 1920.
Use of uninitialized value in pattern match (m//) at ./ op_server.pl line 1920.
Use of uninitialized value in pattern match (m//) at ./ op_server.pl line 1920.
Use of uninitialized value in concatenation (.) or string at ./ op_server.pl line 3334.


127.0.0.1       <- Event: Newexten
127.0.0.1       <- Privilege: call,all
127.0.0.1       <- Channel: SIP/201-b7702868
127.0.0.1       <- Context: from-internal
127.0.0.1       <- Extension: *78
127.0.0.1       <- Priority: 6
127.0.0.1       <- Application: Playback
127.0.0.1       <- AppData: do-not-disturb&activated
127.0.0.1       <- Uniqueid: 1186838922.51
127.0.0.1       <- Server: 0

And this with Asterisk 1.2:
127.0.0.1       <- Event: Newexten
127.0.0.1       <- Privilege: call,all
127.0.0.1       <- Channel: SIP/507-b5a080d8
127.0.0.1       <- Context: from-internal
127.0.0.1       <- Extension: *78
127.0.0.1       <- Priority: 5
127.0.0.1       <- Application: UserEvent
127.0.0.1       <- AppData: ASTDB|Family: DND^Value: On
127.0.0.1       <- Uniqueid: 1186839021.3307
127.0.0.1       <- Server: 0

127.0.0.1       <- Event: UserEventASTDB
127.0.0.1       <- Privilege: user,all
127.0.0.1       <- Channel: SIP/507-b5a080d8
127.0.0.1       <- Uniqueid: 1186839021.3307
127.0.0.1       <- Family: DND^Value: On
127.0.0.1       <- Server: 0

127.0.0.1       <- Event: Newexten
127.0.0.1       <- Privilege: call,all
127.0.0.1       <- Channel: SIP/507-b5a080d8
127.0.0.1       <- Context: from-internal
127.0.0.1       <- Extension: *78
127.0.0.1       <- Priority: 6
127.0.0.1       <- Application: Playback
127.0.0.1       <- AppData: do-not-disturb&activated
127.0.0.1       <- Uniqueid: 1186839021.3307
127.0.0.1       <- Server: 0

Thank you


Flash Operator Panel Mailing List

To unsubscribe send an empty message to:
  <operator_panel-unsubscribe@xxxxxxxxxxxxxxxxxx>
To get help send an empty message to:
  <operator_panel-help@xxxxxxxxxxxxxxxxxx>
The archives can be found at:
  http://www.asternic.org/archives/maillist.html





Flash Operator Panel Mailing List

To unsubscribe send an empty message to:
  <operator_panel-unsubscribe@xxxxxxxxxxxxxxxxxx>
To get help send an empty message to:
  <operator_panel-help@xxxxxxxxxxxxxxxxxx>
The archives can be found at:
  http://www.asternic.org/archives/maillist.html




Follow-Ups from:
Francesco Romano

References to:
Francesco Romano
Francesco Romano

[Date Prev][Date Next][Thread Prev] [Thread Next][Date Index] [Thread Index]