[asterisk-bugs] [JIRA] (ASTERISK-24695) Unable to get 'B' function of MixMonitor to work

xrobau (JIRA) noreply at issues.asterisk.org
Thu Jan 15 17:35:34 CST 2015


    [ https://issues.asterisk.org/jira/browse/ASTERISK-24695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=224506#comment-224506 ] 

xrobau commented on ASTERISK-24695:
-----------------------------------

More details of the original call
{code}localhost*CLI> core show channel SIP/300-00000021
 -- General --
           Name: SIP/300-00000021
           Type: SIP
       UniqueID: 1421364747.685
       LinkedID: 1421364747.683
      Caller ID: 300
 Caller ID Name: Rob Desk
Connected Line ID: 303
Connected Line ID Name: 303
Eff. Connected Line ID: 303
Eff. Connected Line ID Name: 303
    DNID Digits: (N/A)
       Language: en
          State: Up (6)
  NativeFormats: (g722)
    WriteFormat: ulaw
     ReadFormat: ulaw
 WriteTranscode: Yes (ulaw at 8000)->(slin at 8000)->(g722 at 16000)
  ReadTranscode: Yes (g722 at 16000)->(slin at 8000)->(ulaw at 8000)
 Time to Hangup: 0
   Elapsed Time: 0h0m16s
      Bridge ID: 7c28bc65-21bf-41c0-bb07-edaafd30b67d
 --   PBX   --
        Context: from-internal
      Extension:
       Priority: 1
     Call Group: 0
   Pickup Group: 0
    Application: AppDial
           Data: (Outgoing Line)
 Call Identifer: [C-00000040]
      Variables:
BRIDGEPVTCALLID=4203b1f3-21520088 at 10.46.80.100
BRIDGEPEER=SIP/303-00000020
DIALEDPEERNUMBER=300
SIPCALLID=683781fd62d5bbeb41a441b117c7644e at 192.168.15.5:5060
KEEPCID=TRUE
CWIGNORE=
REC_STATUS=RECORDING
RECORD_ID=SIP/303-00000020
MIXMON_ID=0x7fb300922900
CALLFILENAME=internal-300-303-20150116-093227-1421364747.683
REC_POLICY_MODE=YES
MON_FMT=wav
FROMEXTEN=303
TIMESTR=20150116-093227
YEAR=2015
MONTH=01
DAY=16
PICKUPMARK=300
EXTTOCALL=300
TTL=64
CALLEE_ACCOUNCODE=
DIAL_OPTIONS=Ttr
RINGTIMER=15
  CDR Variables:
level 1: calledsubaddr=
level 1: callingsubaddr=
level 1: dnid=
level 1: clid="Rob De
level 1: src=300
level 1: dcontext=from-in
level 1: channel=SIP/300
level 1: lastapp=AppDial
level 1: lastdata=(Outgoi
level 1: start=1421364
level 1: answer=1421364
level 1: end=1421364
level 1: duration=1
level 1: billsec=0
level 1: disposition=8
level 1: amaflags=3
level 1: uniqueid=1421364
level 1: linkedid=1421364
level 1: sequence=129

    -- Called hook at __func_periodic_hook_context__
    -- Executing [hook at __func_periodic_hook_context__:1] Set("Local/hook at __func_periodic_hook_context__-00000030;2", "EncodedChannel=SIP/303-00000020") in new stack
    -- Executing [hook at __func_periodic_hook_context__:2] Set("Local/hook at __func_periodic_hook_context__-00000030;2", "GROUP_NAME=SIP/303-0000002011") in new stack
    -- Executing [hook at __func_periodic_hook_context__:3] Set("Local/hook at __func_periodic_hook_context__-00000030;2", "GROUP(periodic-hook)=SIP/303-0000002011") in new stack
    -- Executing [hook at __func_periodic_hook_context__:4] ExecIf("Local/hook at __func_periodic_hook_context__-00000030;2", "0?Hangup()") in new stack
    -- Executing [hook at __func_periodic_hook_context__:5] Set("Local/hook at __func_periodic_hook_context__-00000030;2", "ChannelToSpy=SIP/303-00000020") in new stack
    -- Executing [hook at __func_periodic_hook_context__:6] ChanSpy("Local/hook at __func_periodic_hook_context__-00000030;2", "SIP/303-00000020,qEB") in new stack
  == Spawn extension (__func_periodic_hook_context__, hook, 6) exited non-zero on 'Local/hook at __func_periodic_hook_context__-00000030;2'
    -- Called hook at __func_periodic_hook_context__
    -- Executing [hook at __func_periodic_hook_context__:1] Set("Local/hook at __func_periodic_hook_context__-00000031;2", "EncodedChannel=SIP/303-00000020") in new stack
    -- Executing [hook at __func_periodic_hook_context__:2] Set("Local/hook at __func_periodic_hook_context__-00000031;2", "GROUP_NAME=SIP/303-0000002011") in new stack
    -- Executing [hook at __func_periodic_hook_context__:3] Set("Local/hook at __func_periodic_hook_context__-00000031;2", "GROUP(periodic-hook)=SIP/303-0000002011") in new stack
    -- Executing [hook at __func_periodic_hook_context__:4] ExecIf("Local/hook at __func_periodic_hook_context__-00000031;2", "0?Hangup()") in new stack
    -- Executing [hook at __func_periodic_hook_context__:5] Set("Local/hook at __func_periodic_hook_context__-00000031;2", "ChannelToSpy=SIP/303-00000020") in new stack
    -- Executing [hook at __func_periodic_hook_context__:6] ChanSpy("Local/hook at __func_periodic_hook_context__-00000031;2", "SIP/303-00000020,qEB") in new stack
  == Spawn extension (__func_periodic_hook_context__, hook, 6) exited non-zero on 'Local/hook at __func_periodic_hook_context__-00000031;2'
    -- Channel SIP/300-00000021 left 'simple_bridge' basic-bridge <7c28bc65-21bf-41c0-bb07-edaafd30b67d>
    -- Channel SIP/303-00000020 left 'simple_bridge' basic-bridge <7c28bc65-21bf-41c0-bb07-edaafd30b67d>
  == Spawn extension (macro-dial-one, s, 44) exited non-zero on 'SIP/303-00000020' in macro 'dial-one'
  == Spawn extension (macro-exten-vm, s, 16) exited non-zero on 'SIP/303-00000020' in macro 'exten-vm'
  == Spawn extension (from-internal, 300, 2) exited non-zero on 'SIP/303-00000020'
    -- Executing [h at from-internal:1] Hangup("SIP/303-00000020", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/303-00000020'
  == MixMonitor close filestream (mixed)
  == End MixMonitor Recording SIP/303-00000020
localhost*CLI> quit
{code}

> Unable to get 'B' function of MixMonitor to work
> ------------------------------------------------
>
>                 Key: ASTERISK-24695
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24695
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_chanspy, Applications/app_mixmonitor
>    Affects Versions: 13.1.0
>            Reporter: xrobau
>
> The new 'B' Param to MixMonitor is having difficulty when running Chanspy.
> {code}localhost*CLI> sip show channels
> Peer             User/ANR         Call ID          Format           Hold     Last Message    Expiry     Peer
> 10.46.80.100     303              acc0a6e9-697af0  (ulaw)           No       Rx: ACK                    303
> 192.168.15.125   300              181cb63801a2ec8  (g722)           No       Tx: ACK                    300
> 2 active SIP dialogs
> localhost*CLI>{code}
> When enabling MixMonitor on that channel, the hook is loaded and triggered, but each time it runs...
> {code}
>     -- Executing [s at macro-one-touch-record:1] Set("SIP/303-00000016", "ONETOUCH_REC_SCRIPT_STATUS=") in new stack
>     -- Executing [s at macro-one-touch-record:2] System("SIP/303-00000016", "/var/lib/asterisk/bin/one_touch_record.php "SIP/303-00000016"") in new stack
>   == Begin MixMonitor Recording SIP/303-00000016
>     -- Called hook at __func_periodic_hook_context__
>     -- Executing [hook at __func_periodic_hook_context__:1] Set("Local/hook at __func_periodic_hook_context__-00000023;2", "EncodedChannel=SIP/303-00000016") in new stack
>     -- Executing [hook at __func_periodic_hook_context__:2] Set("Local/hook at __func_periodic_hook_context__-00000023;2", "GROUP_NAME=SIP/303-000000166") in new stack
>     -- Executing [hook at __func_periodic_hook_context__:3] Set("Local/hook at __func_periodic_hook_context__-00000023;2", "GROUP(periodic-hook)=SIP/303-000000166") in new stack
>     -- Executing [hook at __func_periodic_hook_context__:4] ExecIf("Local/hook at __func_periodic_hook_context__-00000023;2", "0?Hangup()") in new stack
>     -- Executing [hook at __func_periodic_hook_context__:5] Set("Local/hook at __func_periodic_hook_context__-00000023;2", "ChannelToSpy=SIP/303-00000016") in new stack
>     -- Executing [hook at __func_periodic_hook_context__:6] ChanSpy("Local/hook at __func_periodic_hook_context__-00000023;2", "SIP/303-00000016,qEB") in new stack
>   == Spawn extension (__func_periodic_hook_context__, hook, 6) exited non-zero on 'Local/hook at __func_periodic_hook_context__-00000023;2'
> {code}
> Chanspy crashes with a spurious codec translation error
> {code}
> [2015-01-16 09:08:42] DEBUG[24244][C-00000031] pbx.c: Launching 'ChanSpy'
> [2015-01-16 09:08:42] VERBOSE[24244][C-00000031] pbx.c: Executing [hook at __func_periodic_hook_context__:6] ChanSpy("Local/hook at __func_periodic_hook_context__-00000024;2", "SIP/303-00000016,qEB") in new stack
> [2015-01-16 09:08:42] WARNING[24244][C-00000031] channel.c: Unable to find a codec translation path from (slin) to (slin)
> [2015-01-16 09:08:42] ERROR[24244][C-00000031] app_chanspy.c: Could Not Set Write Format.
> [2015-01-16 09:08:42] DEBUG[24244][C-00000031] pbx.c: Spawn extension (__func_periodic_hook_context__,hook,6) exited non-zero on 'Local/hook at __func_periodic_hook_context__-00000024;2'
> [2015-01-16 09:08:42] VERBOSE[24244][C-00000031] pbx.c: Spawn extension (__func_periodic_hook_context__, hook, 6) exited non-zero on 'Local/hook at __func_periodic_hook_context__-00000024;2'
> [2015-01-16 09:08:42] DEBUG[24244][C-00000031] channel.c: Soft-Hanging (0x10) up channel 'Local/hook at __func_periodic_hook_context__-00000024;2'
> [2015-01-16 09:08:42] DEBUG[24244][C-00000031] channel.c: Hanging up channel 'Local/hook at __func_periodic_hook_context__-00000024;2'
> [2015-01-16 09:08:42] DEBUG[27629] cdr.c: Finalized CDR for Local/hook at __func_periodic_hook_context__-00000024;2 - start 1421363322.708113 answer 0.000000 end 1421363322.709825 dispo FAILED
> [2015-01-16 09:08:42] DEBUG[24243] channel.c: Hanging up channel 'Local/hook at __func_periodic_hook_context__-00000024;1'
> [2015-01-16 09:08:42] DEBUG[27629] cdr.c: Finalized CDR for Local/hook at __func_periodic_hook_context__-00000024;1 - start 1421363322.708073 answer 0.000000 end 1421363322.709928 dispo NO ANSWER
> [2015-01-16 09:08:42] DEBUG[27629] cdr.c: Skipping CDR  for Local/hook at __func_periodic_hook_context__-00000024;1 since we weren't answered
> [2015-01-16 09:08:42] DEBUG[27629] cdr.c: Skipping CDR  for Local/hook at __func_periodic_hook_context__-00000024;2 since we weren't answered
> {code}
> Note that it's trying to translate from slin to slin.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list