Menu

play an announcement

2016-12-28
2016-12-29
  • Gennaro Liuzzi

    Gennaro Liuzzi - 2016-12-28

    No terminating a call at the end of play an announcement.
    set hangup = 3
    set announce = myfile.rmd

    Modem: zoom 3095
    Modem supports Data Mode
    Modem supports FAX Mode 1
    Modem supports VOICE Mode

    Log:
    uSending file /usr/share/ncid/recordings/myfile.rmd, to modem in 8192 byte chunks
    Sent 123105 bytes to modem for announcement
    Sent Modem 4 of 4 characters:

    No Modem Response
    Sent Modem 6 of 6 characters:
    ATE1
    No Modem Response
    Sent Modem 6 of 6 characters:
    ATH0
    No Modem Response
    off-hook for 2 seconds
    Sent Modem 6 of 6 characters:
    ATH0
    Modem response: 6 characters in 1 read:

    OK
    Sent Modem 13 of 13 characters:
    AT+FCLASS=0
    Modem response: 6 characters in 6 reads:

    OK

     

    Last edit: Gennaro Liuzzi 2016-12-28
  • John L. Chmielewski

    Your partial log shows that the server sent ATH0, the hangup command, twice. The modem returned OK the second time the hangup command was sent, indicating it hung up the modem. Did you try calling yourself and listen to the hangup message? If it played the message, then it picked up the line.

    Does hangup mode 1 hang up calls? If not, test with minicom and verify that the modem will not pickup and hangup calls.

     
  • Gennaro Liuzzi

    Gennaro Liuzzi - 2016-12-29

    The message is ok, the disconnection occurs 1m after the end.
    I tried using the default messages, no change.

    if I look at the modem, the line is not engaged, but I can not receive calls for 1 minute and the caller's phone is busy after listening to the message (for 1 minute).

    I have the same problem with hangup = 1

    if i use picocom , ATH1 ATDxxxxxxxxxx and ATH0 work.

    [ncidd.log]
    Started: 12/29/2016 14:21:41
    Server: ncidd (NCID) 1.6
    API: 1.5 Feature Set 1 2 3 4 5
    Sysname: Linux
    Machine: armv7l
    Release: 4.4.38-v7+
    Version: #938 SMP Thu Dec 15 15:22:21 GMT 2016
    Command line: /usr/sbin/ncidd
    --pidfile /var/run/ncidd.pid
    Logfile: /var/log/ncidd.log
    Processed config file: /etc/ncid/ncidd.conf
    Verbose level: 3
    Configured to receive a CID without a NAME
    Configured to send 'cidlog' to clients.
    Configured to send 'cidinfo' to clients.
    Helper tools:
    /usr/bin/cidupdate
    /usr/bin/ncidutil
    Using simple expressions for aliases
    Using simple expressions for blacklist/whitelist entries

    Begin: Loading alias, blacklist, and whitelist files [14:21:41]
    Processed alias file: /etc/ncid/ncidd.alias
    Alias Table:
    Number of Entries: 0
    Processed blacklist file: /etc/ncid/ncidd.blacklist
    Blacklist Table:
    Number of Entries: 26
    Calls in the blacklist file will be terminated
    Processed whitelist file: /etc/ncid/ncidd.whitelist
    Whitelist Table:
    Number of Entries: 0
    Calls in the whitelist file will not be terminated
    Leading 1 in call & alias/blacklist/whitelist not ignored
    End: Loaded alias, blacklist, and whitelist files [14:21:41]

    CID logfile: /var/log/cidcall.log
    CID logfile maximum size: 500000 bytes
    Data logfile not present: /var/log/ciddata.log
    Maximum number of clients/gateways: 50
    Telephone Line Identifier: -
    TTY port opened: /dev/ttyACM0
    TTY port speed: 115200
    TTY lock file: /var/lock/LCK..ttyACM0
    TTY port control signals enabled
    TTY port initialized in ICANON mode.
    Checking Modem Capabilities...
    TTY port changed to RAW mode.
    Sent Modem 20 of 20 characters:
    AT Z S0=0 E1 V1 Q0
    Modem response: 7 characters in 1 read:

    OK

    Modem Initialized
    Sent Modem 6 of 6 characters:
    ATI3
    Modem response: 39 characters in 1 read:
    ATI3
    CX93001-EIS_V0.2002-V92

    OK

    Modem Identifier: CX93001-EIS_V0.2002-V92
    Sent Modem 9 of 9 characters:
    AT+GCI?
    Modem response: 27 characters in 1 read:

    T+GCI?
    +GCI: B5

    OK

    Modem country code: B5 United States
    Sent Modem 6 of 6 characters:
    AT&V
    Modem response: 824 characters in 1 read:
    AT&V
    ACTIVE PROFILE:
    B1 E1 L2 M1 N0 Q0 T V1 W0 X4 Y0 &C1 &D2 &G0 &J0 &K3 &Q5 &R1 &S0 &T5 &X0 &Y0
    S00:000 S01:000 S02:043 S03:013 S04:010 S05:008 S06:002 S07:050 S08:001 S09:006
    S10:014 S11:085 S12:050 S18:000 S25:005 S26:001 S36:007 S38:020 S46:138 S48:007
    S95:000

    STORED PROFILE 0:
    B1 E1 L1 M1 N0 Q0 T V1 W0 X4 Y0 &C1 &D2 &G0 &J0 &K3 &Q5 &R1 &S0 &T5 &X0
    S00:000 S02:043 S06:002 S07:050 S08:001 S09:006 S10:014 S11:085 S12:050 S18:000
    S36:007 S40:104 S41:195 S46:138 S95:000

    STORED PROFILE 1:
    B1 E1 L1 M1 N0 Q0 T V1 W0 X4 Y0 &C1 &D2 &G0 &J0 &K3 &Q5 &R1 &S0 &T5 &X0
    S00:000 S02:043 S06:002 S07:050 S08:001 S09:006 S10:014 S11:085 S12:050 S18:000
    S36:007 S40:104 S41:195 S46:138 S95:000

    TELEPHONE NUMBERS:
    0= 1=
    2= 3=

    OK

    Modem ACTIVE PROFILE:
    B1 E1 L2 M1 N0 Q0 T V1 W0 X4 Y0 &C1 &D2 &G0 &J0 &K3 &Q5 &R1 &S0 &T5 &X0 &Y0
    S00:000 S01:000 S02:043 S03:013 S04:010 S05:008 S06:002 S07:050 S08:001 S09:006
    S10:014 S11:085 S12:050 S18:000 S25:005 S26:001 S36:007 S38:020 S46:138 S48:007
    S95:000

    STORED PROFILE 0:
    B1 E1 L1 M1 N0 Q0 T V1 W0 X4 Y0 &C1 &D2 &G0 &J0 &K3 &Q5 &R1 &S0 &T5 &X0
    S00:000 S02:043 S06:002 S07:050 S08:001 S09:006 S10:014 S11:085 S12:050 S18:000
    S36:007 S40:104 S41:195 S46:138 S95:000

    STORED PROFILE 1:
    B1 E1 L1 M1 N0 Q0 T V1 W0 X4 Y0 &C1 &D2 &G0 &J0 &K3 &Q5 &R1 &S0 &T5 &X0
    S00:000 S02:043 S06:002 S07:050 S08:001 S09:006 S10:014 S11:085 S12:050 S18:000
    S36:007 S40:104 S41:195 S46:138 S95:000

    TELEPHONE NUMBERS:
    0= 1=
    2= 3=
    Sent Modem 13 of 13 characters:
    AT+FCLASS=?
    Modem response: 32 characters in 1 read:

    T+FCLASS=?
    0,1,1.0,8

    OK

    Modem supports Data Mode
    Modem supports FAX Mode 1
    Modem supports VOICE Mode
    TTY port changed to ICANON mode.
    TTY port changed to RAW mode.
    Sent Modem 20 of 20 characters:
    AT Z S0=0 E1 V1 Q0
    Modem response: 26 characters in 1 read:
    AT Z S0=0 E1 V1 Q0
    OK

    Modem initialized.
    Sent Modem 11 of 11 characters:
    AT+VCID=1
    Modem response: 17 characters in 1 read:

    T+VCID=1
    OK

    Modem set for CallerID.
    TTY port changed to ICANON mode.
    CallerID from AT Modem and optional gateways
    Does not handle modem calls without Caller ID
    Modem used for CallerID and to terminate calls
    Internal Hangup recording file: /usr/share/ncid/recordings/myfile.rmd
    TTY port changed to RAW mode.
    Sent Modem 13 of 13 characters:
    AT+FCLASS=8
    Modem response: 19 characters in 1 read:

    T+FCLASS=8
    OK

    Sent Modem 8 of 8 characters:
    AT+FMI
    Modem response: 26 characters in 1 read:

    T+FMI
    CONEXANT

    OK

    Manufacturer: CONEXANT
    Sent Modem 10 of 10 characters:
    AT+VSM=?
    Modem response: 228 characters in 59 reads:
    AT+VSM=?
    0,"SIGNED PCM",8,0,8000,0,0
    1,"UNSIGNED PCM",8,0,8000,0,0
    129,"IMA ADPCM",4,0,8000,0,0
    130,"UNSIGNED PCM",8,0,8000,0,0
    131,"Mu-Law",8,0,8000,0,0
    132,"A-Law",8,0,8000,0,0
    133,"14 bit PCM",14,0,8000,0,0

    O

    Modem Voice Sampling Methods:
    0,"SIGNED PCM",8,0,8000,0,0
    1,"UNSIGNED PCM",8,0,8000,0,0
    129,"IMA ADPCM",4,0,8000,0,0
    130,"UNSIGNED PCM",8,0,8000,0,0
    131,"Mu-Law",8,0,8000,0,0
    132,"A-Law",8,0,8000,0,0
    133,"14 bit PCM",14,0,8000,0,0
    Modem Voice Sampling Method selected: AT+VSM=130
    Sent Modem 13 of 13 characters:
    AT+FCLASS=0
    Modem response: 19 characters in 1 read:

    T+FCLASS=0
    OK

    TTY port changed to ICANON mode.
    Internal Hangup Mode = 3: play an announcement then hangup on a blacklisted call
    Network Port: 3333
    Wrote pid 2402 in pidfile: /var/run/ncidd.pid
    Modem is fd 4
    NCID connection socket is sd 5 pos 1
    End of startup: 12/29/2016 14:21:48

    RING
    CIDINFO: LINE-RING1TIME14:22:07*

    DATE = 1229
    TIME = 1422
    NMBR = xxxxxxxxxx
    Whitelist empty
    Checked Blacklist for match flag=0 ret=1 nmbrmatch=2
    Blacklist Match #20: xxxxxxxxxx number: xxxxxxxxxx name: NO NAME
    Sent Modem 4 of 4 characters:
    AT
    Modem response: 10 characters in 1 read:

    T
    OK

    Sent Modem 13 of 13 characters:
    AT+FCLASS=8
    Modem response: 19 characters in 1 read:

    T+FCLASS=8
    OK

    Sent Modem 12 of 12 characters:
    AT+VGT=128
    Modem response: 18 characters in 1 read:

    T+VGT=128
    OK

    Sent Modem 12 of 12 characters:
    AT+VSM=130
    Modem response: 18 characters in 1 read:

    T+VSM=130
    OK

    Sent Modem 10 of 10 characters:
    AT+VLS=1
    Modem response: 16 characters in 4 reads:
    AT+VLS=1
    OK

    Sent Modem 6 of 6 characters:
    ATE0
    Modem response: 11 characters in 1 read:
    ATE0
    OK
    Sent Modem 8 of 8 characters:
    AT+VTX
    Modem response: 13 characters in 1 read:

    CONNECT
    uSending file /usr/share/ncid/recordings/myfile.rmd, to modem in 8192 byte chunks
    Sent 123105 bytes to modem for announcement
    Sent Modem 4 of 4 characters:

    No Modem Response
    Sent Modem 6 of 6 characters:
    ATE1
    No Modem Response
    Sent Modem 6 of 6 characters:
    ATH0
    No Modem Response
    off-hook for 2 seconds
    Sent Modem 6 of 6 characters:
    ATH0
    Modem response: 6 characters in 1 read:

    OK
    Sent Modem 13 of 13 characters:
    AT+FCLASS=0
    Modem response: 6 characters in 6 reads:

    OK
    HUP: DATE12292016TIME1422LINE-NMBRxxxxxxxxxxMESGNONENAMENO NAME*

    Client 6 pos 2 from 192.168.1.107 [xxxxxxxxxx] connected 12/29/2016 14:22:27
    200 Server: ncidd (NCID) 1.6
    210 API: 1.5 Feature Set 1 2 3 4 5
    Client Sent: HELLO: IDENT: client ncid (NCID) 1.6
    Client Ident: client ncid (NCID) 1.6
    Client Sent: no data
    Sent call log: /var/log/cidcall.log
    250 End of call log
    Sent 'hangup-3' option to client
    300 End of connection startup

    Client 7 pos 3 from 192.168.1.107 [xxxxxxxx] connected 12/29/2016 14:22:27
    200 Server: ncidd (NCID) 1.6
    210 API: 1.5 Feature Set 1 2 3 4 5
    Client Sent: HELLO: IDENT: client ncid (NCID) 1.6
    Client Ident: client ncid (NCID) 1.6
    Client Sent: no data
    Sent call log: /var/log/cidcall.log
    250 End of call log
    Sent 'hangup-3' option to client
    300 End of connection startup

    CIDINFO: LINE-RING0TIME14:22:38*

     

    Last edit: Gennaro Liuzzi 2016-12-29
  • John L. Chmielewski

    You said the modem indicates the line is not engaged. Are you saying it thinks it hung up? Simple test is to pull the line from the modem and see if that it disconnects immediately.

    Does hangup mode 1 (H1) act the same way? Waiting a minute before the line hangs up? Can you retest H1 and provide the logfile? You already provided the H3 logfile in your last message. The H1 mode just issues ATH1 and ATH0 so if picocom works OK, mode H1 should also work OK.

     

Log in to post a comment.