Routing PSTN calls SPA 3000 to others SIP Accounts?

Get help with installing and running AsteriskNOW.

Moderators: Moderator, Support

Routing PSTN calls SPA 3000 to others SIP Accounts?

Postby vitormazuco » Sat Aug 01, 2015 10:49 am

How can I make routing my SPA 3000 ring in others SIP account in others SPA?

Is just necessary to move in extensions.conf?

sip.conf

Code: Select all
[general]
allowguest=no
autocreatepeer=no
awayssauthreject=yes
udpbindaddr=0.0.0.0:5089
context=ramais
;;
[spa3000]
username=spa3000
nat=force_rport,comedia
type=friend
host=dynamic
secret=100567
disallow=all                   
allow=g729,ulaw,gsm,alaw,ilbc
callgroup=4,3
pickupgroup=4
qualify=yes
context=URA2 ; This links sip.conf with entry local_phone in extensions.conf
;;;;
;;;;
[1050] ; Ramal Celular Jefferson
type=friend
username=1050
secret=100567
qualify=yes
host=dynamic
nat=force_rport,comedia
canreinvite=no
regext=1050
disallow=all
allow=ilbc,alaw,gsm,ulaw
callgroup=4,3
pickupgroup=4
;;;;
;;;;
[1051] ; Telefone Nota Fiscal
type=friend
username=1051
secret=100567
qualify=yes
host=dynamic
;nat=force_rport,comedia
canreinvite=no
regext=1051
disallow=all
allow=ilbc,alaw,gsm,ulaw
callgroup=4,3
pickupgroup=4
;;
;;
[1052] ; Telefone Retira
type=friend
username=1052
secret=100567
qualify=yes
host=dynamic
;nat=force_rport,comedia
canreinvite=no
regext=1052
disallow=all
allow=ilbc,alaw,gsm,ulaw
callgroup=4,3
pickupgroup=4
;;
;;
[1053] ; Telefone Mesa Principal
type=friend
username=1053
secret=100567
qualify=yes
host=dynamic
nat=force_rport,comedia
canreinvite=no
regext=1053
disallow=all
allow=g729,alaw,ulaw
callgroup=4,3
pickupgroup=4

;;


extensions.conf

Code: Select all
[globals] ;Define as variáveis Globais
TELEFONISTA=SIP/1020&SIP/1021&SIP/1022&SIP/1024 ;Declaração de variável
TELEFONISTA2=SIP/1051&SIP/1052&SIP/1053 ;Declaração de variável

[general] ;Opções gerais do Dialplan
writeprotect=no ;Modo somente leitura
static=yes ;Modo estático

[ramais]
exten => _XXXX,1,Dial(SIP/${EXTEN},60,tT)

;Fixo Local
exten => _0XX[2-5]XXXXXXX,1,Dial(SIP/tellfree/${EXTEN},30,tT)

;Envio Fax
exten => _[2-5]XXXXXXX,1,Dial(DAHDI/1-1/${EXTEN},30,tT)

;Celular Local
exten => _0XX9[4-9]XXXXXXX,1,Dial(SIP/tellfree/${EXTEN},30,tT)

;Celular Nextel
exten => _0XX7XXXXXXX,1,Dial(SIP/tellfree/${EXTEN},30,tT)

;Ligar 0800
exten => _0800XXXXXXX,1,Dial(DAHDI/1-1/${EXTEN},30,tT)


[URA]
exten => s,1,Answer()
exten => s,n,Background(/var/lib/asterisk/sounds/Audio)
exten => s,n,WaitExten(1)
exten => s,n,Dial(${TELEFONISTA},60,tT)

[URA2]
exten => s,1,Answer()
exten => s,n,Background(/var/lib/asterisk/sounds/Audio)
exten => s,n,WaitExten(1)
exten => s,n,Dial(${TELEFONISTA2},60,tT)


Just one of the SPA3000 SIP is ringing when I received from SPA3000 just ring SIP/1053 not others.

Is necessary to move inside the SPA for work this?
vitormazuco
Oldsterisk
 
Posts: 51
Joined: Mon Mar 02, 2015 11:37 am
Location: São Paulo, Brazil

Return to AsteriskNOW Support

Who is online

Users browsing this forum: No registered users and 1 guest