On Thu, Apr 22, 2010 at 12:55 PM, Lonnie Abelbeck <[email protected] > wrote:
> > On Apr 22, 2010, at 1:32 PM, John Reynolds wrote: > > > > > > > On Thu, Apr 22, 2010 at 11:28 AM, John Reynolds <[email protected]> > wrote: > > Anyone is free to answer, but I think the question is really directed to > Lonnie: > > > > I'm read Lonnie's web site which gives better (more complete) information > on how to use the web interface features. Specifically, Speed dial. Using > the example he has listed, and making only a few changes, I have it working. > *very nice*. > > > > I am having this problem; Caller ID Name & Number are not being set. The > macro has this code: > > > > exten => s,n,Set(CALLERID(num)=${HOME_CIDNUM}) > > exten => s,n,Set(CALLERID(name)=${HOME_CIDNAME}) > > > > But I get this on the asterisk console after placing a call via speed > dial: > > > > -- Executing [...@macro-dial-sysdial:3] Set("SIP/4401-00000027", > "CALLERID(num)=") in new stack > > -- Executing [...@macro-dial-sysdial:4] Set("SIP/4401-00000027", > "CALLERID(name)=") in new stack > > > > no values are set. When the call comes in, it is shown as "unknown". > > > > What am I doing wrong? Thanks > > The global variables HOME_CIDNUM and HOME_CIDNAME need to be defined in > your extensions.conf file, such as: > -- snip -- > [globals] > > HOME_CIDNUM=8005551212 > HOME_CIDNAME=John Doe > -- snip -- > > Or explicitly set the values in the CALLERID lines. > > > > Also, while your reading... there is a longish pause from the time the > phone dials until asterisk dials. It seems to be faster (shorter wait time) > if a second speed dial call is placed shortly after. Is that due to the DB > needing to fire up on my net5501? Is there a parameter to change or set that > would improve this? > > There should be no delay, no matter the hardware. > > Your delay is probably related to your dialplan as defined in your > extensions.conf file. It takes some asterisk 'learning' to get the feel how > extensions are matched and in what order. In your case, if you are using N > digit extensions for speed dials, make sure that no other match has an > ambiguity with that N digit extension. > > In my setup all speed dials begin with 10 or 11 which may not occur with a > NANPA number, so there is never any ambiguity. > > Be sure to take a look at the free online PDF version of the book "Asterisk > - The Future of Telephony" > http://astbook.asteriskdocs.org/ > > And a lot of trial and error... :-) > > Lonnie > > Thanks to both Lonnie and David. I understand what your are saying. I set the values in the macro to: exten => s,n,Set(CALLERID(num)=${CALLERID(NUM)}) exten => s,n,Set(CALLERID(name)=${CALLERIE(NAME)}) This seemed to work, in that the console reflected what I exepected, but the call to a mobile phone resulted in a number not expected. I'll do some reading, before I ask futher. Thank you for your help. John R.
------------------------------------------------------------------------------
_______________________________________________ Astlinux-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to [email protected].
