[asterisk-bugs] [JIRA] (ASTERISK-28693) chan_sip: SIP MESSAGE beginning with a whitespace appears empty in the dialplan

Sean Bright (JIRA) noreply at issues.asterisk.org
Tue Oct 26 11:46:50 CDT 2021


     [ https://issues.asterisk.org/jira/browse/ASTERISK-28693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Bright updated ASTERISK-28693:
-----------------------------------

    Description: 
User agent Baresip v0.6.5 is sending a valid MESSAGE:
{noformat}
MESSAGE sip:mist at eee SIP/2.0
Via: SIP/2.0/UDP 192.168.4.18:5566;branch=z9hG4bK0d16bdb32c8c518a;rport
Max-Forwards: 70
To: <sip:mist at eee>
From: <sip:eee at eee>;tag=bdafebcf5b867c48
Call-ID: 689603aa8194865a
CSeq: 13255 MESSAGE
User-Agent: baresip v0.6.5 (?/?)
Accept: text/plain
Content-Type: text/plain
Content-Length: 3

 ii
{noformat}

(the {{" ii"}} message begins with a whitespace)

Asterisk sip.conf:
{noformat}
[general]
context=incoming
accept_outofcall_message=yes
outofcall_message_context=iimm
{noformat}

Dialplan:
{noformat}
[iimm]
exten => _[a-z].,1,NoOp('${MESSAGE(body)}')
exten => _[a-z].,n,Hangup()
{noformat}
Result:
{noformat}
-- Executing [mist at iimm:1] NoOp("Message/ast_msg_queue", "''") in new stack
{noformat}

Sending the same message " ii" to another Baresip client without Asterisk as a proxy works fine.

  was:
User agent Baresip v0.6.5 is sending a valid MESSAGE:
{noformat}
MESSAGE sip:mist at eee SIP/2.0
Via: SIP/2.0/UDP 192.168.4.18:5566;branch=z9hG4bK0d16bdb32c8c518a;rport
Max-Forwards: 70
To: <sip:mist at eee>
From: <sip:eee at eee>;tag=bdafebcf5b867c48
Call-ID: 689603aa8194865a
CSeq: 13255 MESSAGE
User-Agent: baresip v0.6.5 (?/?)
Accept: text/plain
Content-Type: text/plain
Content-Length: 3

 ii
{noformat}

(the " ii" message begins with a whitespace)

Asterisk sip.conf:
{noformat}
[general]
context=incoming
accept_outofcall_message=yes
outofcall_message_context=iimm
{noformat}

Dialplan:
{noformat}
[iimm]
exten => _[a-z].,1,NoOp('${MESSAGE(body)}')
exten => _[a-z].,n,Hangup()
{noformat}
Result:
{noformat}
-- Executing [mist at iimm:1] NoOp("Message/ast_msg_queue", "''") in new stack
{noformat}

Sending the same message " ii" to another Baresip client without Asterisk as a proxy works fine.


> chan_sip: SIP MESSAGE beginning with a whitespace appears empty in the dialplan
> -------------------------------------------------------------------------------
>
>                 Key: ASTERISK-28693
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28693
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/Messaging
>    Affects Versions: 16.2.1
>         Environment: Linux debian 4.19.0-6-686-pae #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) i686 GNU/Linux
>            Reporter: Frank Matano
>            Assignee: Sean Bright
>      Target Release: 13.31.0, 16.8.0, 17.2.0, 18.0.0
>
>         Attachments: out.cap
>
>
> User agent Baresip v0.6.5 is sending a valid MESSAGE:
> {noformat}
> MESSAGE sip:mist at eee SIP/2.0
> Via: SIP/2.0/UDP 192.168.4.18:5566;branch=z9hG4bK0d16bdb32c8c518a;rport
> Max-Forwards: 70
> To: <sip:mist at eee>
> From: <sip:eee at eee>;tag=bdafebcf5b867c48
> Call-ID: 689603aa8194865a
> CSeq: 13255 MESSAGE
> User-Agent: baresip v0.6.5 (?/?)
> Accept: text/plain
> Content-Type: text/plain
> Content-Length: 3
>  ii
> {noformat}
> (the {{" ii"}} message begins with a whitespace)
> Asterisk sip.conf:
> {noformat}
> [general]
> context=incoming
> accept_outofcall_message=yes
> outofcall_message_context=iimm
> {noformat}
> Dialplan:
> {noformat}
> [iimm]
> exten => _[a-z].,1,NoOp('${MESSAGE(body)}')
> exten => _[a-z].,n,Hangup()
> {noformat}
> Result:
> {noformat}
> -- Executing [mist at iimm:1] NoOp("Message/ast_msg_queue", "''") in new stack
> {noformat}
> Sending the same message " ii" to another Baresip client without Asterisk as a proxy works fine.



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



More information about the asterisk-bugs mailing list