Hi all -- I'm having awesome fun with Asterisk & voicepulse connect together. So cool. I'm trying to have the caller id read back to me. Do I need to do something to have this sent across in the sip.conf? Or is there something I need to do somewhere to enable the reading of this data? Thank you! Matt Here is my extensions.conf exten => _XX.,1,Answer() exten => _XX.,n,Playback(hello-world) exten => _XX.,n,SayDigits(${CALLERIDNUM}) exten => _XX.,n,SayDigits(${LEN(${CALLERIDNUM})}) exten => _XX.,n,SayDigits(1234) exten => _XX.,n,Hangup() exten => _XX.,n,SayDigits(${LEN(${CALLERIDNUM})}) says "zero" and exten => _XX.,n,SayDigits(${CALLERIDNUM}) says nothing at all.
On 6/7/07, Matthew Pease <matt@parkinghero.com> wrote:> I'm having awesome fun with Asterisk & voicepulse connect together. > So cool.I'm glad you're having fun!> I'm trying to have the caller id read back to me. Do I need to do > something to have this sent across in the sip.conf? Or is there > something I need to do somewhere to enable the reading of this data?If you're using Asterisk 1.4, the syntax has changed: exten => _XX.,1,Answer() exten => _XX.,n,Playback(hello-world) exten => _XX.,n,SayDigits(${CALLERID(num)}) exten => _XX.,n,SayDigits(${LEN(${CALLERID(num)})}) exten => _XX.,n,SayDigits(1234) exten => _XX.,n,Hangup() You now use the CALLERID dialplan function to both read and set CallerID related values, instead of just using channel variables. -Jared
Lucky the answer to your problem is simple -- you are using an old format for the caller id -- they are now functions like ${CALLERID(num)} etc. -- see the documentation for more information. on Thursday 06/07/2007 Matthew Pease(matt@parkinghero.com) wrote > Hi all -- > > I'm having awesome fun with Asterisk & voicepulse connect together. > So cool. > > I'm trying to have the caller id read back to me. Do I need to do > something to have this sent across in the sip.conf? Or is there > something I need to do somewhere to enable the reading of this data? > > Thank you! > Matt > > Here is my extensions.conf > > exten => _XX.,1,Answer() > exten => _XX.,n,Playback(hello-world) > exten => _XX.,n,SayDigits(${CALLERIDNUM}) > exten => _XX.,n,SayDigits(${LEN(${CALLERIDNUM})}) > exten => _XX.,n,SayDigits(1234) > exten => _XX.,n,Hangup() > > > exten => _XX.,n,SayDigits(${LEN(${CALLERIDNUM})}) says "zero" > > and > exten => _XX.,n,SayDigits(${CALLERIDNUM}) says nothing at all. > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com
You didn't say what VERISON OF ASTERISK you are using, so I will assume 1.2. When you watch the console, what is the output on the CLI of the SayDigits lines? The only reason I can see for CALLERIDNUM to be empty is if the information was not received with the call. I'll bet you got this example from the Wiki, didn't you? Matthew Pease wrote:> Hi all -- > > I'm having awesome fun with Asterisk & voicepulse connect together. > So cool. > > I'm trying to have the caller id read back to me. Do I need to do > something to have this sent across in the sip.conf? Or is there > something I need to do somewhere to enable the reading of this data? > > Thank you! > Matt > > Here is my extensions.conf > > exten => _XX.,1,Answer() > exten => _XX.,n,Playback(hello-world) > exten => _XX.,n,SayDigits(${CALLERIDNUM}) > exten => _XX.,n,SayDigits(${LEN(${CALLERIDNUM})}) > exten => _XX.,n,SayDigits(1234) > exten => _XX.,n,Hangup() > > > exten => _XX.,n,SayDigits(${LEN(${CALLERIDNUM})}) says "zero" > > and > exten => _XX.,n,SayDigits(${CALLERIDNUM}) says nothing at all. > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >