PhantomVl / sccp_manager

SCCP Manager
35 stars 19 forks source link

CID_NUM value in SCCPLINE issue #72

Open justinkoby opened 4 years ago

justinkoby commented 4 years ago

I noticed an issue when I was setting Outbound CID for my SCCP devices. I found that their Outbound CID was then displaying as their CID for internal calls as well (instead of their extension nunber).

I opened an issue request over at chan-sccp (https://github.com/chan-sccp/chan-sccp/issues/516) while I continued to do research.

I discovered today that the CID_NUM value in the SCCPLINE table appears to be populating with the wrong CID value. When I manually change the CID_NUM to the correct extension number, it appears to solve the issue.

However, as soon as I make a change to the extension through the extension GUI, the line in the SCCPLINE table for that extension is deleted and recreated with the outbound CID as the CID_NUM value instead of the extension number.

Is this something that is a misconfiguration on my part or an issue with code somewhere? I've looked through the code here but have not found a "insert into sccpline...." SQL statement.

dkgroot commented 4 years ago

Please read: to explain the issue further. please check my comment as well.

dkgroot commented 3 years ago

@PhantomVl Can you help me out to correct this. I cannot find where the outboundcid is being saved into the sccpline table. The outboundcid (containting: '"name" ') should be split to fill the two cid_name and cid_num fields, instead of copying everything into cid_num. That way the FPBX dialplan can match the cid_num correctly later on.