[asterisk-bugs] [JIRA] (ASTERISK-27191) An extra character in the CDR "userfield" when it is populated with data from Sub called in Dial application

Denis Pantsyrev (JIRA) noreply at issues.asterisk.org
Wed Aug 9 06:07:08 CDT 2017


Denis Pantsyrev created ASTERISK-27191:
------------------------------------------

             Summary: An extra character in the CDR "userfield" when it is populated with data from Sub called in Dial application
                 Key: ASTERISK-27191
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27191
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: CDR/cdr_adaptive_odbc
    Affects Versions: 13.17.0
         Environment: CentOS Linux release 7.3.1611 (Core) 3.10.0-514.26.2.el7.x86_64
            Reporter: Denis Pantsyrev
            Severity: Minor


I have dialplan below. Phone 7777 call to 8888, 8888 answer.
At the moment of the answer the subAnswer is executed. 
In (example 1) I saw ";:subAnswer:moreData" where ";" at the beginning is an extra character
In (example 2) I saw ":buh;:subAnswer:moreData" where ";" after the ":buh" is an extra character
Debug files are attached below


{code:title=sip.conf|borderStyle=solid}
[7777]
type=friend
host=dynamic
secret=7777
context=buh
callerid="ExtUser" <7777>

[8888]
type=friend
host=dynamic
secret=8888
context=ato
callerid="OneUser" <8888>
{code}

{code:title=extensions.conf (example 1)}
[buh]
exten => _XXXX,1,NoOP
; same => n,Set(CDR(userfield)=${CDR(userfield)}:buh)
 same => n,Dial(SIP/${EXTEN},20,tirU(subAnswer))
 same => n,Hangup

[subAnswer]
exten => s,1,NoOP
 same => n,Set(CDR(userfield)=${CDR(userfield)}:subAnswer)
 same => n,Set(CDR(userfield)=${CDR(userfield)}:moreData)
 same => n,Return
{code}
 
{code:title=extensions.conf (example 2)} 
[buh]
exten => _XXXX,1,NoOP
 same => n,Set(CDR(userfield)=${CDR(userfield)}:buh)
 same => n,Dial(SIP/${EXTEN},20,tirU(subAnswer))
 same => n,Hangup

[subAnswer]
exten => s,1,NoOP
 same => n,Set(CDR(userfield)=${CDR(userfield)}:subAnswer)
 same => n,Set(CDR(userfield)=${CDR(userfield)}:moreData)
 same => n,Return
 {code}



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



More information about the asterisk-bugs mailing list