TUTORIAL CNAM Lookup for Outbound Calls

Trimline2

Guru
Joined
May 23, 2013
Messages
524
Reaction score
96
Not to bump this, but for future reference this code works fine with my Snom 870. Only downside is that it shows up after the far end answers. And sendrpid needs to be set to PAI - bug in Snom's FW I think.

Same setting for the SNOM 821's. After dialing a number, I see "Session in Progress" along with the dialed number. After the party answers, the CID look-up is then displayed correctly. Works great!
 

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
I have a new question regarding this:

So I use [macro-dialout-trunk-predial-hook] to manipulate outbound callerid, especially when forwarding incoming calls.
Now I have also outbound calls over an intra-company trunk that I do not want to be manipulated.
I have set intra-company route type in the outbound route, but how do I test for it?

I have tried to test for "OUTKEEPCID" but its empty.
With which variable can I test this setting?
thx
 

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
Found it... by looking at it carefully, I stumbled upon the variable that designates this precisely: INTRACOMPANYROUTE=YES
 

markieb

Active Member
Joined
Feb 19, 2009
Messages
165
Reaction score
51
So I'm currently on a IPBX 13-12.3 and have decided to take the plunge and rebuild my server manually to upgrade to the new Incredible PBX 16-15 for CentOS 7.

