[asterisk-bugs] [JIRA] (ASTERISK-27183) No data in custom cdr field in database when it overwrite via Gosub

Denis Pantsyrev (JIRA) noreply at issues.asterisk.org
Mon Aug 7 04:27:08 CDT 2017


Denis Pantsyrev created ASTERISK-27183:
------------------------------------------

             Summary: No data in custom cdr field in database when it overwrite via Gosub
                 Key: ASTERISK-27183
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27183
             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 the dialplan below (example 1). 
After a call from 7777 to 8888 I hope to see ":test1:test2:test3" in "cstfld" field, but I saw only ":test1:test2". 
If I change dialplan to (example 2) after a call I saw ":test3" in "cstfld" field.

Debig files are attached below.

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

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

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

{code:title=sip.conf}

[7777]
type=friend
host=dynamic
secret=7777
context=buh
callerid="OneUser" <7777>

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



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



More information about the asterisk-bugs mailing list