[asterisk-r2] setting a default ANI for trunk

Carlos Andrés Tapasco Viera ctapasco at opengroupsa.com
Wed Jun 3 23:12:07 CDT 2009


I've configured my E1-R2 this way

exten => _6.,1,Set(CALLERID(number)="028987000")
exten => _6.,n,Dial(${TrunkPLDT}/${EXTEN:1},,tTo)
exten => _6.,n,Hangup


On Wed, Jun 3, 2009 at 10:38 PM, Demian Biscocho <demian at vnowinc.com> wrote:

> I'm having some problems assigning an ANI to an E1R2 trunk.
>
> *extensions.conf:*
>
> exten => _6.,1,Set(CALLERID(ANI)="028987000")
> exten => _6.,n,Dial(${TrunkPLDT}/${EXTEN:1},,tTo)
> exten => _6.,n,Hangup
>
> *zapata.conf:*
>
> [channels]
> usecallerid=yes
> callwaiting=yes
> usecallingpres=yes
> callwaitingcallerid=yes
> threewaycalling=yes
> transfer=yes
> canpark=yes
> cancallforward=yes
> callreturn=yes
> echocancel=yes
> echocancelwhenbridged=yes
> callerid=028987000
>
> ;MFCR2 settings
> signalling=mfcr2
> mfcr2_variant=ph
> ;mfcr2_variant=itu
> ;mfcr2_advanced_protocol_file=/etc/asterisk/r2proto.conf
> mfcr2_get_ani_first=no
> mfcr2_max_ani=12
> mfcr2_max_dnis=18
> mfcr2_category=national_subscriber
>
> ;debugging
> mfcr2_logdir=span1
> mfcr2_logging=all
> mfcr2_call_files=no
>
> ; Span 1 going to PLDT
> context=inbound
> callerid=028987000
> group=0
> channel => 1-15
> channel => 17-31
>
> Whenever I dial out, the ANI being sent is the ANI from the calling
> extension. Is there a way to mask all outgoing calls with a single ANI just
> like with a SIP trunk?
>
> --
> Regards,
>
> Demian A. Biscocho
> CTO
> vNOW Inc.
> Unit 420 Suite 4/F Burgundy Empire Tower
> ADB Avenue Ortigas Center Pasig City 1605
> Web: http://www.vnowinc.com
> PH office: 63 27016872
>
> Lead Developer
> VicidialNOW open source project
> http://www.vicidialnow.org
>
> Linux User 121825 (http://counter.li.org)
> US mobile: 1 2062036815
> PH mobile: 63 9172491537
>
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-r2 mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-r2
>



-- 
Carlos Andrés Tapasco Viera
OpenGroup
Ingeniero Electrónico
Area de Telecomunicaciones
IP-PBX +57-24862030
Mobile 1 +57-3117650143
Mobile 2 +57-3012141132
Santiago de Cali
Valle del Cauca
Colombia
Sudamérica
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-r2/attachments/20090603/d24ac294/attachment.htm 


More information about the asterisk-r2 mailing list