Re: [asterisk-users] function_db_read: DB requires an argument, DB(family/key)

2007-05-16 Thread Per Jessen
Lee Jenkins wrote:

 OK, so I tried this:
 
 exten = _X.,1,Noop(CallerId is ${CALLERID(all)})
 exten = _X.,n,Noop(blurp)
 exten = _X.,n,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})
 
 This now appears to execute the first Noop(), skip the second, and
 then issue the no argument warning on the Set() call.
 
 
 Try an Answer() first?

OK, tried that, didn't change anything.   

What I still don't get is - why does reloading the app_queue module fix
this problem?  The app_queue issue is another one, but I just can't see
how it would influence the workings of the DB() function.



/Per Jessen, Zürich

-- 
ENIDAN Technologies GmbH - managed email security. 
Starting at SFr1/month/user - http://www.spamchek.ch/

___
--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


Re: [asterisk-users] function_db_read: DB requires an argument, DB(family/key)

2007-05-16 Thread Derek Whitten
Per Jessen wrote:
 Lee Jenkins wrote:
 
 OK, so I tried this:

 exten = _X.,1,Noop(CallerId is ${CALLERID(all)})
 exten = _X.,n,Noop(blurp)
 exten = _X.,n,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})

 This now appears to execute the first Noop(), skip the second, and
 then issue the no argument warning on the Set() call.

 Try an Answer() first?
 
 OK, tried that, didn't change anything.   
 
 What I still don't get is - why does reloading the app_queue module fix
 this problem?  The app_queue issue is another one, but I just can't see
 how it would influence the workings of the DB() function.
 
 
 
 /Per Jessen, Zürich
 

pulls cid off the line
Set(CALLERID(name)=${CALLERID(name)})

pulls cidname (cid rewriting from astdb)
Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})

pulls cidnum
Set(CALLERID(num)=${CALLERID(num)})


you could try reordering the dialplan so it's  _X,1 _X,2 _X,3 instead of _X,1 
_X,n _X,n as
well






signature.asc
Description: OpenPGP digital signature
___
--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


Re: [asterisk-users] function_db_read: DB requires an argument, DB(family/key)

2007-05-15 Thread Per Jessen
Per Jessen wrote:

 from extensions.conf:
 
 exten = _X.,1,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})
 
 I basically try to lookup the CLIP and attach a name for each inbound
 call.  This works fine, except when I have just restarted asterisk -
 at which time I've more than once seen the message from the subject.
 
 As far as I can tell, with my Set(CALLERID), I should always have an
 argument in the DB function?

Is there a better/more appropriate place/list to ask this kind of
question? 



/Per Jessen, Zürich

-- 
ENIDAN Technologies GmbH - managed email security. 
Starting at SFr1/month/user - http://www.spamchek.ch/

___
--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


Re: [asterisk-users] function_db_read: DB requires an argument, DB(family/key)

2007-05-15 Thread Gordon Henderson

On Tue, 15 May 2007, Per Jessen wrote:


Per Jessen wrote:


from extensions.conf:

exten = _X.,1,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})

I basically try to lookup the CLIP and attach a name for each inbound
call.  This works fine, except when I have just restarted asterisk -
at which time I've more than once seen the message from the subject.

As far as I can tell, with my Set(CALLERID), I should always have an
argument in the DB function?


Is there a better/more appropriate place/list to ask this kind of
question?


Probably not, but ...

You're getting the error message because ${CALLERID(num)} is empty. ie. 
there is no caller-Id set, so I'd work on working out why there's no 
callerId set for the very first call...


Eg. start with:

  exten = _X.,1,Noop(CallerId is ${CallerId(all)})
  exten = _X.,n,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})

I do omething similar, but I test for no callerId before trying to do a 
database lookup.


Gordon
___
--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


Re: [asterisk-users] function_db_read: DB requires an argument, DB(family/key)

2007-05-15 Thread Per Jessen
Gordon Henderson wrote:

 You're getting the error message because ${CALLERID(num)} is empty.
 ie. there is no caller-Id set, so I'd work on working out why there's
 no callerId set for the very first call...
 Eg. start with:
 
exten = _X.,1,Noop(CallerId is ${CallerId(all)})
exten = _X.,n,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})
 
 I do omething similar, but I test for no callerId before trying to do
 a database lookup.

Later on I have no problems with e.g. a suppressed callerid - but I'll
try what you suggest.  Thanks Gordon.

OK, tried it - 

with your Noop(), I don't get a warning when there is no CLIP:

-- Executing [EMAIL PROTECTED]:1] NoOp(mISDN/3-u0, CallerId is 
) in new stack
-- Executing [EMAIL PROTECTED]:2] Ringing(mISDN/3-u0, ) in new stack

What surprises is that my Set() call isn't listed in the console log?

OK, so I tried this:

exten = _X.,1,Noop(CallerId is ${CALLERID(all)})
exten = _X.,n,Noop(blurp)
exten = _X.,n,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})

This now appears to execute the first Noop(), skip the second, and then
issue the no argument warning on the Set() call.

And miraculously, I can make the whole thing work by issuing a 
module reload app_queue.  After that, the DB() function no longer
complains, with or without CLIP.

Sounds like a bug to me. 



/Per Jessen, Zürich

-- 
ENIDAN Technologies GmbH - managed email security. 
Starting at SFr1/month/user - http://www.spamchek.ch/

___
--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


Re: [asterisk-users] function_db_read: DB requires an argument, DB(family/key)

2007-05-15 Thread Lee Jenkins

Per Jessen wrote:

Gordon Henderson wrote:


You're getting the error message because ${CALLERID(num)} is empty.
ie. there is no caller-Id set, so I'd work on working out why there's
no callerId set for the very first call...
Eg. start with:

   exten = _X.,1,Noop(CallerId is ${CallerId(all)})
   exten = _X.,n,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})

I do omething similar, but I test for no callerId before trying to do
a database lookup.


Later on I have no problems with e.g. a suppressed callerid - but I'll
try what you suggest.  Thanks Gordon.

OK, tried it - 


with your Noop(), I don't get a warning when there is no CLIP:

-- Executing [EMAIL PROTECTED]:1] NoOp(mISDN/3-u0, CallerId is 
) in new stack
-- Executing [EMAIL PROTECTED]:2] Ringing(mISDN/3-u0, ) in new stack

What surprises is that my Set() call isn't listed in the console log?

OK, so I tried this:

exten = _X.,1,Noop(CallerId is ${CALLERID(all)})
exten = _X.,n,Noop(blurp)
exten = _X.,n,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})

This now appears to execute the first Noop(), skip the second, and then
issue the no argument warning on the Set() call.



Try an Answer() first?


--

Warm Regards,

Lee



___
--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


[asterisk-users] function_db_read: DB requires an argument, DB(family/key)

2007-05-14 Thread Per Jessen
from extensions.conf:

exten = _X.,1,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})

I basically try to lookup the CLIP and attach a name for each inbound
call.  This works fine, except when I have just restarted asterisk - at
which time I've more than once seen the message from the subject. 

As far as I can tell, with my Set(CALLERID), I should always have an
argument in the DB function?  



/Per Jessen, Zürich

-- 
ENIDAN Technologies GmbH - managed email security. 
Starting at SFr1/month/user - http://www.spamchek.ch/

___
--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