[asterisk-users] Realtime Issue

Jason Walker jason.walker at amgsrv.com
Mon Mar 29 08:42:00 CDT 2010


It seems that my realtime is not assigning channel variables correctly.

 

INFO

Asterisk 1.6.0.26

 

Exten.conf

exten => _X.,1,NoOp()

exten => _X.,2,Set(DEVICE=${CUT(CHANNEL,,1)})

exten => _X.,3,Set(NULL="${REALTIME(agents,device,${DEVICE})}")

exten => _X.,4,NoOp(DEVICE is ${DEVICE})

exten => _X.,5,NoOp(USERNAME is ${USERNAME})

exten => _X.,6,NoOp(username is ${username})

 

 

CLI 

 

    -- Executing [x at default:1] NoOp("SIP/1156-000055ce", "") in new
stack

    -- Executing [x at default:2] Set("SIP/1156-000055ce",
"DEVICE=SIP/1156") in new stack

    -- Executing [x at default:3] Set("SIP/1156-000055ce",
"NULL="username=john.smith,name=John
Smith,department=Dept_A,routable=no,extension=1234,device=SIP/1156,voice
mail=no,monitor=yes,visible=yes,date_modified=2010-02-09 14:12:01,"") in
new stack

    -- Executing [x at default:4] NoOp("SIP/1156-000055ce", "DEVICE is
SIP/1156") in new stack

    -- Executing [x at default:5] NoOp("SIP/1156-000055ce", "USERNAME is ")
in new stack

    -- Executing [x at default:6] NoOp("SIP/1156-000055ce", "username is ")
in new stack

 

So I can see it is getting info from the database in Line 3

 

But only the direct set variable command (Line 2) and Result (Line 4)
work

 

Lines 5 and 6 do not get the john.smith assigned

 

Help

 

 

Confidentiality Statement & Notice: This email is covered by the 
Electronic Communications Privacy Act, 18 U.S.C. 2510-2521 and 
intended only for the use of the individual or entity to whom it is 
addressed.  Any review, retransmission, dissemination to unauthorized 
persons or other use of the original message and any attachments is 
strictly prohibited. If you received this electronic transmission in error, 
please reply to the above-referenced sender about the error and 
permanently delete this message. Thank you for your cooperation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100329/c9dcc014/attachment.htm 


More information about the asterisk-users mailing list