wardmundy
Nerd Uno
- Joined
- Oct 12, 2007
- Messages
- 19,213
- Reaction score
- 5,239
@wardmundy I'm grateful for the outbound CID functionality but I did not implement the CallerID Superfecta because I have not had time to study the internals of VitalPBX to my satisfaction. Looking at the code on your latest post #121 above, I see four ways to route an inbound call but am not clear on how to best implement this.
I have multiple DID's and ring groups. I don't want to route all incoming calls to one default destination. How do you use Superfecta and then let the call continue along the normal incoming routes defined in the VitalPBX PBX:External:Inbound routes?
OK - I'm late to the party, but I've now got some free time and interest in this project. There are things that they've done that I absolutely Love. The ability to pay for white label and multi-tenant to name a few.
My problem though is having access to hack out our own code.
Here's what is stopping me from using it:
We've got our own custom voicemail module that sends out email in HTML with our logo and transcription.
We've also got SMS notification of when a voicemail is created.
Would also love an extra widget on Sonata Switchboard for CDR's
Sonata Switchboard could also really benefit from a SMS module like Postcards
I really like what I see, but I am concerned about it not being open to mods.
@wardmundy Thanks Ward, I've had a very brief peruse over the article, but nothing in deapth.@markieb: Have you looked at next week's article?? The link is posted above. It does outbound and inbound CNAM lookups with native delivery, caching, and OpenCNAM. Those are really the only 3 reliable lookups that were left in the U.S, anyway,
# shutting down Asterisk isn't required to "just look" in the database
cd /var/lib/asterisk
sqlite3 astdb.sqlite3 "select key,value from astdb where key LIKE '%cidname/%' order by value"
@wardmundy Yes... as you suggested, that showed the entries I currently have in the Asterisk PhoneBook....@markieb: OpenCNAM has international options (Value and Plus) which would give you what you need. The Asterisk Phonebook if I'm not mistaken uses AstDB with CNAM entries prefixed with cidname. That's exactly what we use for the cache, and it would be easy to import them. It's a SQLite database so you can shut down Asterisk and extract and update it easily. Run database show from the Asterisk CLI on your PBX and see if that isn't where your entries are stored. Or...
@wardmundy Yes... as you suggested, that showed the entries I currently have in the Asterisk PhoneBook....
cd /var/lib/asterisk
sqlite3 astdb.sqlite3 "select key,value from astdb where key LIKE '%cidname/%' order by value" > /root/import.sh
cd /root
sed -i 's|/cidname|asterisk -rx "database put cidname "|' import.sh
sed -i 's| "/| |' import.sh
sed -i 's|\|| "|' import.sh
sed -i 's|$|"|' import.sh
sed -i "s|\"d|'d|" import.sh
sed -i "s|$|'|" import.sh
chmod +x import.sh
Thanks @wardmundy I'll give it a go as soon as I'm back in the office. Have decided to install a VirtualBox to make messing about with the different version easier and means I don't have to have multiple machines to do testing.So putting it all together, here's how to create a script that you can copy over to the VitalPBX server and run to import all of your current Asterisk Phonebook entries. On your current PBX...
Then just copy /root/import.sh to the VitalPBX server and run it. Done.
@markieb: Have you looked at next week's article?? The link is posted above. It does outbound and inbound CNAM lookups with native delivery, caching, and OpenCNAM. Those are really the only 3 reliable lookups that were left in the U.S, anyway,
same => n,Set(CID_NAME3=${SHELL(curl -X GET "https://cnam.bulkCNAM.com/?id=APIkey&did=${CALL_SOURCE}")})
There are any number of ways to Export to CSV your Google Contacts..
Then write a simple script to add them to your asterisk astdb or phone book of choice.
Per the email I got yesterday from Bulkvs.com, their CNAM charges have dropped.
CNAM (Caller ID Name)
$0.002 per query
Link up your team and customers Phone System Live Chat Video Conferencing
Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.
Check your inbox!
We’ve sent you an email. Click on the button in the email body to verify your email address – (if you can not find it, check your spam folder).
Upon verification you will be directed to the 3CX setup wizard.