Help me - important

Hi everybody,

I need yours help. First of all I’m new at asterisk but anyway I need to use it at my new job.

Coping the configuration from another phone and adding the user in sip.conf file i registred the new phone.BUT

the problem

I’m not able to call outside, I can only call the other number in the sip file but I can’t go outside.

please help me
yhank you in advance

Noone would be able to help you without seeing the configuration (sip.conf, extensions.conf) and console output when you attempt to call.

It’s clear from your question that you have a fundamental lack of knowledge on how Asterisk works. I don’t say that to be insulting - merely to point out that you need to learn the basics in order to administer Asterisk. Those basics are not going to be easily learned from a forum.

I previously linked to some learning materials on this post; I would highly recommend checking them out.

ok right I don’t know it, but please help me.
once I added the user in sip.conf, what I have to do in extension.conf

I added the user 1031 in sip.conf but it can not call outside

[globals]

ENOVIA_CENTRALINO=SIP/1000

ENOVIA_ALBERTO=SIP/1011

ENOVIA_VINCENZO=SIP/1019

ENOVIA_EMANUELA=SIP/1002

ENOVIA_CRISTIANO=SIP/1018

ENOVIA_ANNALISA=SIP/1001

ENOVIA_IVO=SIP/1015

ENOVIA_MARGHERITA=SIP/1003

ENOVIA_ELETTRONICI=SIP/1013

ENOVIA_INFORMATICI=SIP/1012

ENOVIA_LABORATORIO=SIP/1004

ENOVIA_ESHOCK=SIP/1014

ENOVIA_BLUBRAKE=SIP/1016

D2G_CENTRALINO=SIP/1008

D2G_GR1=SIP/1005

D2G_GR2=SIP/1007

D2G_GR3=SIP/1006

D2G_GR4=SIP/1009

D2G_GR5=SIP/1010

[incoming]

exten
=> s,1,Set(RDID=${SIP_HEADER(TO)})

exten
=> s,n,Set(RDID=${CUT(RDID,:,2)})

exten
=> s,n,Set(RDID=${CUT(RDID,@,1)})

exten
=> s,n,Goto(${RDID},1)

exten
=> 0245902000,1,Set(CDR(accountcode)=enovia)

exten
=> 0245902001,1,Set(CDR(accountcode)=enovia)

exten
=> 0245902002,1,Set(CDR(accountcode)=enovia)

exten
=> 0245902003,1,Set(CDR(accountcode)=enovia)

exten
=> 0245902004,1,Set(CDR(accountcode)=enovia)

exten
=> 0245902005,1,Set(CDR(accountcode)=enovia)

exten
=> 0245902006,1,Set(CDR(accountcode)=enovia)

exten
=> 0245902007,1,Set(CDR(accountcode)=enovia)

exten
=> 0245902008,1,Set(CDR(accountcode)=enovia)

exten
=> 0245902009,1,Set(CDR(accountcode)=enovia)

exten
=> 0245902010,1,Set(CDR(accountcode)=enovia)

exten
=> 0245902011,1,Set(CDR(accountcode)=enovia)

exten
=> 0245902012,1,Set(CDR(accountcode)=enovia)

exten
=> 0245902013,1,Set(CDR(accountcode)=D2G)

exten
=> 0245902014,1,Set(CDR(accountcode)=D2G)

exten
=> 0245902015,1,Set(CDR(accountcode)=D2G)

exten
=> 0245902016,1,Set(CDR(accountcode)=D2G)

exten
=> 0245902017,1,Set(CDR(accountcode)=D2G)

exten
=> 0245902053,1,Set(CDR(accountcode)=D2G)

exten
=> _02459020XX,1,Set(CDR(accountcode)=enovia)

;ferie

exten
=> _X.,1000,Playback(annalisa)

exten
=> _X.,1001,HangUp()

;portati

exten
=> 0249756806,1,Goto(0245902000,1)

exten
=> 0249762400,1,Goto(0245902000,1)

exten
=> 0249763181,1,Goto(0245902000,1)

exten
=> 0284171020,1,Goto(0245902000,1)

exten
=> 0284180,1,Goto(0245902014,1)

exten
=> 0284180205,1,Goto(0245902014,1)

