I'm trying to set the callerid of the outgoing calls to the customer phone number from his account. As i see into the a2billing.conf seems to be posible to get if from a bought DID from that customer.
Whatever i do make the callerid be his original callerid, nothing else. Any suggestion?
; enable the presentation of a callerID number
auto_setcallerid=NO
; If set, and auto_setcallerid is enabled, the number is sent as CID always
force_callerid=
; If force_callerid is not set, then this ensures that CID is set to one of the ccard's configured caller IDs or blank if none available.
; NO - disable this feature, caller ID can be anything.
; CID - Caller ID must be one of the customers caller IDs
; DID - Caller ID must be one of the customers DID nos.
; BOTH - Caller ID must be one of the above two items.
cid_sanitize=DID
a2billing2.php|1: line:490 get_agi_request_parameter = 334 ; Zap/31-1 ; 1159439566.3207 ; ; 34933968017
a2billing2.php|1: line:138 - [ANSWER CALL]
a2billing2.php|1: line:1283 - [CID_ENABLE - CID_CONTROL - CID:334]
a2billing2.php|1: line:1299 - SELECT cc_callerid.cid, cc_callerid.id_cc_card, cc_callerid.activated, cc_card.credit, cc_card.tariff, cc_card.activated, cc_card.inuse, cc_card.simultaccess, cc_card.typepaid, cc_card.creditlimit, cc_card.language, cc_card.username, removeinterprefix, cc_card.redial, enableexpire, UNIX_TIMESTAMP(expirationdate), expiredays, nbused, UNIX_TIMESTAMP(firstusedate), UNIX_TIMESTAMP(cc_card.creationdate), cc_card.currency, cc_card.lastname, cc_card.firstname, cc_card.email, cc_card.uipass, cc_card.id_campaign, cc_card.id, useralias FROM cc_callerid LEFT JOIN cc_card ON cc_callerid.id_cc_card=cc_card.id LEFT JOIN cc_tariffgroup ON cc_card.tariff=cc_tariffgroup.id WHERE cc_callerid.cid='334'
a2billing2.php|1: line:1302 - Array
a2billing2.php|1: [REQUESTED SetCallerID : 334]
a2billing2.php|1: [EXEC SetCallerID : 334]
a2billing2.php|1: line:519 - UPDATE cc_card SET inuse=inuse+1 WHERE username='424033'
a2billing2.php|1: line:166 - [CHANNEL STATUS : 6 = Line is up]
|