[Asteriskbrasil-biz] Dois Troncos atendendo em Dois Ext diferentes

Marco Giroto giroto em gmail.com
Quinta Fevereiro 20 13:03:13 BRT 2014


Fala pessoal,

Estou preso em um probleminha chato mas que deve ser algo simples para
vocês.

Tenho duas linhas vono, dois logins. E quero que cada login seja atendido
por um ramal diferente. Só que já tentei trocentas configurações e o segundo
tronco insiste em enviar para o ramal principal.


Minhas confs:


Sip.conf

[general]

bindport=5060

bindaddr=192.168.1.1

externalip=0.0.0.0

context=dummy

disallow=all

allow=ulaw

alwaysauthreject=yes

allowguest=no

srvlookup=yes

register=CONTA1:SENHA em vono.net.br:5060/9999

register=CONTA2:SENHA em vono.net.br:5060/9999



[troncosip]

type=peer

username=CONTA

secret=SENHA

domain=vono.net.br

fromuser=CONTA

fromdomain=vono.net.br

host=vono.net.br

insecure=port,invite

qualify=no

port=5060

nat=yes

disallow=all

allow=ulaw

dtmfmode=rfc2833

context=from-sip

reinvite=no

canreinvite=no




[troncosip2]

type=peer

username=CONTA2

secret=SENHA

domain=vono.net.br

fromuser=CONTA2

fromdomain=vono.net.br

host=vono.net.br

insecure=port,invite

qualify=no

port=5060

nat=yes

disallow=all

allow=ulaw

dtmfmode=rfc2833

context=from-sipdois

reinvite=no

canreinvite=no





[11]

context=from-internal

type=friend

secret=SENHA

host=dynamic

canreinvite=no

dtmfmode=rfc2833

disallow=all

allow=ulaw



[22]

context=from-internaldois

type=friend

secret=SENHA

host=dynamic

canreinvite=no

dtmfmode=rfc2833

disallow=all

allow=ulaw




Extensions.conf


[globals]

TELEFONISTA=SIP/11

TELEFONISTA2=SIP/12

TELEFONISTA3=SIP/13

TELEFONISTA4=SIP/22



[from-sip]

exten=9999,1,Dial(${TELEFONISTA}&${TELEFONISTA2},12)

exten=9999,2,Dial(${TELEFONISTA3}&${TELEFONISTA2},10)

exten=9999,3,Dial(${TELEFONISTA}&${TELEFONISTA2},25)





[from-sipdois]

exten=22,4,Dial(${TELEFONISTA4},12)



;include=aasip

;include=urasip



[from-internal]

exten=>_0.,1,Dial(SIP/troncosip/${EXTEN:1},50,r)

exten=>7118,1,Dial(SIP/7118,10)

exten=>7118,2,Dial(SIP/7119)

exten=>7119,1,Dial(SIP/7119,10)

exten=>7119,2,Dial(SIP/7118)

exten=>7120,1,Dial(SIP/7120,10)

exten=>7120,2,Dial(SIP/7121)

exten=>7121,1,Dial(SIP/7121,50)

exten=>7122,1,Dial(SIP/7122,50)

exten=>7123,1,Dial(SIP/7123,50)

exten=>7124,1,Dial(SIP/7124,50)

exten=>7125,1,Dial(SIP/7125,50)

exten=>7126,1,Dial(SIP/7126,50)



[from-internal2]

exten=>_1.,1,Dial(SIP/troncosip2/${EXTEN:4},50,r)






-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil-biz/attachments/20140220/0b7c4317/attachment.htm 


Mais detalhes sobre a lista de discussão AsteriskBrasil-biz