exten
=> 0284180206,1,Goto(0245902017,1)

exten
=> 0284180123,1,Goto(0245902013,1)

exten
=> 0284180112,1,Goto(0245902016,1)

exten
=> 0284180102,1,Goto(0245902015,1)

exten
=> 0284180101,1,Goto(0245902053,1)

exten
=> 0284180400,1,Goto(fax-rx,fax,1)

exten
=> 0245902000,2,Dial(${ENOVIA_CENTRALINO},20)

exten
=> 0245902000,3,Dial(${ENOVIA_ANNALISA},20)

exten
=> 0245902000,4,GotoIfTime(,,5-21,Aug?1000)

exten
=> 0245902000,5,HangUp()

exten
=> 0245902001,2,Dial(${ENOVIA_EMANUELA},20)

exten
=> 0245902001,3,Dial(${ENOVIA_ANNALISA},20)

exten
=> 0245902001,4,GotoIfTime(,,5-21,Aug?1000)

exten
=> 0245902001,5,HangUp()

exten
=> 0245902002,2,Dial(${ENOVIA_ANNALISA},20)

exten
=> 0245902002,3,Dial(${ENOVIA_CENTRALINO},20)

exten
=> 0245902002,4,GotoIfTime(,,5-21,Aug?1000)

exten
=> 0245902002,5,HangUp()

exten
=> 0245902003,2,Dial(${ENOVIA_VINCENZO},20)

exten
=> 0245902003,3,Dial(${ENOVIA_CENTRALINO},20)

exten
=> 0245902003,4,GotoIfTime(,,5-21,Aug?1000)

exten
=> 0245902003,5,HangUp()

exten
=> 0245902004,2,Dial(${ENOVIA_CRISTIANO},20)

exten
=> 0245902004,3,Dial(${ENOVIA_CENTRALINO},20)

exten
=> 0245902004,4,GotoIfTime(,,5-21,Aug?1000)

exten
=> 0245902004,5,HangUp()

exten
=> 0245902005,2,Dial(${ENOVIA_IVO},20)

exten
=> 0245902005,3,Dial(${ENOVIA_CENTRALINO},20)

exten
=> 0245902005,4,GotoIfTime(,,5-21,Aug?1000)

exten
=> 0245902005,5,HangUp()

exten
=> 0245902006,2,Dial(${ENOVIA_ELETTRONICI},20)

exten
=> 0245902006,3,Dial(${ENOVIA_CENTRALINO},20)

exten
=> 0245902006,4,GotoIfTime(,,5-21,Aug?1000)

exten
=> 0245902006,5,HangUp()

exten
=> 0245902007,2,Dial(${ENOVIA_MARGHERITA},20)

exten
=> 0245902007,3,Dial(${ENOVIA_CENTRALINO},20)

exten
=> 0245902007,4,GotoIfTime(,,5-21,Aug?1000)

exten
=> 0245902007,5,HangUp()

exten
=> 0245902008,2,Dial(${ENOVIA_ALBERTO},20)

exten
=> 0245902008,3,Dial(${ENOVIA_CENTRALINO},20)

exten
=> 0245902008,4,GotoIfTime(,,5-21,Aug?1000)

exten
=> 0245902008,5,HangUp()

exten
=> 0245902009,2,Dial(${ENOVIA_INFORMATICI},20)

exten
=> 0245902009,3,Dial(${ENOVIA_CENTRALINO},20)

exten
=> 0245902009,4,GotoIfTime(,,5-21,Aug?1000)

exten
=> 0245902009,5,HangUp()

exten
=> 0245902010,2,Dial(${ENOVIA_ESHOCK},20)

exten
=> 0245902010,3,Dial(${ENOVIA_CENTRALINO},20)

exten
=> 0245902010,4,GotoIfTime(,,5-21,Aug?1000)

exten
=> 0245902010,5,HangUp()

exten
=> 0245902011,2,Dial(${ENOVIA_BLUBRAKE},20)

exten
=> 0245902011,3,Dial(${ENOVIA_CENTRALINO},20)

exten
=> 0245902011,4,GotoIfTime(,,5-21,Aug?1000)

exten
=> 0245902011,5,HangUp()