It feels like a decade ago that I originally got this [http://incrediblepbx.com/install-dialout-cnam.sh] working and rely heavily on it for recording my CID-Superfecta lookups on outbound calls to be recorded in the outgoing CDR.
It's amazing that there's still no standard lookups on outgoing calls :(
I'm still at the Install, fiddle break, wipe, reinstall a million times stage....but just can't seem to get this working on the new 16-15 Install.
It only inserts my own outgoing CID instead of the called CID as it does on my old server.

Doesn't help that I know nothing about the programming side of things.

Is there any chance of getting this updated to work on the new 16-15? I know it's years old but I really rely on it heavily, and this is make or break for me with upgrading to 16-15.
Thanks in advance :)
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
So I'm currently on a IPBX 13-12.3 and have decided to take the plunge and rebuild my server manually to upgrade to the new Incredible PBX 16-15 for CentOS 7.

It feels like a decade ago that I originally got this [http://incrediblepbx.com/install-dialout-cnam.sh] working and rely heavily on it for recording my CID-Superfecta lookups on outbound calls to be recorded in the outgoing CDR.
It's amazing that there's still no standard lookups on outgoing calls :(
I'm still at the Install, fiddle break, wipe, reinstall a million times stage....but just can't seem to get this working on the new 16-15 Install.
It only inserts my own outgoing CID instead of the called CID as it does on my old server.

Doesn't help that I know nothing about the programming side of things.

Is there any chance of getting this updated to work on the new 16-15? I know it's years old but I really rely on it heavily, and this is make or break for me with upgrading to 16-15.
Thanks in advance :)

Working on it now. Should have you something later today.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
@markieb: So here's the new procedure.

1. Open the GUI in a browser and go to Admin -> CID Superfecta. There should be one Default setup but it'll show as disabled. For some quirky reason, you can't make enabling it stick so click on the third (COPY) option under Actions to create a second setup. Then go down to that one and click the first button (Enable) under Actions. Make future setup changes to CallerID Superfecta by clicking on that setup.

2. Next, log into your server as root and issue the following commands:
Code:
cd /root
wget http://incrediblepbx.com/dialout-cnam.tar.gz
tar zxvf dialout-cnam.tar.gz
rm -f dialout-cnam.tar.gz

3. Run the script; /root/install-dialout-cnam.sh. Choose the new CID Superfecta setup (probably will be a negative number which is fine). No idea why.

4. Once the script completes, make a call from extension 701 to an outside number. The new CNAM info should be shown in the ACCOUNT column of your CDR listing.
 
Last edited:

jerrm

Guru
Joined
Sep 23, 2015
Messages
838
Reaction score
405
For anyone that cares this works with Grandstream GXP series Wave - so probably all current models. In session display and call history both show the cnam and number.

Not really a surprise, but I hadn't seen any other Grandstream references in the thread.
 

mainenotarynet

Not really a Guru - Just a long time user
Joined
May 29, 2010
Messages
754
Reaction score
155
I'm running 13, but I pay for OpenCNam - can this be modified or just use it through Superfecta as OpenCnam is in that list?
 

kenn10

Well-Known Member
Joined
Dec 16, 2007
Messages
3,764
Reaction score
2,173
@wardmundy Sorry to bring up an old thread.

I did an incrediblerestore2021 to an existing server on a different VPS and my display of cnam on outbound calls is no longer working. I would expect that an incrediblebackup2021 from one system to another system, that everything would work correctly. The system to which I applied the incrediblerestore2021 was running IncrediblePBX2021 and I was overwriting it with a backup from another system. I can't figure out what is missing unless there is something in the database that is different.

The CID lookup for the outbound call is displaying in the CDR record but not showing up in the phone display when a call is made. Any ideas? Both systems are Asterisk 18.4.
 

krzykat

Telecom Strategist
Joined
Aug 2, 2008
Messages
3,145
Reaction score
1,235
CID for outbound was a small piece of code that I think Ward came up with that was added ... let me lookup where that it for you. I don't think it is added as standard because its not a standard procedure to attach CIDname to outbound calls.
 

kenn10

Well-Known Member
Joined
Dec 16, 2007
Messages
3,764
Reaction score
2,173
CID for outbound was a small piece of code that I think Ward came up with that was added ... let me lookup where that it for you. I don't think it is added as standard because its not a standard procedure to attach CIDname to outbound calls.
I have the code but it also uses [macro-dialout-trunk-predial-hook] and interferes with @wardmundy 's code for the SPAM Blocker app. We need to figure out how to merge the two so it works without doing multiple database dips for the caller-id. I haven't had time to really study it yet. Installing the two products conflicts with each other in the extensions_custom.conf file.
 

krzykat

Telecom Strategist
Joined
Aug 2, 2008
Messages
3,145
Reaction score
1,235
Hey @kenn10 , here's my notes ... utilizing superfecta, so should be easy to tweak I'd think:

Let me know if it works for you and if any mods needed and I'll update my KB doc.
 

kenn10

Well-Known Member
Joined
Dec 16, 2007
Messages
3,764
Reaction score
2,173
Hey @kenn10 , here's my notes ... utilizing superfecta, so should be easy to tweak I'd think:

Let me know if it works for you and if any mods needed and I'll update my KB doc.
I've tried the add-on module and that doesn't work. I'll keep hacking away and advise. I'll try the override configuration.

The module is putting the CNAM in the userfield in CDR but the phone is not updating with the called cnam. I'm wondering if Asterisk 18.4 or 18.5 has broken something; although on my 18.4 system on another server it worked. I restored that backup to a new system and it doesn't.
 

kenn10

Well-Known Member
Joined
Dec 16, 2007
Messages
3,764
Reaction score
2,173
@krzykat the oss module breaks Freepbx and it won't allow you to apply changes. I removed the module and it fixed that problem...until I discovered the asteriskdb was corrupted. I did another incrediblerestore2021 of my original reference system and now it all works. More questions to ponder.
 
Last edited:

krzykat

Telecom Strategist
Joined
Aug 2, 2008
Messages
3,145
Reaction score
1,235
@krzykat the oss module breaks Freepbx and it won't allow you to apply changes. I removed the module and it fixed that problem...until I discovered the asteriskdb was corrupted. I did another incrediblerestore2021 of my original reference system and now it all works. More questions to ponder.
I haven't used it in a while, but I think I should add it back into our template and get it back working ... just need more time LOL
 

Members online

No members online now.

Forum statistics

Threads
25,778
Messages
167,504
Members
19,198
Latest member
serhii
Get 3CX - Absolutely Free!

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.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top