I'm working on building a pbx that will allow us to use our cellphones as extensions (to some extent) The dialout is working fine. What I would like to do is have an inbound cellphone call appear as if it were an extension. So right now if I call in from cell #9995551212 the caller id is 9995551212 but if I dial extension 30013 it will call cell #9995551212. I would like to change the caller id so 9995551212 is changed to 30013 on the inbound call. Doing one is simple enough, but I would like have an easy (more or less) way of setting up some global variables that link the cell phone #'s and extensions and have this done somewhat automagically. Any suggestions? Thanks, David Ruggles CCNA MCSE (NT) CNA A+ Network Engineer Safe Data, Inc. (910) 285-7200 david at safedatausa.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Ruggles wrote:> global variables that link the cell phone #'s and extensions and have this > done somewhat automagically.Load your cross-reference in AstDB and do the lookup that way. If the cell number exists in the database, replace the callerID with the extension number. If it doesn't exist then it must be from someone else so don't change the callerId. BK -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFJlFGwCFu3bIiwtTARAlRSAJ48FS53xS4u0eIeJ63VrZulPZxMMQCffFHw 7riqdRkR6vq5tGT9Z78FpiQ=SuKH -----END PGP SIGNATURE-----
On Thu, 2009-02-12 at 11:27 -0500, David Ruggles wrote:> I'm working on building a pbx that will allow us to use our cellphones as > extensions (to some extent) > > The dialout is working fine. What I would like to do is have an inbound > cellphone call appear as if it were an extension. So right now if I call in > from cell #9995551212 the caller id is 9995551212 but if I dial extension > 30013 it will call cell #9995551212. I would like to change the caller id so > 9995551212 is changed to 30013 on the inbound call. Doing one is simple > enough, but I would like have an easy (more or less) way of setting up some > global variables that link the cell phone #'s and extensions and have this > done somewhat automagically.I would implement this using the a database (astdb or odbc) containing the mapping from cell number to extension. Then for each call that may need callerid modification, you can check the database for the proper mapping. With this method it is also easy to add new mappings. -- Matthew Nicholson Digium, Inc. | Software Developer