Hi, I have a big issue during transfers (using Polycom phones, but I don't think that's relevent) with Asterisk 1.14.19. Basically, the value contained in ${CDR(accountcode)} dissapears. Here is the relevant code snippet: ------------------------------------------ exten => _X!.,n,Noop(${CDR(accountcode)}) ;THE VALUE HERE IS CORRECT AND IS EQUALS TO THE ACCOUNTCODE SPECIFIED MUCH EARLIER IN THE DIALPLAN exten => _X!.,n,Gotoif($["${i}" = "1"]?$[${PRIORITY}+2]) ;DIAL ALL MAC PHONE ASSOCIATED WITH THIS EXTENSION SIMULATENOUSLY exten => _X!.,n,Dial(${mac_dial_string:0:$[${LEN(${mac_dial_string})}-20]}|${sip_phon es_ring_time}) ;remove least 7 characters, thos e are left there by the invalid last SQL fetch exten => _X!.,n,Set(i=0) exten => _X!.,n,Noop(${CDR(accountcode)}) ;THE VALUE HERE IS EMPTY, and so is this variable if I use it in any way. ------------------------------------
When I dial an extension and it hits this diaplan, it works fine. But if I dial an extension, answer and then transfer (using Polycom phones) to an extension using this dialplan I lose the accountcode where specified in the code. It's empty. How can ${CDR(accountcode)} lose it's value for no reason in those two seemingly innocent diaplan lines? Below is the CLI output if it's useful: -- Executing [EMAIL PROTECTED]:22] NoOp("SIP/0004f2134384-1-097fb4e8", "1234567890") in new stack ;THIS IS THE ACCOUNTCODE -- Executing [EMAIL PROTECTED]:23] GotoIf("SIP/0004f2134384-1-097fb4e8", "0?25") in new stack -- Executing [EMAIL PROTECTED]:24] Dial("SIP/0004f2134384-1-097fb4e8", "SIP/0004f2134384-3|8") in new stack -- Called 0004f2134384-3 -- SIP/0004f2134384-3-099947b0 is ringing == Spawn extension (generic-extensions-db, 705, 24) exited non-zero on 'SIP/0004f2134384-1-097fb4e8<ZOMBIE>' -- Incoming call: Got SIP response 500 "Internal Server Error" back from 192.168.1.6 -- Nobody picked up in 8000 ms -- Executing [EMAIL PROTECTED]:25] Set("SIP/0004f212ae63-1-099700a8", "i=0") in new stack -- Executing [EMAIL PROTECTED]:26] NoOp("SIP/0004f212ae63-1-099700a8", "") in new stack ;MISSING ACCOUNTCODE IS HERE Mick
_______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users