asterisk / asterisk

The official Asterisk Project repository.

Home Page:https://www.asterisk.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug]: app.c:3114 parse_options: Unrecognized option: 'X' when Monitor has b parameter

ericiper opened this issue · comments

Severity

Trivial

Versions

18.20.2,18.21.0

Components/Modules

res_monitor

Operating Environment

debian 11.6

Frequency of Occurrence

Constant

Issue Description

With PJSIP channel, when Monitor is activated with ,b option, a warning message is triggered:
[Mar 6 15:46:14] WARNING[1226793][C-00000024]: app.c:3114 parse_options: Unrecognized option: 'X'

Removing the ,b does not generate the message
This did not happen in 18.2.1

Relevant log output

[Mar  6 15:46:14] WARNING[1226793][C-00000024]: app.c:3114 parse_options: Unrecognized option: 'X'

Asterisk Issue Guidelines

  • Yes, I have read the Asterisk Issue Guidelines

Please provide complete dialplan for this.

Hi,
I've reproduced on a vanilla 18.21.0 install on debian 11. The issue appears when the call is bridged to another trunk, and does not appear when using a local dialplan such as Echo()

[from-phone]
exten => _X.,1,Verbose(1,${CONTEXT} - ${STRFTIME(${EPOCH},,%C%y-%m-%d %H:%M:%S)} - ${CALLERID(ALL)} - ${EXTEN} i- ${UNIQUEID})
 same => n,Monitor(wav,${UNIQUEID},b)
 same => n,Wait(2)
 same => n,Answer()
 same => n,Playback(demo-echotest)
 same => n,Echo()

exten => _06.,1,Verbose(1,${CONTEXT} - ${STRFTIME(${EPOCH},,%C%y-%m-%d %H:%M:%S)} - ${CALLERID(ALL)} - ${EXTEN} i- ${UNIQUEID})
 same => n,Monitor(wav,${UNIQUEID},b)
 same => n,Dial(PJSIP/${EXTEN}@polluxtest)

When Dialing a number that triggers the _06. extension, here are the logs:

    -- Executing [0696900901@from-phone:1] Verbose("PJSIP/testname-00000006", "1,from-phone - 2024-03-07 09:33:46 - "deb11" <testname> - 0696900901 i- 1709818426.10") in new stack
 from-phone - 2024-03-07 09:33:46 - "deb11" <testname> - 0696900901 i- 1709818426.10
    -- Executing [0696900901@from-phone:2] Monitor("PJSIP/testname-00000006", "wav,1709818426.10,b") in new stack
    -- Executing [0696900901@from-phone:3] Dial("PJSIP/testname-00000006", "PJSIP/06000000@polluxtest") in new stack
    -- Called PJSIP/0696900901@polluxtest
    -- PJSIP/polluxtest-00000007 is making progress passing it to PJSIP/testname-00000006
debian11*CLI> 
debian11*CLI> 
    -- PJSIP/polluxtest-00000007 answered PJSIP/testname-00000006
**[Mar  7 09:33:54] WARNING[69216][C-00000006]: app.c:3114 parse_options: Unrecognized option: 'X'**
    -- Channel PJSIP/polluxtest-00000007 joined 'simple_bridge' basic-bridge <fce8cd95-e801-4fe7-bee1-eb2f90637c53>
    -- Channel PJSIP/testname-00000006 joined 'simple_bridge' basic-bridge <fce8cd95-e801-4fe7-bee1-eb2f90637c53>
    -- Channel PJSIP/testname-00000006 left 'simple_bridge' basic-bridge <fce8cd95-e801-4fe7-bee1-eb2f90637c53>
    -- Channel PJSIP/polluxtest-00000007 left 'simple_bridge' basic-bridge <fce8cd95-e801-4fe7-bee1-eb2f90637c53>
  == Spawn extension (from-phone, 0696900901, 3) exited non-zero on 'PJSIP/testname-00000006'

This issue was closed by #640.