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

Frank Matano (JIRA) noreply at issues.asterisk.org
Thu Jan 16 03:09:25 CST 2020


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

Frank Matano commented on ASTERISK-28693:
-----------------------------------------

Of course, here's the .cap file of the traffic exchanged between client and server captured with {noformat} tcpdump -i wlan0 -w out.cap port 5060{noformat}
During capture I've sent two messages to the same recipient. First message is "no whitespace", the second is " with whitespace".

> 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: Unassigned
>            Severity: Minor
>         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