exten
=> 0245902012,2,Dial(${ENOVIA_LABORATORIO},20)

exten
=> 0245902012,3,Dial(${ENOVIA_CENTRALINO},20)

exten
=> 0245902012,4,GotoIfTime(,,5-21,Aug?1000)

exten
=> 0245902012,5,HangUp()

exten
=> 0245902013,2,Dial(${D2G_GR5},30)

exten
=> 0245902013,3,GotoIfTime(,,5-21,Aug?1000)

exten
=> 0245902013,4,HangUp()

exten
=> 0245902014,2,Dial(${D2G_CENTRALINO},30)

exten
=> 0245902014,3,HangUp()

exten
=> 0245902015,2,Dial(${D2G_GR1},30)

exten
=> 0245902015,3,HangUp()

exten
=> 0245902016,2,Dial(${D2G_GR2},30)

exten
=> 0245902016,3,HangUp()

exten
=> 0245902017,2,Dial(${D2G_GR3},30)

exten
=> 0245902017,3,HangUp()

exten
=> 0245902053,2,Dial(${D2G_GR4},30)

exten
=> 0245902053,3,HangUp()

exten
=> _02459020XX,2,Goto(,0245902000,2)

[enovia_int]

exten
=> _X.,1,Set(CDR(accountcode)=enovia)

exten
=> _+X!,1,Goto(enovia_int,00${EXTEN:1},2)

exten
=> _99XXX,2,agi(internselect.sh, ${EXTEN})

exten
=> _99XXX,3,Verbose(“variable: ${retval}”)

exten
=> _99XXX,4,Dial(${retval})

exten
=> _10XX,2,Dial(SIP/${EXTEN})

exten
=> _20XXX,2,Dial(SIP/${EXTEN})

exten
=> _0./1000,2,Set(CALLERID(all)=“e-Novia” <0245902000>)

exten
=> _0./1002,2,Set(CALLERID(all)=“e-Novia” <0245902001>)

exten
=> _0./1001,2,Set(CALLERID(all)=“e-Novia” <0245902002>)

exten
=> _0./1019,2,Set(CALLERID(all)=“e-Novia” <0245902003>)

exten
=> _0./1018,2,Set(CALLERID(all)=“e-Novia” <0245902004>)

exten
=> _0./1015,2,Set(CALLERID(all)=“e-Novia” <0245902005>)

exten
=> _0./1013,2,Set(CALLERID(all)=“e-Novia” <0245902006>)

exten
=> _0./1003,2,Set(CALLERID(all)=“e-Novia” <0245902007>)

exten
=> _0./1011,2,Set(CALLERID(all)=“e-Novia” <0245902008>)

exten
=> _0./1012,2,Set(CALLERID(all)=“e-Novia” <0245902009>)

exten
=> _0./1014,2,Set(CALLERID(all)=“e-Novia” <0245902010>)

exten
=> _0./1016,2,Set(CALLERID(all)=“e-Novia” <0245902011>)

exten
=> _0./1004,2,Set(CALLERID(all)=“e-Novia” <0245902012>)

exten
=> _0./1030,2,Set(CALLERID(all)=“Sala Brainstorm Arena”
<0245902000> )

exten
=> _1./1000,2,Set(CALLERID(all)=“e-Novia” <0245902000>)

exten
=> _1./1002,2,Set(CALLERID(all)=“e-Novia” <0245902001>)

exten
=> _1./1001,2,Set(CALLERID(all)=“e-Novia” <0245902002>)

exten
=> _1./1019,2,Set(CALLERID(all)=“e-Novia” <0245902003>)

exten
=> _1./1018,2,Set(CALLERID(all)=“e-Novia” <0245902004>)

exten
=> _1./1015,2,Set(CALLERID(all)=“e-Novia” <0245902005>)

exten
=> _1./1013,2,Set(CALLERID(all)=“e-Novia” <0245902006>)

exten
=> _1./1003,2,Set(CALLERID(all)=“e-Novia” <0245902007>)

exten
=> _1./1011,2,Set(CALLERID(all)=“e-Novia” <0245902008>)

exten
=> _1./1012,2,Set(CALLERID(all)=“e-Novia” <0245902009>)

