Page 1 of 1

Trunk Zap Vicidial ISDN

PostPosted: Fri Sep 25, 2009 3:16 pm
by med_aatif
Hi everyone

Here are some of extensions.conf

I don't know how to call a list of numbers as 0X XX XX XX XX
as an international call, adding the country code eg 33 for France,
I use VicidialNow I don't know yet how to define a Zap trunk, I followed the
Manager manual and some documents, but there is a lack in creating this type of Trunk mostly it is an ISDN E1 = 2 Mb

[trunkgroups]
type=friend
username=user
dtmfmode=rfc2833
canreinvite=no
disallow=all
allow=g723.1
context=trunkgroups

exten => _933XXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _933XXXXXXXXX,2,Dial(TRUNK/${EXTEN})
exten => _933XXXXXXXXX,3,Hangup

Thanks

PostPosted: Fri Sep 25, 2009 9:30 pm
by williamconley
You know, I didn't get most of that. Sorry for the language barrier. But:

_933XXXXXXXXX

${EXTEN}

If you dial, for instance, 933555123123

will result in 933555123123 being sent to your provider. This is probably not expected.

if they want to receive: 33555123123, you need to change it to ${EXTEN:1}, which will strip off the 9 from the front (:1 will strip off the first digit)

if you look at your asterisk CLI you will likely get some useful information, but then again you could also call your T1 provider and find out what they are expecting.

PostPosted: Mon Sep 28, 2009 3:21 am
by gardo
You need to configure your E1 card first on Asterisk. What type of E1 card are you using?

PostPosted: Mon Sep 28, 2009 3:53 am
by med_aatif
Thanks gardo,

I have configured my card (TE121P) off line before connecting it to PABX Alcatel, It say 31 channels configured, and by testing the web agent it say NO LIVE CALLS

any help please

PostPosted: Mon Sep 28, 2009 6:46 am
by gardo
Have you configured it properly with Asterisk? Can you paste your zapata.conf and your Asterisk CLI when dialing?

PostPosted: Mon Sep 28, 2009 7:17 am
by med_aatif
That's my zapata.conf and for asterisk CLI I have not yet connected my asterisk with Alcatel PABX,

[trunkgroups]

[channels]
#context=unused
#signalling=fxs_ks
#channel => 01

language=fr
usercallerid=yes
hidecallerid=no
callwaiting=yes
restrictid=no
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
echocancel=yes
echotraining=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes

; DECLARATION DE LA CARTE DIGIUM TE121P

group=1
context=trunkgroups
switchtype=euroisdn
pridialplan=dynamic
prilocaldialplan=local
callerid=asreceived
signalling=pri_cpe
rxgain=0.0
txgain=0.0
callgroup=1
immediate=no
channel => 1-15,17-31

PostPosted: Mon Sep 28, 2009 7:20 am
by med_aatif
For extension cc100 I want to use for exemple a codec g723.1, and I for context=default, Is it possible

PostPosted: Tue Sep 29, 2009 3:04 am
by gardo
G723 is for SIP trunks not ISDN. If you're also going to use your ISDN for inbound, you need to place it under "trunkinbound" context.


Here's and example entry for an E1 trunk in extensions.conf:

[globals]
TRUNK=Zap/g1

[default]
exten => _9NXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9NXXXXXX,2,Dial(${TRUNK}/${EXTEN:1},,To)
exten => _9NXXXXXX,3,Hangup

Just replace the 9NXXXXXX with your own dialplan.

PostPosted: Tue Sep 29, 2009 4:11 am
by med_aatif
Hi,

I want to use my trunk for outbound calls, and I use context=default in my extensions.conf, I add also a codec g723.1 in the file sip-vicidial.conf for each extensions but I don't know if match or not

thanks