Llamadas entre anexos FreePBX y A2Billing

Forums: 

He instalado un equipo con Debian 4.0r1, Asterisk 1.2.24, FreePBX 2.2.3 y A2Billing 1.3.0. y me gustaria hacer que las extensiones del FreePBX puedan llamar a las extensiones del A2Billing y vice versa de la misma manera quiero configurar un IVR para que se pueda llamar a los anexos del A2Billing pero no he logrado hacerlo ya que si en caso dentro dei IVR FreePBX elijo como accion custom Goto(custom-cuartos,s,1) no funciona :jawdrop:

extensions_custom.conf he agregado lo siguiente

[custom-cuartos]
exten => s,1,Answer()
exten => Goto(a2billing,,)

Muchas gracias de antemano

Saludos,

Las extensiones de a2billing

Imagen de RazaMetaL

Las extensiones de a2billing se llaman entre ellas con un prefijo que determinas en /etc/asterisk/a2billing.conf .

Si usas freebpx bastaria con incluir el contexto a2billing en from-internal-custom en el archivo /etc/asterisk/extensions_custom.conf:


[from-internal-custom]
include => a2billing

De esta manera al marcar el prefijo y el sip/iax friend la llamada sera comunicada. Para hacer lo contrario, debes crear un ratecard para agregar ahi las extensiones de freebpx, o en su defecto especificar con en [a2billing] cada una de las extensiones de freebpx.

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