exten
=> _1./1014,2,Set(CALLERID(all)=“e-Novia” <0245902010>)

exten
=> _1./1016,2,Set(CALLERID(all)=“e-Novia” <0245902011>)

exten
=> _1./1004,2,Set(CALLERID(all)=“e-Novia” <0245902012>)

exten
=> _1./1030,2,Set(CALLERID(all)=“Sala Brainstorm Arena”
<0245902000> )

exten
=> _3./1000,2,Set(CALLERID(all)=“e-Novia” <0245902000>)

exten
=> _3./1002,2,Set(CALLERID(all)=“e-Novia” <0245902001>)

exten
=> _3./1001,2,Set(CALLERID(all)=“e-Novia” <0245902002>)

exten
=> _3./1019,2,Set(CALLERID(all)=“e-Novia” <0245902003>)

exten
=> _3./1018,2,Set(CALLERID(all)=“e-Novia” <0245902004>)

exten
=> _3./1015,2,Set(CALLERID(all)=“e-Novia” <0245902005>)

exten
=> _3./1013,2,Set(CALLERID(all)=“e-Novia” <0245902006>)

exten
=> _3./1003,2,Set(CALLERID(all)=“e-Novia” <0245902007>)

exten
=> _3./1011,2,Set(CALLERID(all)=“e-Novia” <0245902008>)

exten
=> _3./1012,2,Set(CALLERID(all)=“e-Novia” <0245902009>)

exten
=> _3./1014,2,Set(CALLERID(all)=“e-Novia” <0245902010>)

exten
=> _3./1016,2,Set(CALLERID(all)=“e-Novia” <0245902011>)

exten
=> _3./1004,2,Set(CALLERID(all)=“e-Novia” <0245902012>)

exten
=> _3./1030,2,Set(CALLERID(all)=“Sala Brainstorm Arena”
<0245902000> )

exten
=> _8./1000,2,Set(CALLERID(all)=“e-Novia” <0245902000>)

exten
=> _8./1002,2,Set(CALLERID(all)=“e-Novia” <0245902001>)

exten
=> _8./1001,2,Set(CALLERID(all)=“e-Novia” <0245902002>)

exten
=> _8./1019,2,Set(CALLERID(all)=“e-Novia” <0245902003>)

exten
=> _8./1018,2,Set(CALLERID(all)=“e-Novia” <0245902004>)

exten
=> _8./1015,2,Set(CALLERID(all)=“e-Novia” <0245902005>)

exten
=> _8./1013,2,Set(CALLERID(all)=“e-Novia” <0245902006>)

exten
=> _8./1003,2,Set(CALLERID(all)=“e-Novia” <0245902007>)

exten
=> _8./1011,2,Set(CALLERID(all)=“e-Novia” <0245902008>)

exten
=> _8./1012,2,Set(CALLERID(all)=“e-Novia” <0245902009>)

exten
=> _8./1014,2,Set(CALLERID(all)=“e-Novia” <0245902010>)

exten
=> _8./1016,2,Set(CALLERID(all)=“e-Novia” <0245902011>)

exten
=> _8./1004,2,Set(CALLERID(all)=“e-Novia” <0245902012>)

exten
=> _8./1030,2,Set(CALLERID(all)=“Sala Brainstorm Arena”
<0245902000> )

exten
=> _2./1000,2,Set(CALLERID(all)=“Luisa” <2000>)

exten
=> _2./1002,2,Set(CALLERID(all)=“Emanuela” <2001>)

exten
=> _2./1001,2,Set(CALLERID(all)=“Annalisa” <2002>)

exten
=> _2./1019,2,Set(CALLERID(all)=“Vincenzo” <2003>)

exten
=> _2./1018,2,Set(CALLERID(all)=“Cristiano/Marcello” <2004>)

exten
=> _2./1015,2,Set(CALLERID(all)=“Ivo/Glauco” <2005>)

exten
=> _2./1013,2,Set(CALLERID(all)=“Elettronici” <2006>)

exten
=> _2./1003,2,Set(CALLERID(all)=“Designers” <2007>)

exten
=> _2./1011,2,Set(CALLERID(all)=“Automatici” <2008>)

