Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cid_num in table sccpline does not fill in when creating SCCP extension #74

Open
metanot opened this issue Feb 16, 2022 · 1 comment
Open

Comments

@metanot
Copy link

metanot commented Feb 16, 2022

Sccp Manager v14.5.0.4

At some point all newly created extensions does not have cid_num filled with extension number, therefore all internal calls from that extensions shows only info from cid_name column

(In fact it's a rather useful for cases, where i need to hide extension number in incoming calls, but i think FreePBX can handle such cases with other tools :) )

Here is a screenshot without filled cid_num
sccpline_w_error

But, if i fill in Outbound CID - cid_num is correctly populating with my Outbound CID
sccpline_wo_error

And, if i remove Outbound CID for extension, cid_num is reverting to NULL

@carlsondan
Copy link

Yes, have a look at Sccp.class.php. I'm not sure why this is being done, but effectively, the code is taking what is being populated in the outboundcid field and assigning it to the cid_num field in the sccpline table. If you add a new line and the outboundcid field is left blank then the cid_num field in the sccpline table is given a null value. This causes problems for internal calling and for accessing voice mail (*97), where it does not recognize the extension.

The workaround I did involved removing the code that assigned outboundcid to $settings['cid_num']['value'], modified code to parse outboundcid if it included cid name and number and assign number to $outboundcid only. I then assigned a the $id value (the extension number) to $settings['cid_num']['value'].

After making these changes, doing a "sccp show line XXXX" shows both the "Caller ID name" and the "Caller ID number" properly. Doing a "database show ampuser XXXX" shows the correct information in /AMPUSER/XXXX/cidname, /AMPUSER/XXX/cidnum, and /AMPUSER/XXXX/outboundcid. Putting a value in the "Outbound CID" form field only changes /AMPUSER/XXXX/outboundcid as I believe it should. More importantly, doin an internal call display the correct cid_name and cid_number on the receiving end, and when the user dials voice mail (*97), it recognizes the calling extension. If an oubound call is made and value was put into the "Outbound CID" form field, then that override value is sent out the trunk line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants