[asterisk-r2] setting a default ANI for trunk

Demian Biscocho demian at vnowinc.com
Wed Jun 3 22:38:08 CDT 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-r2/attachments/20090604/6346d030/attachment.htm 


More information about the asterisk-r2 mailing list