Conectar asterisk sip

43 views
Skip to first unread message

axlaxl

unread,
Apr 18, 2008, 7:45:02 PM4/18/08
to asterisk-es
Hola a todos, estoy tratando de conectar 2 astreisk mediante sip pero
tengo probelmas, les envio toda la info (sacada de varias lugares,
foros, etc), seguro uds con mas experiencia rapido ven mi error.
Gracias por su ayuda
El error q bota el servidor destino es : "username mismatch, have
<ast1>, digest has <ast2>
"

AST1
sip.conf
[general]
port=5060
bindaddr=0.0.0.0
disallow=all
allow=alaw

[ast2]
context=hacia-ast2
type=friend
host=192.168.200.24
username=ast2
secret=ast2
dtmfmode=rfc2833
nat=no
disallow=all
allow=alaw

[1100]
context=todo-sip
type=friend
regexten=1100
username=1100
secret=1100
dtmfmode=rfc2833
callerid="prueba1" <1100>
host=dynamic
nat=yes
canreinvite=no
disallow=all
allow=alaw

extension.conf
[general]
static=yes
writeprotect=no
language=es

[interno]
exten => 1100,1,Dial(SIP/1100,15,Trt)
exten => 1100,2,Voicemail(u${EXTEN})
exten => 1100,3,Hangup
exten => 1200,1,Dial(SIP/1200,15,Trt)
exten => 1200,2,Voicemail(u${EXTEN})
exten => 1200,3,Hangup

[hacia-ast2]
exten => _2XXX,1,Dial(SIP/ast2/${EXTEN})

[desde-ast2]
exten => _1XXX,1,Dial(SIP/${EXTEND})

[todo-sip]
include => interno
include => hacia-ast2
include => desde-ast2

AST2
sip.conf
[general]
port=5060
bindaddr=0.0.0.0
disallow=all
allow=alaw

[ast1]
context=hacia-ast1
type=friend
host=192.168.200.23
username=ast1
secret=ast1
dtmfmode=rfc2833
nat=no
disallow=all
allow=alaw

[2100]
context=todo-sip
type=friend
regexten=2100
username=2100
secret=2100
dtmfmode=rfc2833
callerid="prueba3" <2100>
host=dynamic
nat=yes
canreinvite=no
disallow=all
allow=alaw

extension.conf
[general]
static=yes
writeprotect=no
language=es

[interno]
exten => 2100,1,Dial(SIP/2100,15,Trt)
exten => 2100,2,Voicemail(u${EXTEN})
exten => 2100,3,Hangup
exten => 2200,1,Dial(SIP/2200,15,Trt)
exten => 2200,2,Voicemail(u${EXTEN})
exten => 2200,3,Hangup

[hacia-ast1]
exten => _1XXX,1,Dial(SIP/ast1/${EXTEN})

[desde-ast1]
exten => _2XXX,1,Dial(SIP/${EXTEND})

[todo-sip]
include => interno
include => hacia-ast1
include => desde-ast1

ERROR
llamando de 1100(AST1) a 2100(AST2)

En AST1:
Executing [2100@todo-sip:1] Dial("SIP/1100-08376e90", "SIP/ast2/2100")
in new stack
-- Called ast2/2100
[Apr 15 18:16:15] WARNING[2139]: chan_sip.c:12192
handle_response_invite: Received response: "Forbidden" from '"prueba1"
<sip:11...@192.168.200.23>;tag=as73ec4bb0'
-- SIP/ast2-0837ae08 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
== Auto fallthrough, channel 'SIP/1100-08376e90' status is
'CONGESTION'

En AST2
[Apr 15 18:08:37] WARNING[2151]: chan_sip.c:8377 check_auth: username
mismatch, have <ast1>, digest has <ast2>
[Apr 15 18:08:37] NOTICE[2151]: chan_sip.c:13815
handle_request_invite: Failed to authenticate user "prueba1" <sip:
11...@192.168.200.23>;tag=as73ec4bb0

Saúl Ibarra

unread,
Apr 18, 2008, 8:33:18 PM4/18/08
to aster...@googlegroups.com
On Sat, Apr 19, 2008 at 1:45 AM, axlaxl <calc...@gmail.com> wrote:
>
> Hola a todos, estoy tratando de conectar 2 astreisk mediante sip pero
> tengo probelmas, les envio toda la info (sacada de varias lugares,
> foros, etc), seguro uds con mas experiencia rapido ven mi error.
> Gracias por su ayuda
> El error q bota el servidor destino es : "username mismatch, have
> <ast1>, digest has <ast2>
> "
>
> AST1
> sip.conf
> [general]
> port=5060
> bindaddr=0.0.0.0
> disallow=all
> allow=alaw
>
> [ast2]
> context=hacia-ast2
> type=friend
> host=192.168.200.24
> username=ast2
> secret=ast2
> dtmfmode=rfc2833
> nat=no
> disallow=all
> allow=alaw
>

Prueba a añadir fromuser=ast2 aquí.

Prueba a añadir fromuser=ast1 aquí.

--
Saúl -- "Nunca subestimes el ancho de banda de un camión lleno de disketes."
----------------------------------------------------------------
http://www.saghul.net/

Reply all
Reply to author
Forward
0 new messages