I just upgraded from 1.2.12.1 to 1.4 beta 2 and am having a problem resolving an issue with the following configuration. The logic below worked fine in 1.2 but seems to be broken in 1.4 beta 2. The statements 50 and 51 don't seem to properly reassign the caller id to "2000" or some other 4 digit extension. Before I was able to reassign the extension to say, 2000, and the VoiceMailMain app would drop the user in the correct mailbox. Can anyone see what is wrong with the following relative to 1.4 beta 2?? Thank in advance. exten => 8600,1,GotoIf($[${CALLERID(number)} = 2001]?50:2) exten => 8600,2,GotoIf($[${CALLERID(number)} = 2002]?50:3) exten => 8600,3,GotoIf($[${CALLERID(number)} = 2003]?50:4) exten => 8600,4,GotoIf($[${CALLERID(number)} = 2004]?50:5) exten => 8600,5,GotoIf($[${CALLERID(number)} = 2005]?50:6) exten => 8600,6,GotoIf($[${CALLERID(number)} = 2006]?50:7) exten => 8600,7,GotoIf($[${CALLERID(number)} = 2007]?50:8) exten => 8600,8,GotoIf($[${CALLERID(number)} = 2008]?50:9) exten => 8600,9,GotoIf($[${CALLERID(number)} = 2009]?50:10) exten => 8600,10,GotoIf($[${CALLERID(number)} = 2010]?50:11) exten => 8600,11,GotoIf($[${CALLERID(number)} = 2011]?50:12) exten => 8600,12,GotoIf($[${CALLERID(number)} = 2012]?50:13) exten => 8600,13,GotoIf($[${CALLERID(number)} = 2013]?50:51) exten => 8600,50,Set(CALLERID(number)=2000) exten => 8600,51,VoicemailMain(${CALLERIDNUM}|s) exten => 8600,52,Hangup -- Executing [8600@in-out:1] GotoIf("SIP/2002-086a4220", "0?50:2") in new stack -- Goto (in-out,8600,2) -- Executing [8600@in-out:2] GotoIf("SIP/2002-086a4220", "1?50:3") in new stack -- Goto (in-out,8600,50) -- Executing [8600@in-out:50] Set("SIP/2002-086a4220", "CALLERID(number)=2000") in new stack -- Executing [8600@in-out:51] VoiceMailMain("SIP/2002-086a4220", "|s") in new stack -- Playing 'vm-login' (language 'en') [Sep 23 11:42:25] WARNING[14722]: app_voicemail.c:5875 vm_authenticate: Couldn't read username -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060923/95e727d8/attachment.htm
CALLERID(number) is invalid use CALLERID(num) [Description] Gets or sets Caller*ID data on the channel. The allowable datatypes are "all", "name", "num", "ANI", "DNID", "RDNIS". SNIP -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060923/c2951018/attachment.htm
Still no good. Here is what I have now. It looks like the problem is in my "set" and VoicemailMain statements. exten => 8600,1,GotoIf($[${CALLERID(num)} = 2001]?50:2) exten => 8600,2,GotoIf($[${CALLERID(num)} = 2002]?50:3) exten => 8600,3,GotoIf($[${CALLERID(num)} = 2003]?50:4) exten => 8600,4,GotoIf($[${CALLERID(num)} = 2004]?50:5) exten => 8600,5,GotoIf($[${CALLERID(num)} = 2005]?50:6) exten => 8600,6,GotoIf($[${CALLERID(num)} = 2006]?50:7) exten => 8600,7,GotoIf($[${CALLERID(num)} = 2007]?50:8) exten => 8600,8,GotoIf($[${CALLERID(num)} = 2008]?50:9) exten => 8600,9,GotoIf($[${CALLERID(num)} = 2009]?50:10) exten => 8600,10,GotoIf($[${CALLERID(num)} = 2010]?50:11) exten => 8600,11,GotoIf($[${CALLERID(num)} = 2011]?50:12) exten => 8600,12,GotoIf($[${CALLERID(num)} = 2012]?50:13) exten => 8600,13,GotoIf($[${CALLERID(num)} = 2013]?50:51) exten => 8600,50,Set(CALLERID(num)=2000) exten => 8600,51,VoicemailMain(${CALLERIDNUM}|s) exten => 8600,52,Hangup -- Executing [8600@in-out:1] GotoIf("SIP/2003-b7702ef0", "0?50:2") in new stack -- Goto (in-out,8600,2) -- Executing [8600@in-out:2] GotoIf("SIP/2003-b7702ef0", "0?50:3") in new stack -- Goto (in-out,8600,3) -- Executing [8600@in-out:3] GotoIf("SIP/2003-b7702ef0", "1?50:4") in new stack -- Goto (in-out,8600,50) -- Executing [8600@in-out:50] Set("SIP/2003-b7702ef0", "CALLERID(num)=2000") in new stack -- Executing [8600@in-out:51] VoiceMailMain("SIP/2003-b7702ef0", "|s") in new stack -- Playing 'vm-login' (language 'en') [Sep 23 17:56:32] WARNING[20496]: app_voicemail.c:5875 vm_authenticate: Couldn't read username _____ CALLERID(number) is invalid use CALLERID(num) [Description] Gets or sets Caller*ID data on the channel. The allowable datatypes are "all", "name", "num", "ANI", "DNID", "RDNIS". _____ To: 'asterisk-users@lists.digium.com' Subject: 1.4 Beta 2 Config Problem I just upgraded from 1.2.12.1 to 1.4 beta 2 and am having a problem resolving an issue with the following configuration. The logic below worked fine in 1.2 but seems to be broken in 1.4 beta 2. The statements 50 and 51 don't seem to properly reassign the caller id to "2000" or some other 4 digit extension. Before I was able to reassign the extension to say, 2000, and the VoiceMailMain app would drop the user in the correct mailbox. Can anyone see what is wrong with the following relative to 1.4 beta 2?? Thank in advance. exten => 8600,1,GotoIf($[${CALLERID(number)} = 2001]?50:2) exten => 8600,2,GotoIf($[${CALLERID(number)} = 2002]?50:3) exten => 8600,3,GotoIf($[${CALLERID(number)} = 2003]?50:4) exten => 8600,4,GotoIf($[${CALLERID(number)} = 2004]?50:5) exten => 8600,5,GotoIf($[${CALLERID(number)} = 2005]?50:6) exten => 8600,6,GotoIf($[${CALLERID(number)} = 2006]?50:7) exten => 8600,7,GotoIf($[${CALLERID(number)} = 2007]?50:8) exten => 8600,8,GotoIf($[${CALLERID(number)} = 2008]?50:9) exten => 8600,9,GotoIf($[${CALLERID(number)} = 2009]?50:10) exten => 8600,10,GotoIf($[${CALLERID(number)} = 2010]?50:11) exten => 8600,11,GotoIf($[${CALLERID(number)} = 2011]?50:12) exten => 8600,12,GotoIf($[${CALLERID(number)} = 2012]?50:13) exten => 8600,13,GotoIf($[${CALLERID(number)} = 2013]?50:51) exten => 8600,50,Set(CALLERID(number)=2000) exten => 8600,51,VoicemailMain(${CALLERIDNUM}|s) exten => 8600,52,Hangup -- Executing [8600@in-out:1] GotoIf("SIP/2002-086a4220", "0?50:2") in new stack -- Goto (in-out,8600,2) -- Executing [8600@in-out:2] GotoIf("SIP/2002-086a4220", "1?50:3") in new stack -- Goto (in-out,8600,50) -- Executing [8600@in-out:50] Set("SIP/2002-086a4220", "CALLERID(number)=2000") in new stack -- Executing [8600@in-out:51] VoiceMailMain("SIP/2002-086a4220", "|s") in new stack -- Playing 'vm-login' (language 'en') [Sep 23 11:42:25] WARNING[14722]: app_voicemail.c:5875 vm_authenticate: Couldn't read username -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060923/1b5f9525/attachment.htm
> exten => 8600,13,GotoIf($[${CALLERID(number)} = 2013]?50:51) > > exten => 8600,50,Set(CALLERID(number)=2000) >You are missing a parenthesis. It should read: exten => 8600,50,Set(CALLERID(number)=2000))> exten => 8600,51,VoicemailMain(${CALLERIDNUM}|s) > > exten => 8600,52,Hangup > > >
> exten => 8600,51,VoicemailMain(${CALLERIDNUM}|s)exten => 8600,51,VoicemailMain(${CALLERID(num)}|s) AFAIK, CALLERIDNUM is no more.
Still no good. Here is what I have now. It looks like the problem is in my "set" and VoicemailMain statements. exten => 8600,1,GotoIf($[${CALLERID(num)} = 2001]?50:2) exten => 8600,2,GotoIf($[${CALLERID(num)} = 2002]?50:3) exten => 8600,3,GotoIf($[${CALLERID(num)} = 2003]?50:4) exten => 8600,4,GotoIf($[${CALLERID(num)} = 2004]?50:5) exten => 8600,5,GotoIf($[${CALLERID(num)} = 2005]?50:6) exten => 8600,6,GotoIf($[${CALLERID(num)} = 2006]?50:7) exten => 8600,7,GotoIf($[${CALLERID(num)} = 2007]?50:8) exten => 8600,8,GotoIf($[${CALLERID(num)} = 2008]?50:9) exten => 8600,9,GotoIf($[${CALLERID(num)} = 2009]?50:10) exten => 8600,10,GotoIf($[${CALLERID(num)} = 2010]?50:11) exten => 8600,11,GotoIf($[${CALLERID(num)} = 2011]?50:12) exten => 8600,12,GotoIf($[${CALLERID(num)} = 2012]?50:13) exten => 8600,13,GotoIf($[${CALLERID(num)} = 2013]?50:51) exten => 8600,50,Set(CALLERID(num)=2000) exten => 8600,51,VoicemailMain(${CALLERIDNUM}|s) exten => 8600,52,Hangup -- Executing [8600@in-out:1] GotoIf("SIP/2003-b7702ef0", "0?50:2") in new stack -- Goto (in-out,8600,2) -- Executing [8600@in-out:2] GotoIf("SIP/2003-b7702ef0", "0?50:3") in new stack -- Goto (in-out,8600,3) -- Executing [8600@in-out:3] GotoIf("SIP/2003-b7702ef0", "1?50:4") in new stack -- Goto (in-out,8600,50) -- Executing [8600@in-out:50] Set("SIP/2003-b7702ef0", "CALLERID(num)=2000") in new stack -- Executing [8600@in-out:51] VoiceMailMain("SIP/2003-b7702ef0", "|s") in new stack -- Playing 'vm-login' (language 'en') [Sep 23 17:56:32] WARNING[20496]: app_voicemail.c:5875 vm_authenticate: Couldn't read username _____ CALLERID(number) is invalid use CALLERID(num) [Description] Gets or sets Caller*ID data on the channel. The allowable datatypes are "all", "name", "num", "ANI", "DNID", "RDNIS". _____ To: 'asterisk-users@lists.digium.com' Subject: 1.4 Beta 2 Config Problem I just upgraded from 1.2.12.1 to 1.4 beta 2 and am having a problem resolving an issue with the following configuration. The logic below worked fine in 1.2 but seems to be broken in 1.4 beta 2. The statements 50 and 51 don't seem to properly reassign the caller id to "2000" or some other 4 digit extension. Before I was able to reassign the extension to say, 2000, and the VoiceMailMain app would drop the user in the correct mailbox. Can anyone see what is wrong with the following relative to 1.4 beta 2?? Thank in advance. exten => 8600,1,GotoIf($[${CALLERID(number)} = 2001]?50:2) exten => 8600,2,GotoIf($[${CALLERID(number)} = 2002]?50:3) exten => 8600,3,GotoIf($[${CALLERID(number)} = 2003]?50:4) exten => 8600,4,GotoIf($[${CALLERID(number)} = 2004]?50:5) exten => 8600,5,GotoIf($[${CALLERID(number)} = 2005]?50:6) exten => 8600,6,GotoIf($[${CALLERID(number)} = 2006]?50:7) exten => 8600,7,GotoIf($[${CALLERID(number)} = 2007]?50:8) exten => 8600,8,GotoIf($[${CALLERID(number)} = 2008]?50:9) exten => 8600,9,GotoIf($[${CALLERID(number)} = 2009]?50:10) exten => 8600,10,GotoIf($[${CALLERID(number)} = 2010]?50:11) exten => 8600,11,GotoIf($[${CALLERID(number)} = 2011]?50:12) exten => 8600,12,GotoIf($[${CALLERID(number)} = 2012]?50:13) exten => 8600,13,GotoIf($[${CALLERID(number)} = 2013]?50:51) exten => 8600,50,Set(CALLERID(number)=2000) exten => 8600,51,VoicemailMain(${CALLERIDNUM}|s) exten => 8600,52,Hangup -- Executing [8600@in-out:1] GotoIf("SIP/2002-086a4220", "0?50:2") in new stack -- Goto (in-out,8600,2) -- Executing [8600@in-out:2] GotoIf("SIP/2002-086a4220", "1?50:3") in new stack -- Goto (in-out,8600,50) -- Executing [8600@in-out:50] Set("SIP/2002-086a4220", "CALLERID(number)=2000") in new stack -- Executing [8600@in-out:51] VoiceMailMain("SIP/2002-086a4220", "|s") in new stack -- Playing 'vm-login' (language 'en') [Sep 23 11:42:25] WARNING[14722]: app_voicemail.c:5875 vm_authenticate: Couldn't read username -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060924/c946d809/attachment.htm
Thanks for the feedback. It is working now. For those interested here is what I have that works with 1.4 beta2 exten => 8600,1,GotoIf($[${CALLERID(num)} = 2001]?50:2) exten => 8600,2,GotoIf($[${CALLERID(num)} = 2002]?50:3) exten => 8600,3,GotoIf($[${CALLERID(num)} = 2003]?50:4) exten => 8600,4,GotoIf($[${CALLERID(num)} = 2004]?50:5) exten => 8600,5,GotoIf($[${CALLERID(num)} = 2005]?50:6) exten => 8600,6,GotoIf($[${CALLERID(num)} = 2006]?50:7) exten => 8600,7,GotoIf($[${CALLERID(num)} = 2007]?50:8) exten => 8600,8,GotoIf($[${CALLERID(num)} = 2008]?50:9) exten => 8600,9,GotoIf($[${CALLERID(num)} = 2009]?50:10) exten => 8600,10,GotoIf($[${CALLERID(num)} = 2010]?50:11) exten => 8600,11,GotoIf($[${CALLERID(num)} = 2011]?50:12) exten => 8600,12,GotoIf($[${CALLERID(num)} = 2012]?50:13) exten => 8600,13,GotoIf($[${CALLERID(num)} = 2013]?50:51) exten => 8600,50,Set(CALLERID(num)=2000) exten => 8600,51,VoicemailMain(${CALLERID(num)}|s) exten => 8600,52,Hangup _____ From: Keith O'Brien Sent: Sunday, September 24, 2006 12:11 PM To: 'asterisk-users@lists.digium.com' Subject: RE: 1.4 Beta 2 Config Problem Importance: High Still no good. Here is what I have now. It looks like the problem is in my "set" and VoicemailMain statements. exten => 8600,1,GotoIf($[${CALLERID(num)} = 2001]?50:2) exten => 8600,2,GotoIf($[${CALLERID(num)} = 2002]?50:3) exten => 8600,3,GotoIf($[${CALLERID(num)} = 2003]?50:4) exten => 8600,4,GotoIf($[${CALLERID(num)} = 2004]?50:5) exten => 8600,5,GotoIf($[${CALLERID(num)} = 2005]?50:6) exten => 8600,6,GotoIf($[${CALLERID(num)} = 2006]?50:7) exten => 8600,7,GotoIf($[${CALLERID(num)} = 2007]?50:8) exten => 8600,8,GotoIf($[${CALLERID(num)} = 2008]?50:9) exten => 8600,9,GotoIf($[${CALLERID(num)} = 2009]?50:10) exten => 8600,10,GotoIf($[${CALLERID(num)} = 2010]?50:11) exten => 8600,11,GotoIf($[${CALLERID(num)} = 2011]?50:12) exten => 8600,12,GotoIf($[${CALLERID(num)} = 2012]?50:13) exten => 8600,13,GotoIf($[${CALLERID(num)} = 2013]?50:51) exten => 8600,50,Set(CALLERID(num)=2000) exten => 8600,51,VoicemailMain(${CALLERIDNUM}|s) exten => 8600,52,Hangup -- Executing [8600@in-out:1] GotoIf("SIP/2003-b7702ef0", "0?50:2") in new stack -- Goto (in-out,8600,2) -- Executing [8600@in-out:2] GotoIf("SIP/2003-b7702ef0", "0?50:3") in new stack -- Goto (in-out,8600,3) -- Executing [8600@in-out:3] GotoIf("SIP/2003-b7702ef0", "1?50:4") in new stack -- Goto (in-out,8600,50) -- Executing [8600@in-out:50] Set("SIP/2003-b7702ef0", "CALLERID(num)=2000") in new stack -- Executing [8600@in-out:51] VoiceMailMain("SIP/2003-b7702ef0", "|s") in new stack -- Playing 'vm-login' (language 'en') [Sep 23 17:56:32] WARNING[20496]: app_voicemail.c:5875 vm_authenticate: Couldn't read username _____ CALLERID(number) is invalid use CALLERID(num) [Description] Gets or sets Caller*ID data on the channel. The allowable datatypes are "all", "name", "num", "ANI", "DNID", "RDNIS". _____ To: 'asterisk-users@lists.digium.com' Subject: 1.4 Beta 2 Config Problem I just upgraded from 1.2.12.1 to 1.4 beta 2 and am having a problem resolving an issue with the following configuration. The logic below worked fine in 1.2 but seems to be broken in 1.4 beta 2. The statements 50 and 51 don't seem to properly reassign the caller id to "2000" or some other 4 digit extension. Before I was able to reassign the extension to say, 2000, and the VoiceMailMain app would drop the user in the correct mailbox. Can anyone see what is wrong with the following relative to 1.4 beta 2?? Thank in advance. exten => 8600,1,GotoIf($[${CALLERID(number)} = 2001]?50:2) exten => 8600,2,GotoIf($[${CALLERID(number)} = 2002]?50:3) exten => 8600,3,GotoIf($[${CALLERID(number)} = 2003]?50:4) exten => 8600,4,GotoIf($[${CALLERID(number)} = 2004]?50:5) exten => 8600,5,GotoIf($[${CALLERID(number)} = 2005]?50:6) exten => 8600,6,GotoIf($[${CALLERID(number)} = 2006]?50:7) exten => 8600,7,GotoIf($[${CALLERID(number)} = 2007]?50:8) exten => 8600,8,GotoIf($[${CALLERID(number)} = 2008]?50:9) exten => 8600,9,GotoIf($[${CALLERID(number)} = 2009]?50:10) exten => 8600,10,GotoIf($[${CALLERID(number)} = 2010]?50:11) exten => 8600,11,GotoIf($[${CALLERID(number)} = 2011]?50:12) exten => 8600,12,GotoIf($[${CALLERID(number)} = 2012]?50:13) exten => 8600,13,GotoIf($[${CALLERID(number)} = 2013]?50:51) exten => 8600,50,Set(CALLERID(number)=2000) exten => 8600,51,VoicemailMain(${CALLERIDNUM}|s) exten => 8600,52,Hangup -- Executing [8600@in-out:1] GotoIf("SIP/2002-086a4220", "0?50:2") in new stack -- Goto (in-out,8600,2) -- Executing [8600@in-out:2] GotoIf("SIP/2002-086a4220", "1?50:3") in new stack -- Goto (in-out,8600,50) -- Executing [8600@in-out:50] Set("SIP/2002-086a4220", "CALLERID(number)=2000") in new stack -- Executing [8600@in-out:51] VoiceMailMain("SIP/2002-086a4220", "|s") in new stack -- Playing 'vm-login' (language 'en') [Sep 23 11:42:25] WARNING[14722]: app_voicemail.c:5875 vm_authenticate: Couldn't read username -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060924/56d3d3db/attachment.htm