Cursos Servidores con Centos 6
Sistema Operativo ALDOS
Dezoft

Si algunos de nuestros foros, manuales, ALDOS, paquetería o proyectos te han resultado de ayuda, apreciaremos mucho nos apoyes con un donativo.

 Índice > Todo acerca de Linux > Asterisk y VoIP Nuevo tema Publicar Respuesta
 problema con linea
Tema anterior Tema siguiente
   
ctamez
Publicado en 04/07/08 04:31 (Leído 3614 veces)  

Participa poco
working
Forum User

Inscrito: 26/12/07 Publicaciones: 15
buenos dias: Tengo un problema estoy usando una linea sip para mi asterisk, saben si uno marca desde un telefono el asterisk responde y solicita marcar la extension deceada pero se marca la extencion y me da tono de ocupado, alguna idea sobre que estara pasando???, gracias. P.D. me sicede lo mismo cuando estoy en una extencion y trato de tomar linea me da tono de ocupado.
 
Perfil
 Citar
efuoax
Publicado en 04/07/08 04:52  

Participa poco
Forum User

Inscrito: 04/06/08 Publicaciones: 15
Hola ctamez,

que logs te arroja asterisk? puedes postear tambien los archivos .conf de la extension y troncal que mencionas para ver donde pudiera estar el problema?


Saludos, efuoax
 
Perfil
 Citar
ctamez
Publicado en 04/07/08 05:07  

Participa poco
Forum User

Inscrito: 26/12/07 Publicaciones: 15
[Apr 12 16:18:58] NOTICE[10710] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'.
[Apr 12 16:18:58] WARNING[10710] pbx.c: Context 'ael-local' tries includes nonexistent context 'ael-parkedcalls'
[Apr 12 16:18:58] WARNING[10710] pbx.c: Context 'ael-dundi-e164-local' tries includes nonexistent context 'ael-dundi-e164-canonical'
[Apr 12 16:18:58] WARNING[10710] pbx.c: Context 'ael-dundi-e164-local' tries includes nonexistent context 'ael-dundi-e164-customers'
[Apr 12 16:18:58] WARNING[10710] pbx.c: Context 'ael-dundi-e164-local' tries includes nonexistent context 'ael-dundi-e164-via-pstn'
[Apr 12 16:18:58] ERROR[10710] res_config_mysql.c: MySQL RealTime: Failed to connect database server on (err 2002). Check debug for more info.
[Apr 12 16:18:58] WARNING[10710] res_config_mysql.c: MySQL RealTime: Couldn't establish connection. Check debug.
[Apr 12 16:18:58] NOTICE[10710] config.c: Registered Config Engine mysql
[Apr 12 16:18:58] WARNING[10710] cdr_addon_mysql.c: Unable to load config for mysql CDR's: cdr_mysql.conf
[Apr 12 16:18:58] NOTICE[10710] src/chan_h323.c: Unable to load config ooh323.conf, OOH323 disabled

 
Perfil
 Citar
efuoax
Publicado en 04/07/08 05:24  

Participa poco
Forum User

Inscrito: 04/06/08 Publicaciones: 15
que hay de los archivos asterisk.conf y extensions.ael?
 
Perfil
 Citar
ctamez
Publicado en 04/07/08 05:48  

Participa poco
Forum User

Inscrito: 26/12/07 Publicaciones: 15
[directories]
astetcdir => /etc/asterisk
astmoddir => /usr/lib/asterisk/modules
astvarlibdir => /var/lib/asterisk
astdatadir => /var/lib/asterisk
astagidir => /var/lib/asterisk/agi-bin
astspooldir => /var/spool/asterisk
astrundir => /var/run/asterisk
astlogdir => /var/log/asterisk

;[options]
;internal_timing = yes
;systemname = my_system_name ; prefix uniqueid with a system name for global uniqueness issues
; Changing the following lines may compromise your security.
;[files]
;astctlpermissions = 0660
;astctlowner = root
;astctlgroup = apache
;astctl = asterisk.ctl




-----------------------------------------------------------------------------------------------------------