exten
=> _2./1012,2,Set(CALLERID(all)=“Informatici” <2009>)

exten
=> _2./1014,2,Set(CALLERID(all)=“e-Shock” <2010>)

exten
=> _2./1016,2,Set(CALLERID(all)=“BluBrake” <2011>)

exten
=> _2./1004,2,Set(CALLERID(all)=“Laboratorio” <2012>)

exten
=> _2./1030,2,Set(CALLERID(all)=“Sala Brainstorm Arena”
<1030> )

exten
=> _0.,2,Goto(enovia_int,${EXTEN},3)

exten
=> _1.,2,Goto(enovia_int,${EXTEN},3)

exten
=> _2.,2,Goto(enovia_int,${EXTEN},3)

exten
=> _3.,2,Goto(enovia_int,${EXTEN},3)

exten
=> _8.,2,Goto(enovia_int,${EXTEN},3)

exten
=> 2000,3,Dial(${ENOVIA_CENTRALINO},30)

exten
=> 2001,3,Dial(${ENOVIA_EMANUELA},30)

exten
=> 2002,3,Dial(${ENOVIA_ANNALISA},30)

exten
=> 2003,3,Dial(${ENOVIA_VINCENZO},30)

exten
=> 2004,3,Dial(${ENOVIA_CRISTIANO},30)

exten
=> 2005,3,Dial(${ENOVIA_IVO},30)

exten
=> 2006,3,Dial(${ENOVIA_ELETTRONICI},30)

exten
=> 2007,3,Dial(${ENOVIA_MARGHERITA},30)

exten
=> 2008,3,Dial(${ENOVIA_ALBERTO},30)

exten
=> 2009,3,Dial(${ENOVIA_INFORMATICI},30)

exten
=> 2010,3,Dial(${ENOVIA_ESHOCK},30)

exten
=> 2011,3,Dial(${ENOVIA_BLUBRAKE},30)

exten
=> 2012,3,Dial(${ENOVIA_LABORATORIO},30)

exten
=> 2013,3,Dial(${D2G_GR5},30)

exten
=> 2014,3,Dial(${D2G_CENTRALINO},30)

exten
=> 2015,3,Dial(${D2G_GR1},30)

exten
=> 2016,3,Dial(${D2G_GR2},30)

exten
=> 2017,3,Dial(${D2G_GR3},30)

exten
=> 2053,3,Dial(${D2G_GR4},30)

exten
=> _0.,3,Dial(SIP/${EXTEN}@enovia-out)

exten
=> _1.,3,Dial(SIP/${EXTEN}@enovia-out)

exten
=> _3.,3,Dial(SIP/${EXTEN}@enovia-out)

exten
=> _8.,3,Dial(SIP/${EXTEN}@enovia-out)

exten
=> _X.,4,HangUp()

[d2g_int]

exten
=> _X.,1,Set(CDR(accountcode)=D2G)

exten
=> _+X!,1,Goto(d2g_int,00${EXTEN:1},2)

exten
=> _1XX,2,Dial(SIP/${EXTEN}@d2g-out)

exten
=> _1[0-2]XX,2,Dial(SIP/${EXTEN})

exten
=> 2000,2,Dial(${ENOVIA_CENTRALINO},30)

exten
=> 2001,2,Dial(${ENOVIA_EMANUELA},30)

exten
=> 2002,2,Dial(${ENOVIA_ANNALISA},30)

exten
=> 2003,2,Dial(${ENOVIA_VINCENZO},30)

exten
=> 2004,2,Dial(${ENOVIA_CRISTIANO},30)

exten
=> 2005,2,Dial(${ENOVIA_IVO},30)

exten
=> 2006,2,Dial(${ENOVIA_ELETTRONICI},30)

exten
=> 2007,2,Dial(${ENOVIA_MARGHERITA},30)

exten
=> 2008,2,Dial(${ENOVIA_ALBERTO},30)

exten
=> 2009,2,Dial(${ENOVIA_INFORMATICI},30)

exten
=> 2010,2,Dial(${ENOVIA_ESHOCK},30)

exten
=> 2011,2,Dial(${ENOVIA_BLUBRAKE},30)

