No puedo rutear llamada por el proveedor voip

No puedo rutear llamada por el proveedor voip

Posted Noviembre 16th, 2009 by landysaccount

Senores.

TEngo un servidor asterisk que me esta trabajando bien con dahdi pero no atravez de un proveedor voip. Hice post hace un tiempo atras sobre este caso pero aun no hemos podido resolver el problema.

Este es el layout:

modem -------- router/firewall ------------ lan

mi asterisk esta en el lan. Tengo el modem en modo bridge que le asigna el ip externo a mi router/firewall ( con debian ). Tengo las reglas del FORWARD en ACCEPT por defecto.

Puedo hacer llamadas con un x-lite desde el lan con las configurationes q me dio el proveedor: usuario, contrasena, y el ip de su proxy. Todo muy bien con el softphone. Pero cuando trato de rutear una llamada usando el asterisk no me da nada.

Cuando trato de llamar atravez del asterisk me sale esto:

I don't know what else to try. When I try to call I get this at the cli:

////////////////////////////////////////////
== Using SIP RTP CoS mark 5
-- Executing [91xxx763xxxx@default:1] Dial("SIP/102-b6a06a40", "SIP/1xxx763xxxx@voipprovider") in new stack
== Using SIP RTP CoS mark 5
-- Called 1xxx763xxxx@voipprovider
///////////////////////////////////////////
y se queda ahi un buen rato y nada pasa.

Las configuraciones del sip.conf son estas:

[general]
externhost=optimumwireless.com
localnet=172.16.0.0/16

register => username:secret@my.service_provider.tld

language=es
;allow=gsm
allow=all

[voipprovider]
type=friend
host=208.78.163.3
username=username
fromuser=username
secret=password
port=5060
dtmfmode=rfc2833
nat=yes
insucure=port,invite
careinvite=yes
////////////////////////////////////////////////////
El proveedor me dice que no le llega nada. No se si el problema es que estoy usando doble nat o que pero, si el softphone entra muy bien desde el mismo sitio que el asterisk. Los modulos sip estan instalados:

/home/landysaccount# modprobe -l|grep sip
/lib/modules/2.6.26-2-686/kernel/net/ipv4/netfilter/nf_nat_sip.ko
/lib/modules/2.6.26-2-686/kernel/net/netfilter/nf_conntrack_sip.ko

De verdad no se ni que hacer me estoy arrancando los pelos de la cabeza. :[

Gracias anticipadamente por su ayuda. Se les agradece.

restart now

Bueno,

Senores al fin, despues de 2 semanas trantando, pude hacer llamadas atravez de un proveedor sip. Cuando hacia unos cambios en sip.conf hacia un reload pero las nuevas configuraciones no salian. Ayer decidi hacer un restar now y desde que subio pude ver en sip show peers que habia cambiado el ip y todo y decia que estaba "reachable".

No se por q pasaba esto pero al fin puedo hacer llamadas.

Posted by landysaccount on Jue, 2009-11-26 12:50
sip set debug peer

Hice un debug:

sip set debug peer voipprovider:

-- Called 1829257xxxx@voipprovider
Retransmitting #1 (NAT) to myextip:5060:
INVITE sip:18292574075@myextip SIP/2.0
Via: SIP/2.0/UDP myextip:5060;branch=z9hG4bK61c970ad
Max-Forwards: 70
From: "102" ;tag=as78863882
To:
Contact:
Call-ID: 2908dd00500059761cc66bd81553e252@190.80.152.7
CSeq: 102 INVITE
User-Agent: Asterisk PBX 1.6.1.5
Date: Tue, 17 Nov 2009 12:28:48 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 473

v=0
o=root 1332315330 1332315330 IN IP4 190.80.152.7
s=Asterisk PBX 1.6.1.5
c=IN IP4 190.80.152.7
t=0 0
m=audio 13752 RTP/AVP 0 3 8 112 5 10 7 111 9 101
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:112 AAL2-G726-32/8000
a=rtpmap:5 DVI4/8000
a=rtpmap:10 L16/8000
a=rtpmap:7 LPC/8000
a=rtpmap:111 G726-32/8000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

---
Retransmitting #2 (NAT) to myextip:5060:
INVITE sip:1829257xxxx@myextip SIP/2.0
Via: SIP/2.0/UDP myextip:5060;branch=z9hG4bK61c970ad
Max-Forwards: 70
From: "102" ;tag=as78863882
To:
Contact:
Call-ID: 2908dd00500059761cc66bd81553e252@myextip
CSeq: 102 INVITE
User-Agent: Asterisk PBX 1.6.1.5
Date: Tue, 17 Nov 2009 12:28:48 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 473

v=0
o=root 1332315330 1332315330 IN IP4 myextip
s=Asterisk PBX 1.6.1.5
c=IN IP4 190.80.152.7
t=0 0
m=audio 13752 RTP/AVP 0 3 8 112 5 10 7 111 9 101
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:112 AAL2-G726-32/8000
a=rtpmap:5 DVI4/8000
a=rtpmap:10 L16/8000
a=rtpmap:7 LPC/8000
a=rtpmap:111 G726-32/8000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

---
Retransmitting #3 (NAT) to myextip:5060:
INVITE sip:1829257xxxx@myextip SIP/2.0
Via: SIP/2.0/UDP myextip:5060;branch=z9hG4bK61c970ad
Max-Forwards: 70
From: "102" ;tag=as78863882
To:
Contact:
Call-ID: 2908dd00500059761cc66bd81553e252@myextip
CSeq: 102 INVITE
User-Agent: Asterisk PBX 1.6.1.5
Date: Tue, 17 Nov 2009 12:28:48 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 473

v=0
o=root 1332315330 1332315330 IN IP4 myextip
s=Asterisk PBX 1.6.1.5
c=IN IP4 myextip
t=0 0
m=audio 13752 RTP/AVP 0 3 8 112 5 10 7 111 9 101
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:112 AAL2-G726-32/8000
a=rtpmap:5 DVI4/8000
a=rtpmap:10 L16/8000
a=rtpmap:7 LPC/8000
a=rtpmap:111 G726-32/8000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

Scheduling destruction of SIP dialog '2908dd00500059761cc66bd81553e252@myextip' in 32000 ms (Method: INVITE)

////////////

Pero, fijandome bien en esto no veo en ningun lado la direccion ip de mi proveedor. Entonces, tendre algo incorrecto en el sip.conf?

Ayuda por favor.

Posted by landysaccount on Mar, 2009-11-17 20:24