SCCP phones support

Hello all!

We recenly purchased FOP2 Full version and found that panel don`t correcly show status of SCCP phones.
We use asterisk 11 and chan_sccp_b module for our Cisco 79xx (more than 30) phones.
Then phone is offline (disconnected from network) status in panel is online and never changed.
All other features, such as transfer, display phone status (lines, etc) working correcly.

I don`t now this is bug or feature request (i think than with chan_skinny behaviour is the same).
Thanks for reply.

Comments

  • I do not know if skinny fires any event for a phone being on or off line. As I do not have any phones myself to test I cannot tell you either, but you can run fop2 in debug mode and capture events, so I can look into them and see if there is anything that can be done.

    service fop2 stop
    cd /usr/local/fop2
    script capture.log
    ./fop2_server -X 1
    (log into fop2, then make a phone available or unavailable)
    ctrl-C
    exit
    service fop2 start

    At that point you have the capture.log file with AMI events related to your environment. You can send that to me telling me what phone got offline or online that was not shown in the fop2 display, so I can trace for related events and see if this can be added as a new feature or not (lack of events means fop2 won't be able to tell the change of status)

    Best regards,
  • Events after off phone 1342:

    127.0.0.1 <- Event: PeerStatus
    127.0.0.1 <- Privilege: call,all
    127.0.0.1 <- Timestamp: 1384775220.353184
    127.0.0.1 <- ChannelType: SCCP
    127.0.0.1 <- ChannelObjectType: DeviceLine
    127.0.0.1 <- PeerStatus: DETACHED
    127.0.0.1 <- SCCPDevice: SEP1CAA07E2A4D7
    127.0.0.1 <- SCCPLine: 1342
    127.0.0.1 <- SCCPLineName: �ени� ��ликов
    127.0.0.1 <- SubscriptionId:
    127.0.0.1 <- SubscriptionName:
    127.0.0.1 <- Server: 0

    127.0.0.1 <- Event: DeviceStatus
    127.0.0.1 <- Privilege: call,all
    127.0.0.1 <- Timestamp: 1384775220.353880
    127.0.0.1 <- ChannelType: SCCP
    127.0.0.1 <- ChannelObjectType: Device
    127.0.0.1 <- DeviceStatus: UNREGISTERED
    127.0.0.1 <- SCCPDevice: SEP1CAA07E2A4D7
    127.0.0.1 <- Server: 0

    127.0.0.1 <- Event: ExtensionStatus
    127.0.0.1 <- Privilege: call,all
    127.0.0.1 <- Timestamp: 1384775220.358130
    127.0.0.1 <- Exten: 1342
    127.0.0.1 <- Context: ext-local
    127.0.0.1 <- Hint: SCCP/1342&Custom:DND1342
    127.0.0.1 <- Status: 4
    127.0.0.1 <- Server: 0

    Events after on phone: 1342

    127.0.0.1 <- Event: DeviceStatus
    127.0.0.1 <- Privilege: call,all
    127.0.0.1 <- Timestamp: 1384775367.905977
    127.0.0.1 <- ChannelType: SCCP
    127.0.0.1 <- ChannelObjectType: Device
    127.0.0.1 <- DeviceStatus: PREREGISTERED
    127.0.0.1 <- SCCPDevice: SEP1CAA07E2A4D7
    127.0.0.1 <- Server: 0

    127.0.0.1 <- Event: PeerStatus
    127.0.0.1 <- Privilege: call,all
    127.0.0.1 <- Timestamp: 1384775368.887042
    127.0.0.1 <- ChannelType: SCCP
    127.0.0.1 <- ChannelObjectType: DeviceLine
    127.0.0.1 <- PeerStatus: ATTACHED
    127.0.0.1 <- SCCPDevice: SEP1CAA07E2A4D7
    127.0.0.1 <- SCCPLine: 1342
    127.0.0.1 <- SCCPLineName: �ени� ��ликов
    127.0.0.1 <- SubscriptionId:
    127.0.0.1 <- SubscriptionName:
    127.0.0.1 <- Server: 0

    127.0.0.1 <- Event: ExtensionStatus
    127.0.0.1 <- Privilege: call,all
    127.0.0.1 <- Timestamp: 1384775368.887237
    127.0.0.1 <- Exten: 1342
    127.0.0.1 <- Context: ext-local
    127.0.0.1 <- Hint: SCCP/1342&Custom:DND1342
    127.0.0.1 <- Status: 0
    127.0.0.1 <- Server: 0

    127.0.0.1 <- Event: DeviceStatus
    127.0.0.1 <- Privilege: call,all
    127.0.0.1 <- Timestamp: 1384775369.125328
    127.0.0.1 <- ChannelType: SCCP
    127.0.0.1 <- ChannelObjectType: Device
    127.0.0.1 <- DeviceStatus: REGISTERED
    127.0.0.1 <- SCCPDevice: SEP1CAA07E2A4D7
    127.0.0.1 <- Server: 0
  • Strange, as any PeerStatus that is not "Registered" or "Reachable" is marked as unregistered. I have added "ATTACHED" to the "ok" states, but the detached status should fall into the unregistered/notok events as it is not either registered or reachable, and thus the button should be grayed out.
  • Unless the PeerStatus is not fired when the phone is unplugged, but when you request status...
  • >I have added "ATTACHED" to the "ok" states,
    Where i can download latest version of FOP2 for check this (we use 2.26 from official site).

    >Unless the PeerStatus is not fired when the phone is unplugged, but when you request status...
    I`m wait this messages on console output and don`t click anything after phone on/off.

    What additional information needed for resolve this?
  • http://download.fop2.com/fop2-2.27j-centos-i386.tgz
    http://download.fop2.com/fop2-2.27j-centos-x86_64.tgz

    I do not need more information... anyways, without the ATTACHED addition, the PeerStatus with DETACHED should result in a greyed out button anyways. Not sure why it did not work in your case. You can try the above version and see how it goes. If there are still problems, you will have to capture complete output when running fop2_server in debug level 1 and send that to me so I can rerun those events through and see how fop2 reacts to them.

    Best regards,
  • Thanks for reply!

    I`m upgrade 2.26->2.27j (x86_64) and nothing changed.
    Because i`m cannot find how to attach the debug output here, i put it on online storage:
    [url:3t852f4o]http://rapidshare.com/share/4BB2F210D5B5DB0D87FBBCD7E5F31410[/url:3t852f4o]

    Some comments to debug (-X 1):
    phone 1384 off and never on - incorrectly show in FOP2
    phone 1342 off and on then debug is collected (comments marked in log OFF and ON).

    Also (i`m already read other topics) UTF-8 (russian language support) in my configuration is broken after upgrade.
    Phone labels is showing as: label=Бехер Вера instead of Russian characters.
    I`m attached screenshot to debug logs.
    It`s perfectly work in 2.26 without SET NAMES and other 'hacks'. UTF-8 in my configuration stored in FreePBX database with default settings (collate latin-1) and correctly showed by fop2.
    I`m try different things (SET NAMES and other), but cannot find the solution (i can create another topic if needed).

    Many thanks for future reply.
  • Sorry for trouble you Nicolás!

    Have you any updates relatively to this issue?
  • I cannot make any updaes as I do not have SCCP phones, for what I see on your events, fop2 should work correctly. The problem is that I do not know if those events happen when they are supposed to happen (when you unplug or turn onn/off a phone). contact me via the live help, as the only way to know that is by working on your actual system. I am online now if you want to chat.

    Best regards,
  • Many thanks for Online Chat.

    Problem is resolved and i think these changes will be included in next stable version.
  • If it would be of use in FOP2 development, I'd happily contribute a SCCP deskset for testing, etc. My intention is to keep our SCCP extensions on CME, but support in FOP2 for SCCP presence info is quite desirable.
  • If it would be of use in FOP2 development, I'd happily contribute a SCCP deskset for testing, etc. My intention is to keep our SCCP extensions on CME, but support in FOP2 for SCCP presence info is quite desirable.

    SCCP registration/presence support was tweaked/fixed already. You can install FOP 2.27 and see extension buttons greyed out if they are not plugged in/registered into asterisk. I do not have any idea on how to integrate that with CME? I do not think FOP2 will work besides or outside the asterisk manager (AMI), as FOP2 does not talk sccp, it just talks to asterisk via AMI.

    Best regards,
Sign In or Register to comment.