globals {
CONSOLE="Console/dsp"; // Console interface for demo
//CONSOLE=Zap/1
//CONSOLE=Phone/phone0
IAXINFO=guest; // IAXtel username/password
//IAXINFO="myuser:mypass";
TRUNK="Zap/g2"; // Trunk interface
//
// Note the 'g2' in the TRUNK variable above. It specifies which group (defined
// in zapata.conf) to dial, i.e. group 2, and how to choose a channel to use in
// the specified group. The four possible options are:
//
// g: select the lowest-numbered non-busy Zap channel
// (aka. ascending sequential hunt group).
// G: select the highest-numbered non-busy Zap channel
// (aka. descending sequential hunt group).
// r: use a round-robin search, starting at the next highest channel than last
// time (aka. ascending rotary hunt group).
// R: use a round-robin search, starting at the next lowest channel than last
// time (aka. descending rotary hunt group).
//
TRUNKMSD=1; // MSD digits to strip (usually 1 or 0)
//TRUNK=IAX2/user:pass@provider
};

//context name {
// exten-name => {
// application(arg1,arg2,...);
//
// Timing list for includes is
//
// <time range>|<days of week>|<days of month>|<months>
//
// includes {
// daytime|9:00-17:00|mon-fri|*|*;
// };
//
// ignorepat can be used to instruct drivers to not cancel dialtone upon
// receipt of a particular pattern. The most commonly used example is
// of course '9' like this:
//
// ignorepat => 9;
//
// so that dialtone remains even after dialing a 9.
//};

/ Sample entries for extensions.conf
//
//
context ael-dundi-e164-canonical {
//
// List canonical entries here
//
// 12564286000 => &ael-std-exten(6000,IAX2/foo);
// _125642860XX => Dial(IAX2/otherbox/${EXTEN:7});
};

context ael-dundi-e164-customers {
//
// If you are an ITSP or Reseller, list your customers here.
//
//_12564286000 => Dial(SIP/customer1);
//_12564286001 => Dial(IAX2/customer2);
};

context ael-dundi-e164-via-pstn {
//
// If you are freely delivering calls to the PSTN, list them here
//
//_1256428XXXX => Dial(Zap/g2/${EXTEN:7}); // Expose all of 256-428
//_1256325XXXX => Dial(Zap/g2/${EXTEN:7}); // Ditto for 256-325
};

context ael-dundi-e164-local {

// Context to put your dundi IAX2 or SIP user in for
// full access
//
includes {
ael-dundi-e164-canonical;
ael-dundi-e164-customers;
ael-dundi-e164-via-pstn;
};
};

context ael-dundi-e164-switch {
//
// Just a wrapper for the switch
//

switches {
DUNDi/e164;
};
};

context ael-dundi-e164-lookup {
//
// Locally to lookup, try looking for a local E.164 solution
// then try DUNDi if we don't have one.
//
includes {
ael-dundi-e164-local;
ael-dundi-e164-switch;
};
};

//
// DUNDi can also be implemented as a Macro instead of using
// the Local channel driver.
//
macro ael-dundi-e164(exten) {
//
// ARG1 is the extension to Dial
//
goto ${exten}|1;
};

//

//
// Here are the entries you need to participate in the IAXTEL
// call routing system. Most IAXTEL numbers begin with 1-700, but
// there are exceptions. For more information, and to sign
// up, please go to www.gnophone.com or www.iaxtel.com
//
context ael-iaxtel700 {
_91700XXXXXXX => Dial(IAX2/${IAXINFO}@iaxtel.com/${EXTEN:1}@iaxtel);
};

//
// The SWITCH statement permits a server to share the dialplan with
// another server. Use with care: Reciprocal switch statements are not
// allowed (e.g. both A -> B and B -> A), and the switched server needs
// to be on-line or else dialing can be severly delayed.
//
context ael-iaxprovider {
switches {
// IAX2/user:[key]@myserver/mycontext;
};
};

