second method step 1
first edit this file
/var/www/html/a2billing/common/lib/Class.A2Billing.php
oregional line 2629
Code:
if ($callerID_enable == 1 && is_numeric($this->CallerID) && $this->CallerID > 0) {
replace with below line
modified line 2629
Code:
if ($callerID_enable == 1 ) {
save
exit
step 2
if you using freepbx
then edit this file /etc/asterisk/extensions_override_freepbx.conf
and add this 2 context
Code:
[from-skype-external]
;give external sip users congestion and hangup
; Yes. This is _really_ meant to be _. - I know asterisk whinges about it, but
; I do know what I'm doing. This is correct.
exten => _.,1,NoOp(Received incoming SIP connection from ${CALLERID(name)} and ${CALLERID(num)})
exten => _.,n,Set(DID=${IF($["${EXTEN:1:2}"=""]?s:${EXTEN})})
exten => _.,n,Set(CALLERID(num)=${DID})
exten => _.,n,Goto(s,1)
exten => s,1,GotoIf($["${ALLOW_SIP_ANON}"="yes"]?from-skype1,${DID},1)
exten => h,1,NoOp(Hangup)
exten => i,1,NoOp(Invalid)
exten => t,1,NoOp(Timeout)
[from-skype1]
exten => _.,1,NoOp(Received incoming callerid number is set to ${CALLERID(num)})
same => n,Goto(a2billing,99,1)
save and exit
and reload
step 3in a2billing admin web interface
goto customers acount and add skypename in add new caller id section and Done
with this method you dont need 1 entry for every customer in
/etc/asterisk/extensions_override_freepbx.conf
enjoy
best off luck