[asterisk-biz] Need help with Asterisk Config

AmberVoIP ambervoip at gmail.com
Wed Aug 16 00:34:39 MST 2006


Hello,

yes, it is possible, with dialplan (context) tricks.
my system, for example, working this way

1. on each did convert its local number (i.e. 07XXXYYYZZZZ for UK) to
e164

2. looking is number at all present in the CALLERIDNUM, if there is no
number, looking to CALLERIDNAME for it.

3. if in both parts is no number, lookup by database to assign it

4. if need, privacy manager (caller must DTMF his number) working

so, it is possible to change for any needs, i do not see any problem
with it.

if we calling to SIP phone, many of them show you both name and number,
so, do not need nothing special, if we calling to PSTN or cell phone,
we can only show some number and have to replace.

just one example:
this replace local number to customer's DID when caller calling within
his country, to e164 and sending later to calling card script:

exten => s,4,GotoIf($["${CALLERIDNUM}"  = "739024204"]?5:6)
exten => s,5,Set(PresentCID=4420701231231)

PresentCID -new calelrid to display 

this removing 00 from incoming calls from Italian DID (they send
00e164) and send to biling):

exten => _X.,5,GotoIf($["${CALLERIDNUM}"  = "${ACCOUNTCODE}"]?6:9)
exten => _X.,6,SetCIDNUM(${CALLERIDNAME})
exten => _X.,7,GotoIf($["${CALLERIDNAME:0:2}"  = "00"]?8:9)
exten => _X.,8,SetCIDNUM(${CALLERIDNAME:2})
exten => _X.,9,noop
exten => _X.,10,DeadAGI(billing.agi|5)

next script:

; czech numbers (9 digits - add leading 420)
exten => _X.,1,GotoIf($[${LEN(${CALLERIDNUM})} != 9]?4:2)
exten => _X.,2,SetCIDNum(420${CALLERIDNAME})
exten => _X.,3,noop ; GoTo(9)

; for billing purpose and zero removing
exten => _X.,4,noop(${CALLERID})
exten => _X.,5,GotoIf($["${CALLERIDNUM}"  = "${ACCOUNTCODE}"]?6:9)
exten => _X.,6,SetCIDNUM(${CALLERIDNAME})
exten => _X.,7,GotoIf($["${CALLERIDNAME:0:2}"  = "00"]?8:9)
exten => _X.,8,SetCIDNUM(${CALLERIDNAME:2})

If you want us to work with your goal, you can contact me offline. Or
look to above part.

Andy.

On Tue, 15 Aug 2006 22:16:36 -0400
"Roebuck Business Centre" <amw at roebuckbusinesscentre.com> wrote:

> 
> This may not be the right forum for this, but I've not been able to
> get a response to this issue on other forums for weeks now.
> 
> I need a way to have Asterisk display the Caller Name when the Caller
> Number is blocked. 
> 
> If I receive a PSTN call with the Caller Number displayed but no
> caller name (e.g. cell phone calls), Asterisk will pass the number
> through to extensions. But if the caller's name is shown and the
> number is withheld/blocked, Asterisk does not pass the name. Such
> calls are displayed with the name "unknown".
> 
> I need to configure Asterisk to show the name even if the number is
> blocked.
> 
> Is this possible?
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> asterisk-biz mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-biz





More information about the asterisk-biz mailing list