[asterisk-users] Re: Rewriting caller ID from database?

Anselm Martin Hoffmeister anselm at hoffmeister-online.de
Fri Nov 24 14:46:04 MST 2006


Am Freitag, den 24.11.2006, 22:22 +0100 schrieb Vincent Delporte:
> At 22:07 22/11/2006 -0700, Marco Mouta wrote:
> >You can do it using AstDB, just load the database with callerid names and 
> >numbers and then include a lookup on database in all incoming calls, so 
> >you can override whatever you wanted:)
> 
> Thanks everyone. Indeed, it seems like using the embedded BerkeleyDB-based 
> AstDB is good enough for what I'm trying to do. However, asterisk barfs on 
> the following script that I used to import data:
> 
> #/bin/bash
> asterisk -rx "database put cidname 1234567 'Me - cellular'"
> asterisk -rx "database put cidname 1234567 'Me - home'"
> etc.

Do try 
asterisk -rx "database put cidname 12345676 \"Me - cellular\""
or 
asterisk -rx 'database put cidname 3871263 "Me - home"'

These quotations seem to work.

Hth
Anselm



More information about the asterisk-users mailing list