Antes de preguntar visita el [url=http://www.sindominio.net/ayuda/preguntas-inteligentes.html]link[/url] :evil:

 

[img]http://www.bbspot.com/Images/News_Features/2003/01/os_quiz/debian.jpg[/img]

-----

Visita este [url=http://www.sindominio.net/ayuda/preguntas-inteligentes.html]link[/url] :evil:

[img]http://www.bbspot.com/Images/News_Features/2003/01/os_quiz/debian.jpg[/img]

(adsbygoogle = window.adsbygoogle || []).push({});

Problema medio solucionado

Muchas gracias por los comentarios me han sido de grandisima ayuda. ;)

Ya pueden llamar de los anexos creados en el a2billing a los del FreePbx sin embargo cuando cuando llamo desde los anexos del FreePbx a los del a2biling me pide que ingrese mi "pin number" te agradecere me puedas decir como podria solucionar esto por favor.

Lo que he hecho ha sido agregar include => a2billing en from-internal-custom en el archivo /etc/asterisk/extensions_custom.conf tal como lo mencionaste y he especificado en [a2billing] cada una de las extensiones de freebpx.

Muchas gracias nuevamente

Saludos,

Edita la seccion [agi-conf1]

Imagen de RazaMetaL

Edita la seccion [agi-conf1] de a2billing para que utilize el dnid:


use_dnid=YES
sip_iax_pstn_direct_call=YES

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

Antes de preguntar visita el [url=http://www.sindominio.net/ayuda/preguntas-inteligentes.html]link[/url] :evil:

 

[img]http://www.bbspot.com/Images/News_Features/2003/01/os_quiz/debian.jpg[/img]

-----

Visita este [url=http://www.sindominio.net/ayuda/preguntas-inteligentes.html]link[/url] :evil:

[img]http://www.bbspot.com/Images/News_Features/2003/01/os_quiz/debian.jpg[/img]

(adsbygoogle = window.adsbygoogle || []).push({});

Ambos estan asi....

Muchas gracias por la observacion sin embargo ambos parametros estan asi tal como los has mencionado desde un inicio pero igualmente no funciona.

Si se te ocurre alguna otra solucion te agradecere me lo puedas decir por favor.

Gracias y Saludos,

Muestranos la salida del

Imagen de RazaMetaL

Muestranos la salida del log.

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

Antes de preguntar visita el [url=http://www.sindominio.net/ayuda/preguntas-inteligentes.html]link[/url] :evil:

 

[img]http://www.bbspot.com/Images/News_Features/2003/01/os_quiz/debian.jpg[/img]

-----

Visita este [url=http://www.sindominio.net/ayuda/preguntas-inteligentes.html]link[/url] :evil:

[img]http://www.bbspot.com/Images/News_Features/2003/01/os_quiz/debian.jpg[/img]

(adsbygoogle = window.adsbygoogle || []).push({});

Salida del Log

En el CLI le puse sip debug ya que cuando generaba la llamada desde el anexo 300 quien llamaba al anexo 6002 en la linea de comandos del asterisk no me aparecia nada y en el XLite me salir un error 404. Cuando hice el debug me salio esto.. espero que sea lo que me estas pidiendo muchas gracias de antemano saludos

<-- SIP read from 192.168.200.128:5060:
INVITE sip:6002@192.168.200.213 SIP/2.0
Via: SIP/2.0/UDP 192.168.200.128:5060;rport;branch=z9hG4bKF160661FFBA04E39A049F072BE993BBD
From: 300 ;tag=1512360705
To:
Contact:
Call-ID: 61E41151-3F63-418F-9765-4B4DBB9F8CE2@192.168.200.128
CSeq: 8197 INVITE
Proxy-Authorization: Digest username="300",realm="asterisk",nonce="19540a88",response="4eecaa27314f06ab2b141a1789f8ee1d",uri="sip:6002@192.168.200.213",algorithm=MD5
Max-Forwards: 70
Content-Type: application/sdp
User-Agent: X-Lite release 1103m
Content-Length: 296

v=0
o=300 7782968 7782984 IN IP4 192.168.200.128
s=X-Lite
c=IN IP4 192.168.200.128
t=0 0
m=audio 8000 RTP/AVP 0 8 3 98 97 101
a=rtpmap:0 pcmu/8000
a=rtpmap:8 pcma/8000
a=rtpmap:3 gsm/8000
a=rtpmap:98 iLBC/8000
a=rtpmap:97 speex/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15

--- (12 headers 13 lines) ---
Using INVITE request as basis request - 61E41151-3F63-418F-9765-4B4DBB9F8CE2@192.168.200.128
Sending to 192.168.200.128 : 5060 (NAT)
Found user '300'
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 3
Found RTP audio format 98
Found RTP audio format 97
Found RTP audio format 101
Peer audio RTP is at port 192.168.200.128:8000
Found description format pcmu
Found description format pcma
Found description format gsm
Found description format iLBC
Found description format speex
Found description format telephone-event
Capabilities: us - 0xc (ulaw|alaw), peer - audio=0x60e (gsm|ulaw|alaw|speex|ilbc)/video=0x0 (nothing), combined - 0xc (ulaw|alaw)
Non-codec capabilities: us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)
Looking for 6002 in from-internal (domain 192.168.200.213)
Reliably Transmitting (NAT) to 192.168.200.128:5060:
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.168.200.128:5060;branch=z9hG4bKF160661FFBA04E39A049F072BE993BBD;received=192.168.200.128;rport=5060
From: 300 ;tag=1512360705
To: ;tag=as15744d1f
Call-ID: 61E41151-3F63-418F-9765-4B4DBB9F8CE2@192.168.200.128
CSeq: 8197 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Length: 0

---
asterisk1*CLI>
<-- SIP read from 192.168.200.128:5060:
ACK sip:6002@192.168.200.213 SIP/2.0
Via: SIP/2.0/UDP 192.168.200.128:5060;rport;branch=z9hG4bKF160661FFBA04E39A049F072BE993BBD
From: 300 ;tag=1512360705
To: ;tag=as15744d1f
Contact:
Call-ID: 61E41151-3F63-418F-9765-4B4DBB9F8CE2@192.168.200.128
CSeq: 8197 ACK
Max-Forwards: 70
Content-Length: 0

--- (9 headers 0 lines) ---
Destroying call '61E41151-3F63-418F-9765-4B4DBB9F8CE2@192.168.200.128'
asterisk1*CLI>
<-- SIP read from 192.168.200.128:49152:
REGISTER sip:192.168.200.213 SIP/2.0
Via: SIP/2.0/UDP 192.168.200.128:49152;branch=z9hG4bKc0a8c880000002ab46dd825d0000188f00000202;rport
From: "unknown" ;tag=530b76c872
To:
Contact:
Call-ID: A76D899D16DE4A6FAB255A6239297F010xc0a8c880
CSeq: 128 REGISTER
Max-Forwards: 70
User-Agent: SJphone/1.65.377a (SJ Labs)
Content-Length: 0

--- (10 headers 0 lines) ---
Using latest REGISTER request as basis request
Sending to 192.168.200.128 : 49152 (NAT)
Transmitting (NAT) to 192.168.200.128:49152:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.200.128:49152;branch=z9hG4bKc0a8c880000002ab46dd825d0000188f00000202;received=192.168.200.128;rport=49152
From: "unknown" ;tag=530b76c872
To:
Call-ID: A76D899D16DE4A6FAB255A6239297F010xc0a8c880
CSeq: 128 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact:
Content-Length: 0

---
Transmitting (NAT) to 192.168.200.128:49152:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.200.128:49152;branch=z9hG4bKc0a8c880000002ab46dd825d0000188f00000202;received=192.168.200.128;rport=49152
From: "unknown" ;tag=530b76c872
To: ;tag=as1ca5fcb0
Call-ID: A76D899D16DE4A6FAB255A6239297F010xc0a8c880
CSeq: 128 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="3908e8a3"
Content-Length: 0

---
Scheduling destruction of call 'A76D899D16DE4A6FAB255A6239297F010xc0a8c880' in 15000 ms
asterisk1*CLI>
<-- SIP read from 192.168.200.128:49152:
REGISTER sip:192.168.200.213 SIP/2.0
Via: SIP/2.0/UDP 192.168.200.128:49152;branch=z9hG4bKc0a8c880000002ac46dd825d0000556000000205;rport
From: "unknown" ;tag=530b76c872
To:
Contact:
Call-ID: A76D899D16DE4A6FAB255A6239297F010xc0a8c880
CSeq: 129 REGISTER
Max-Forwards: 70
User-Agent: SJphone/1.65.377a (SJ Labs)
Content-Length: 0
Authorization: Digest username="6002",realm="asterisk",nonce="3908e8a3",uri="sip:192.168.200.213",response="1452b810c7c33d4158f87c27b9c1a8c9",algorithm=MD5

--- (11 headers 0 lines) ---
Using latest REGISTER request as basis request
Sending to 192.168.200.128 : 49152 (NAT)
Transmitting (NAT) to 192.168.200.128:49152:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.200.128:49152;branch=z9hG4bKc0a8c880000002ac46dd825d0000556000000205;received=192.168.200.128;rport=49152
From: "unknown" ;tag=530b76c872
To:
Call-ID: A76D899D16DE4A6FAB255A6239297F010xc0a8c880
CSeq: 129 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact:
Content-Length: 0

---
Transmitting (NAT) to 192.168.200.128:49152:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.200.128:49152;branch=z9hG4bKc0a8c880000002ac46dd825d0000556000000205;received=192.168.200.128;rport=49152
From: "unknown" ;tag=530b76c872
To: ;tag=as1ca5fcb0
Call-ID: A76D899D16DE4A6FAB255A6239297F010xc0a8c880
CSeq: 129 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Expires: 120
Contact: ;expires=120
Date: Tue, 04 Sep 2007 11:05:53 GMT
Content-Length: 0

---
Scheduling destruction of call 'A76D899D16DE4A6FAB255A6239297F010xc0a8c880' in 15000 ms
asterisk1*CLI>
<-- SIP read from 192.168.200.128:5060:

--- (0 headers 0 lines) Nat keepalive ---
12 headers, 0 lines
Reliably Transmitting (NAT) to 192.168.200.128:49152:
OPTIONS sip:6002@192.168.200.128:49152 SIP/2.0
Via: SIP/2.0/UDP 192.168.200.213:5060;branch=z9hG4bK6fef33b0;rport
From: "Unknown" ;tag=as6981af79
To:
Contact:
Call-ID: 1b6596b1342caf07145a9a5070ce5cae@192.168.200.213
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Tue, 04 Sep 2007 11:05:53 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Length: 0

---
asterisk1*CLI>
<-- SIP read from 192.168.200.128:49152:
SIP/2.0 501 Not Implemented
Via: SIP/2.0/UDP 192.168.200.213:5060;branch=z9hG4bK6fef33b0;rport=5060;received=192.168.200.213
From: "Unknown" ;tag=as6981af79
To: "unknown" ;tag=4cc676cb7f
Call-ID: 1b6596b1342caf07145a9a5070ce5cae@192.168.200.213
CSeq: 102 OPTIONS
Content-Length: 0
Server: SJphone/1.65.377a (SJ Labs)

--- (8 headers 0 lines) ---
Destroying call '1b6596b1342caf07145a9a5070ce5cae@192.168.200.213'
asterisk1*CLI>
<-- SIP read from 192.168.200.128:5060:

--- (0 headers 0 lines) Nat keepalive ---
Destroying call 'A76D899D16DE4A6FAB255A6239297F010xc0a8c880'
12 headers, 0 lines
Reliably Transmitting (NAT) to 192.168.200.128:5060:
OPTIONS sip:300@192.168.200.128:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.200.213:5060;branch=z9hG4bK144dbeaa;rport
From: "Unknown" ;tag=as4e2e937b
To:
Contact:
Call-ID: 4f2e5ade24ae606e484b19b11525ac76@192.168.200.213
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Tue, 04 Sep 2007 11:06:09 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Length: 0

---
asterisk1*CLI> sip
<-- SIP read from 192.168.200.128:5060:
SIP/2.0 200 Ok
Via: SIP/2.0/UDP 192.168.200.213:5060;branch=z9hG4bK144dbeaa;rport
From: "Unknown" ;tag=as4e2e937b
To: ;tag=3722818160
Contact:
Call-ID: 4f2e5ade24ae606e484b19b11525ac76@192.168.200.213
Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,NOTIFY
CSeq: 102 OPTIONS
Server: X-Lite release 1103m
Content-Length: 0

Me referia a que muestres la

Imagen de RazaMetaL

Me referia a que muestres la salida del log justo cuando realizas la llamada:


tail -f /var/log/asterisk/full

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

Antes de preguntar visita el [url=http://www.sindominio.net/ayuda/preguntas-inteligentes.html]link[/url] :evil:

 

[img]http://www.bbspot.com/Images/News_Features/2003/01/os_quiz/debian.jpg[/img]

-----

Visita este [url=http://www.sindominio.net/ayuda/preguntas-inteligentes.html]link[/url] :evil:

[img]http://www.bbspot.com/Images/News_Features/2003/01/os_quiz/debian.jpg[/img]

(adsbygoogle = window.adsbygoogle || []).push({});

Tail

Perdon pensaba que te referias al debug aqui te envio el log despues de hacer la llamada
Origen: 300
Destino: 6002

Sep 4 07:13:47 DEBUG[2632] chan_sip.c: Setting NAT on RTP to 524288
Sep 4 07:13:47 DEBUG[2632] chan_sip.c: Stopping retransmission on '2186255A-BAA5-47DA-8196-82C4E508CDE6@192.168.200.128' of Response 21577: Match Found
Sep 4 07:13:47 DEBUG[2632] chan_sip.c: Setting NAT on RTP to 524288
Sep 4 07:13:47 DEBUG[2632] chan_sip.c: Checking SIP call limits for device 300
Sep 4 07:13:47 DEBUG[2632] chan_sip.c: Stopping retransmission on '2186255A-BAA5-47DA-8196-82C4E508CDE6@192.168.200.128' of Response 21578: Match Found

Otra llamada

Sep 4 07:15:59 DEBUG[2632] chan_sip.c: Setting NAT on RTP to 524288
Sep 4 07:15:59 DEBUG[2632] chan_sip.c: Stopping retransmission on 'CFB40FD5-3A98-45CF-8C3F-034EAE77D246@192.168.200.128' of Response 1986: Match Found
Sep 4 07:15:59 DEBUG[2632] chan_sip.c: Setting NAT on RTP to 524288
Sep 4 07:15:59 DEBUG[2632] chan_sip.c: Checking SIP call limits for device 300
Sep 4 07:15:59 DEBUG[2632] chan_sip.c: Stopping retransmission on 'CFB40FD5-3A98-45CF-8C3F-034EAE77D246@192.168.200.128' of Response 1987: Match Found

sin embargo en el debug aparecia lo siguiente
...
Looking for 6002 in from-internal (domain 192.168.200.213)
Reliably Transmitting (NAT) to 192.168.200.128:5060:
SIP/2.0 404 Not Found
...