exten
=> 2012,2,Dial(${ENOVIA_LABORATORIO},30)

exten
=> 2013,2,Dial(${D2G_GR5},30)

exten
=> 2014,2,Dial(${D2G_CENTRALINO},30)

exten
=> 2015,2,Dial(${D2G_GR1},30)

exten
=> 2016,2,Dial(${D2G_GR2},30)

exten
=> 2017,2,Dial(${D2G_GR3},30)

exten
=> 2053,2,Dial(${D2G_GR4},30)

exten
=> _0./1005,2,Set(CALLERID(num)=0245902015)

exten
=> _0./1006,2,Set(CALLERID(num)=0245902017)

exten
=> _0./1007,2,Set(CALLERID(num)=0245902016)

exten
=> _0./1008,2,Set(CALLERID(num)=0245902014)

exten
=> _0./1009,2,Set(CALLERID(num)=0245902053)

exten
=> _1./1005,2,Set(CALLERID(num)=0245902015)

exten
=> _1./1006,2,Set(CALLERID(num)=0245902017)

exten
=> _1./1007,2,Set(CALLERID(num)=0245902016)

exten
=> _1./1008,2,Set(CALLERID(num)=0245902014)

exten
=> _1./1009,2,Set(CALLERID(num)=0245902053)

exten
=> _3./1005,2,Set(CALLERID(num)=0245902015)

exten
=> _3./1006,2,Set(CALLERID(num)=0245902017)

exten
=> _3./1007,2,Set(CALLERID(num)=0245902016)

exten
=> _3./1008,2,Set(CALLERID(num)=0245902014)

exten
=> _3./1009,2,Set(CALLERID(num)=0245902053)

exten
=> _8./1005,2,Set(CALLERID(num)=0245902015)

exten
=> _8./1006,2,Set(CALLERID(num)=0245902017)

exten
=> _8./1007,2,Set(CALLERID(num)=0245902016)

exten
=> _8./1008,2,Set(CALLERID(num)=0245902014)

exten
=> _8./1009,2,Set(CALLERID(num)=0245902053)

exten
=> _0.,2,Set(CALLERID(num)=0245902013)

exten
=> _1.,2,Set(CALLERID(num)=0245902013)

exten
=> _3.,2,Set(CALLERID(num)=0245902013)

exten
=> _8.,2,Set(CALLERID(num)=0245902013)

exten
=> _0.,3,Dial(SIP/${EXTEN}@d2g-out)

exten
=> _1.,3,Dial(SIP/${EXTEN}@d2g-out)

exten
=> _3.,3,Dial(SIP/${EXTEN}@d2g-out)

exten
=> _8.,3,Dial(SIP/${EXTEN}@d2g-out)

exten
=> _X.,4,HangUp()

[fax-rx]

exten
=> fax,1,NoOp(**** FAX RECEIVED from ${CALLERID(num)}
${STRFTIME(${EPOCH},%c)} ****)

exten
=> fax,n,Set(FAXOPT(ecm)=yes)

exten
=> fax,n,Set(FILENAME=fax-${STRFTIME(${EPOCH},%Y%m%d-%H%M%S)})

exten
=> fax,n,Set(FAXFILE=${FILENAME}.tif)

exten
=> fax,n,Set(FAXOPT(ecm)=yes)

exten
=> fax,n,Set(FAXOPT(headerinfo)=Received by D2G
${STRFTIME(${EPOCH},%Y-%m-%d %H:%M)})

exten
=> fax,n,Set(FAXOPT(localstationid)=0245902019)

exten
=> fax,n,NoOp(**** RECEIVING FAX : ${FAXFILE} ****)

exten
=> fax,n,ReceiveFAX(/var/spool/asterisk/fax/${FAXFILE})

exten
=> fax,n,Hangup()

exten
=> h,1,System(/usr/share/asterisk/agi-bin/mailfax
"${CALLERID(num)}" “${FAXOPT(localstationid)}”
“Drive2Go” "info@drive2go.it"
"/var/spool/asterisk/fax/${FAXFILE}" “eNovia Faxserver script by
Paolo Meraviglia”)

SOLVED I DID

thank you, now i’m gonna registering cause i’ll need help again