context ael-trunkint {
//
// International long distance through trunk
//
includes {
ael-dundi-e164-lookup;
};
_9011. => {
&ael-dundi-e164(${EXTEN:4});
};

context ael-trunkld {
//
// Long distance context accessed through trunk
//
includes {
ael-dundi-e164-lookup;
};
_91NXXNXXXXXX => {
&ael-dundi-e164(${EXTEN:1});
Dial(${TRUNK}/${EXTEN:${TRUNKMSD}});
};
};

context ael-trunklocal {
//
// Local seven-digit dialing accessed through trunk interface
//
_9NXXXXXX => {
Dial(${TRUNK}/${EXTEN:${TRUNKMSD}});
};
};

context ael-trunktollfree {
//
// Long distance context accessed through trunk interface
//
_91800NXXXXXX => Dial(${TRUNK}/${EXTEN:${TRUNKMSD}});
_91888NXXXXXX => Dial(${TRUNK}/${EXTEN:${TRUNKMSD}});
_91877NXXXXXX => Dial(${TRUNK}/${EXTEN:${TRUNKMSD}});
_91866NXXXXXX => Dial(${TRUNK}/${EXTEN:${TRUNKMSD}});
};

context ael-international {
//
// Master context for international long distance
//
ignorepat => 9;
includes {
ael-longdistance;
ael-trunkint;
};

context ael-longdistance {
//
// Master context for long distance
//
ignorepat => 9;
includes {
ael-local;
ael-trunkld;
};
};

context ael-local {
//
// Master context for local, toll-free, and iaxtel calls only
//
ignorepat => 9;
includes {
ael-default;
ael-parkedcalls;
ael-trunklocal;
ael-iaxtel700;
ael-trunktollfree;
ael-iaxprovider;
};
};

//
macro ael-std-exten-ael( ext , dev ) {
Dial(${dev}/${ext},20);
switch(${DIALSTATUS}) {
case BUSY:
Voicemail(b${ext});
break;
default:
Voicemail(u${ext});
};
catch a {
VoiceMailMain(${ext});
return;
};
};

context ael-demo {
s => {
Wait(1);
Answer();
Set(TIMEOUT(digit)=5);
Set(TIMEOUT(response)=10);
restart:
Background(demo-congrats);










 
Perfil
 Citar
efuoax
Publicado en 04/07/08 06:29  

Participa poco
Forum User

Inscrito: 04/06/08 Publicaciones: 15
puedes postear tu zapata.conf?

Saludos
 
Perfil
 Citar
ctamez
Publicado en 04/07/08 06:34  

Participa poco
Forum User

Inscrito: 26/12/07 Publicaciones: 15
si, pero dime que en particular por que esta muy largo,jejeje, gracias por ayudarme
 
Perfil
 Citar
efuoax
Publicado en 04/07/08 06:56  

Participa poco
Forum User

Inscrito: 04/06/08 Publicaciones: 15
debe de haber algo por ahi que indique los grupos algo asi:

[channels]
language = es

....

group =
context =
channel =>

.....
 
Perfil
 Citar
ctamez
Publicado en 04/07/08 07:32  

Participa poco
Forum User

Inscrito: 26/12/07 Publicaciones: 15
language [channels]
;
; Default language
;
;language=en
;
; Default context
;
context=default
;
; Switchtype: Only used for PRI.
;
; national: National ISDN 2 (default)
; dms100: Nortel DMS100
; 4ess: AT&T 4ESS
; 5ess: Lucent 5ESS
; euroisdn: EuroISDN
; ni1: Old National ISDN 1
; qsig: Q.SIG
;
switchtype=national
;
; Some switches (AT&T especially) require network specific facility IE
; supported values are currently 'none', 'sdn', 'megacom', 'tollfreemegacom', 'accunet'
;
;nsf=none
;
; PRI Dialplan: Only RARELY used for PRI.
;
; unknown: Unknown
; private: Private ISDN
; local: Local ISDN
; national: National ISDN
; international: International ISDN
; dynamic: Dynamically selects the appropriate dialplan
;
;pridialplan=national
;
; PRI Local Dialplan: Only RARELY used for PRI (sets the calling number's numbering plan)
;
; unknown: Unknown
; private: Private ISDN
; local: Local ISDN
; national: National ISDN
; international: International ISDN
; dynamic: Dynamically selects the appropriate dialplan
;
;prilocaldialplan=national
;
; PRI callerid prefixes based on the given TON/NPI (dialplan)

; Whether or not restrict outgoing caller ID (will be sent as ANI only, not
; available for the user)
; Mostly use with FXS ports
;
;restrictcid=no
;
; Whether or not use the caller ID presentation for the outgoing call that the
; calling switch is sending.
; See README.callingpres
;
usecallingpres=yes
;
; Some countries (UK) have ring tones with different ring tones (ring-ring),
; which means the callerid needs to be set later on, and not just after
; the first ring, as per the default.
;
;sendcalleridafter=1
;
;
; Support Caller*ID on Call Waiting
;
callwaitingcallerid=yes
;
; Support three-way calling
;
threewaycalling=yes
;
; Support flash-hook call transfer (requires three way calling)
; Also enables call parking (overrides the 'canpark' parameter)
;
transfer=yes

; Allow call parking
; ('canpark=no' is overridden by 'transfer=yes'Guiño
;
canpark=yes
;
; Support call forward variable
;
cancallforward=yes
;
; Whether or not to support Call Return (*69)
;
callreturn=yes
;
; Stutter dialtone support: If a mailbox is specified without a voicemail

Stutter dialtone support: If a mailbox is specified without a voicemail
; context, then when voicemail is received in a mailbox in the default
; voicemail context in voicemail.conf, taking the phone off hook will cause a
; stutter dialtone instead of a normal one.
;
; If a mailbox is specified *with* a voicemail context, the same will result
; if voicemail received in mailbox in the specified voicemail context.
;
; for default voicemail context, the example below is fine:
;
;mailbox=1234
;
; for any other voicemail context, the following will produce the stutter tone:
;
;mailbox=1234@context
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no
; channel => 1-23

;

; Used for distinctive ring support for x100p.
; You can see the dringX patterns is to set any one of the dringXcontext fields
; and they will be printed on the console when an inbound call comes in.
;
;dring1=95,0,0
;dring1context=internal1
;dring2=325,95,0
;dring2context=internal2
; If no pattern is matched here is where we go.
;context=default
;channel => 1

 
Perfil
 Citar
efuoax
Publicado en 04/07/08 08:41  

Participa poco
Forum User

Inscrito: 04/06/08 Publicaciones: 15
no le faltara a tu archivo zapata.conf que le asignes el canal por el que debe de pasar la llamada algo asi como

channel => 1

veo que esta en el archivo de configuracion ultimo que posteaste pero esta comentado.

Saludos, efuoax
 
Perfil
 Citar
ctamez
Publicado en 04/07/08 08:55  

Participa poco
Forum User

Inscrito: 26/12/07 Publicaciones: 15
okas, deja descomento eso y hago una prueba,me comunico mas tarde con los resultados de lo anterior, gracias, si me podrias dar tu hotmail para agregarte y asi comunicarnos mas facil, gracias.
 
Perfil
 Citar
ctamez
Publicado en 05/07/08 05:14  

Participa poco
stressed
Forum User

Inscrito: 26/12/07 Publicaciones: 15
Pues con la novedad que aun descomentando la linea que me indicabas no se soluciona.

Estoy seguro que se trata de las rutas de entrada pero no encuentro en donde,si tienes alguna otra sugerencia me ayudaria mucho gracias y saludos!!!!
 
Perfil
 Citar
Contenido generado en: 0,19 segundos Nuevo tema Publicar Respuesta
 Todas las horas son UTC. Hora actual 09:20 .
Tema normal Tema normal
Tema persistente Tema persistente
Tema cerrado Tema cerrado
Nueva publicación Nueva publicación
Persistente con nueva publicación Persistente con nueva publicación
Cerrado con nueva publicación Cerrado con nueva publicación
Ver publicaciones anónimas 
Usuarios anónimos pueden publicar 
Se permite HTML Filtrado 
Contenido censurado