Help, i really need some help

I am new to asterisk, I have to complete a ivr someone who started here in my new job.

;TGU = estos son codigos de ciudades de mi Pais
exten => _92[2]XXXXXX,1,Set(CALLERID(number)=22802030)
exten => _92[2]XXXXXX,2,Dial(SIP/${EXTEN:1}@trunk_empresa)

;SPS = estos son codigos de ciudades de mi Pais
exten => _92[5]XXXXXX,1,Set(CALLERID(number)=25802330)
exten => _92[5]XXXXXX,2,Dial(SIP/${EXTEN:1}@trunk_empresa)

can someone explain what that means? as detailed as possible.

y esto que creo que tambien esta relacionado
[IVR]
exten => 666,1,Set(CHANNEL(language)=es)
exten => 666,2,Answer()
exten => 666,3,agi(sistema.php)
exten => 666,4,Set(CALLERID(number)=${NUMERO})
exten => 666,5,Dial(SIP/${Telefono}@Trunk_Telecorp,50,TrL(${Tiempo},60000,15000))
exten => 666,6,Hangup()

;exten => h,1,NoOP(Answeredtime)
exten => h,1,agi(sistema2.php,${Llamante})
;exten => h,2,Hangup()

I would really appreciate if you help me with this and if you tell me a source for learning to program these contexts and the dialplan, I learned of AGI, thank you from Honduras.

I comment. The system works this way. someone call the IVR and I pass the call according to the data entered (which are processed by the AGI) through a trunk to a fixed number (which I choose, according to data entered)
Juande15the
Fresh Boarder
Mensajes: 2
graphgraph
Usuario Online Presiona aquí para ver el perfil de este usuario

There is nothing difficult in the Asterisk dialplan coding here. So asteriskdocs.org/ and/or reading the sample dialplan should explain all.

Your difficulty will be in the AGI script. The online book at the above reference will explain how AGI works, but you will need to reverse engineer the custom scripts yourself.

Normally IVR doesn’t need AGI.

Hi, thanks for the reply, i already know how to program the AGI script, what i dont understand is, if the code i pasted is correct, because i cant find any posible mistake. Please help me. Thanks from Honduras.

exten => 666,5,Dial(SIP/${Telefono}@Trunk_Telecorp,50,TrL(${Tiempo},60000,15000))

is this line, specific, correct???

it supposed this line should be calling a number, like this

exten => 666,5,Dial(SIP/${22221515}@Trunk_Telecorp,50,TrL(${6000},60000,15000))

Please help

${Telefono} and ${Tiempo} are dialplan variables. They are presumably being set by the AGI script.

A verbose CLI trace will show the substituted Dial parameters.

Also there is nothing in your example that is specific to a country or PSTN provider.

For future reference, subjects should precis the full question, not state your state of mind.