Hey,
I’m having problems capturing the OCN or RDNIS. below is the Extensions.conf
;Forwarded to Voicemail
exten => _5074225001,1,NoOp({RDNIS} = ${RDNIS})
exten => _5074225001,n,NoOp({RDNIS} = ${CALLERID(rdnis)})
exten => _5074225001,n,NoOp({ANI2} = ${CALLERID(ani2)})
exten => _5074225001,n,NoOp({OCN} = ${CALLERID(ocn)})
exten => _5074225001,n,NoOp({ANI2} = ${ANI2})
exten => _5074225001,n,NoOp({OCN} = ${OCN})
exten => _5074225001,n,NoOp({CPN} = ${CPN})
exten => _5074225001,n,NoOp({CALLERID} = ${CALLERID(number)})
exten => _5074225001,n,VoiceMail(${OCN})
exten => _5074225001,n,Hangup()
Results:
Unhandled optional parameter 0xb ‘Unknown’
[0x3 0x10 0x29 0x70 0x70 0x27 0x78 ]
– Accepting call to ‘5074225001’ on CIC 11
– Executing [5074225001@incoming:1] NoOp(“Zap/11-1”, "{RDNIS} = ") in new stack
– Executing [5074225001@incoming:2] NoOp(“Zap/11-1”, "{RDNIS} = ") in new stack
– Executing [5074225001@incoming:3] NoOp(“Zap/11-1”, “{ANI2} = 62”) in new stack
[Feb 4 11:00:22] ERROR[2249]: func_callerid.c:108 callerid_read: Unknown callerid data type ‘ocn’.
– Executing [5074225001@incoming:4] NoOp(“Zap/11-1”, "{OCN} = ") in new stack
– Executing [5074225001@incoming:5] NoOp(“Zap/11-1”, "{ANI2} = ") in new stack
– Executing [5074225001@incoming:6] NoOp(“Zap/11-1”, "{OCN} = ") in new stack
– Executing [5074225001@incoming:7] NoOp(“Zap/11-1”, "{CPN} = ") in new stack
– Executing [5074225001@incoming:8] NoOp(“Zap/11-1”, “{CALLERID} = 9207077700”) in new stack
– Executing [5074225001@incoming:9] VoiceMail(“Zap/11-1”, “”) in new stack
– <Zap/11-1> Playing ‘vm-whichbox.gsm’ (language ‘en’)
– Executing [5074225001@incoming:10] Hangup(“Zap/11-1”, “”) in new stack
== Spawn extension (incoming, 5074225001, 10) exited non-zero on ‘Zap/11-1’
– Hungup ‘Zap/11-1’
I am using asterisk 1.6 beta 2 and LIBSS7. does anybody know why these variables are not populating. ${CALLERID(number)} works fine. also, are these just bugs w/ * 1.6 would *1.4 work fine?
thanks