Projekat

Općenito

Profil

Akcije

Nove funkcije #14419

Zatvoren

officeze asterisk sip via internet

Dodano od Ernad Husremović prije skoro 17 godina. Izmjenjeno prije skoro 15 godina.

Status:
Odbačeno
Prioritet:
Normalan
Odgovorna osoba:
Kategorija:
-
Početak:
02.06.2008
Završetak:
% završeno:

0%

Procjena vremena:

Opis

otvoriti potrebne portove na router-u za pristup sip-a klijenta na asterisk server


Fajlovi

Screenshot.png (221 KB) Screenshot.png screenshot podešenja ip telefona u office-ze Saša Vranić, 02.06.2008 13:12
51_podesenja.jpg (142 KB) 51_podesenja.jpg podesenja extenzije 51 Saša Vranić, 02.06.2008 20:04
51_podesenja_2.jpg (143 KB) 51_podesenja_2.jpg podesenja telefona extenzije 51, nova Saša Vranić, 02.06.2008 20:08

Povezani tiketi 5 (0 otvoreno5 zatvorenih)

korelira sa voip - Podrška #13048: VoIP telefon, AT320 upgrade firmwareZatvorenoErnad Husremović17.03.2008

Akcije
korelira sa voip - Podrška #14418: echo problemi asterisk officesa ZastarjeloErnad Husremović02.06.2008

Akcije
korelira sa router - Podrška #14425: router-wan-sa-1: asterisk sip, rtp otvoritiZatvorenoErnad Husremović02.06.2008

Akcije
korelira sa router - Nove funkcije #14426: internet.sigma-com.net : prilikom promjene ip-adrese pokrenuti refresh_name_server na ns-lan-1.sigma-com.net (192.168.45.250)ZatvorenoErnad Husremović02.06.2008

Akcije
korelira sa voip - Podrška #14428: sip client vraniciZatvorenoSaša Vranić02.06.2008

Akcije
Akcije #1

Izmjenjeno od Ernad Husremović prije skoro 17 godina

ifold rtp.conf

[general]
rtpstart=8000
rtpend=11000

sip.conf

[50]
type=friend
username=50
password=xxxx
host=dynamic
callerid="officeze" 
callgroup=3
nat=yes           <<<<<<<<< promjena default postavki
canreinvite=no    <<<<<<<<<

Akcije #2

Izmjenjeno od Ernad Husremović prije skoro 17 godina

na samom sip telefonu treba postaviti:
  • alaw je prvi codec
  • gsm drugi
  • rtp client port 8000 (default je 3000)
Akcije #3

Izmjenjeno od Ernad Husremović prije skoro 17 godina

na fwbuilder-u sam napravio servise
  • UDP SIP - 5060
  • UDP RTP - 8000-11000

i to sve preusmjerio na asterisk.sigma-com.net (192.168.45.4)

Akcije #4

Izmjenjeno od Ernad Husremović prije skoro 17 godina

http://www.voip-info.org/wiki/view/Asterisk+sip+canreinvite

'canreinvite=no' stops the sending of the (re)INVITEs once the call is established. From messages in the archives and the Asterisk handbook one finds out that the Cisco ATA-186 does not handle the (re)INVITE well. This is necessary if the client and the Asterisk server is on opposite sides of a NAT gateway or firewall.

Akcije #5

Izmjenjeno od Saša Vranić prije skoro 17 godina

  • Fajl Screenshot.png dodano

evo podešenje telefona u officeze, ext.50

Akcije #6

Izmjenjeno od Saša Vranić prije skoro 17 godina

  • Fajl obrisano (Screenshot.png)
Akcije #7

Izmjenjeno od Ernad Husremović prije skoro 17 godina

http://www.voip-info.org/tiki-index.php?page=Asterisk+SIP+externip

Synopsis
externip = extern.ip.address

Description
Indicates the IP address (alternatively you can enter a hostname) that will be used as the source IP address for all SIP messages when NAT is specified.

Examples - Use it in [general] section of SIP.CONF
[general]
externip = 200.201.202.203
localnet=192.168.2.0/255.255.255.0

Akcije #9

Izmjenjeno od Ernad Husremović prije skoro 17 godina

ifold*CLI> sip show peers

Name/username              Host            Dyn Nat ACL Port     Status               
pc_hernad/pc_hernad        (Unspecified)    D          0        UNKNOWN              
hernad_zimbra/hernad_zimb  (Unspecified)    D          0        Unmonitored           
52/52                      (Unspecified)    D          0        Unmonitored           
51/51                      (Unspecified)    D          0        Unmonitored           
50/50                      89.146.135.78    D   N      5060     Unmonitored           <<<<<<<<<<<< officeze
34/34                      (Unspecified)    D          0        Unmonitored           
33/33                      (Unspecified)    D          0        Unmonitored           
32/32                      (Unspecified)    D          0        Unmonitored           
31/31                      (Unspecified)    D          0        Unmonitored           
20/20                      192.168.45.151   D          5060     Unmonitored           
13/13                      192.169.45.120   D          5060     Unmonitored           
12/12                      192.169.45.120   D          5060     Unmonitored           
11/11                      (Unspecified)    D          0        Unmonitored           
13 sip peers [Monitored: 0 online, 1 offline Unmonitored: 4 online, 8 offline]

Akcije #10

Izmjenjeno od Ernad Husremović prije skoro 17 godina

SIP.conf: device configuration - qualify

Syntax:

qualify=xxx|no|yes

where XXX is the number of milliseconds used. If yes the default timeout is used, 2 seconds.

If you turn on qualify in the configuration of a SIP device in sip.conf, Asterisk will send a SIP OPTIONS command regularly to check that the device is still online. If the device does not answer within the configured (or default) period (in ms) Asterisk considers the device off-line for future calls. This status can be checked by the SIPPEER function, and inversely this function will only provide status information for peers which have qualify=yes.

This feature may also be used to keep a UDP session open to a device that is located behind a network address translator (NAT). By sending the OPTIONS request, the UDP port binding in the NAT (on the outside address of the NAT/firewall device) is maintained by sending traffic through it. If the binding were to expire, there would be no way for Asterisk to initiate a call to the SIP device. This can be used in conjunction with the nat=yes setting.

By default chan_sip.c sends the qualify every 60 seconds. There is no way to change this value on a per peer basis. It is compiled into the chan_sip module. The value in qualfiy = represents the timeout after a packet is sent before we consider the peer to be unreachable. If the packet is not responded within 1 second, asterisk will keep trying until 7 packets have failed. At this point, asterisk won't try again until the next 60 cycle period completes. If a packet is lost, which can easily happen with UDP, there are 7 more packets which are transmitted. Additionally asterisk will keep trying every 60 seconds. So even if all 7 packets are lost, asterisk tries again at the next 60 second cycle. The number of retransmits and time between each qualify is defined in chan_sip.c

Akcije #11

Izmjenjeno od Ernad Husremović prije skoro 17 godina

stavio sam sip qualify="yes" u global sekciju

sada sip show peers kaže:
ifold*CLI> sip show peers

Name/username              Host            Dyn Nat ACL Port     Status               
pc_hernad/pc_hernad        (Unspecified)    D          0        UNKNOWN              
hernad_zimbra/hernad_zimb  (Unspecified)    D          0        UNKNOWN              
52/52                      (Unspecified)    D          0        UNKNOWN              
51/51                      (Unspecified)    D          0        UNKNOWN              
50/50                      89.146.135.78    D   N      1024     OK (240 ms)           
34/34                      (Unspecified)    D          0        UNKNOWN              
33/33                      (Unspecified)    D          0        UNKNOWN              
32/32                      (Unspecified)    D          0        UNKNOWN              
31/31                      (Unspecified)    D          0        UNKNOWN              
20/20                      192.168.45.151   D          5060     OK (78 ms)           
13/13                      192.169.45.120   D          5060     OK (13 ms)           
12/12                      192.169.45.120   D          5060     OK (13 ms)           
11/11                      (Unspecified)    D          0        UNKNOWN              
13 sip peers [Monitored: 4 online, 9 offline Unmonitored: 0 online, 0 offline]

Akcije #12

Izmjenjeno od Ernad Husremović prije skoro 17 godina

pod ovim podešenjem radi
[general]

srvlookup=yes
context=demo
;allowoverlap=no                        ; Disable overlap dialing support. (Default is yes)
bindaddr=0.0.0.0                ; IP address to bind to (0.0.0.0 binds to all)
canreinvite=yes
;srvlookup=yes
language=bs
localnet=192.168.45.0/255.255.255.0
externip=89.146.143.237             <<<<<<<<<<<<<<<< trenutna IP adresa router-wan-sa-1
disallow=all
allow=alaw
allow=gsm
qualify=yes

međutom može se ovo postaviti

 ;externhost=foo.dyndns.net           ; Alternatively you can specify an
                                      ; external host, and Asterisk will
                                      ; perform DNS queries periodically.  Not
                                      ; recommended for production
                                      ; environments!  Use externip instead
 ;externrefresh=10                    ; How often to refresh externhost if
                                      ; used 
Akcije #13

Izmjenjeno od Ernad Husremović prije skoro 17 godina

podesio ekstenzije za officeze, vranici, beganovici:

[general]
[50]
type=friend
username=50
password=xxxx
host=dynamic
callerid="officeze" 
callgroup=3
nat=yes

[51]
type=friend
username=51
password=xxxx
host=dynamic
callerid="vranici" 
callgroup=3
pickupgroup=3
nat=yes

[52]
type=friend
username=52
password=xxxx
host=dynamic
callerid="beganovici" 
nat=yes

Akcije #14

Izmjenjeno od Ernad Husremović prije skoro 17 godina

nakon #14426 podesio externhost:

[general]
srvlookup=yes
context=demo
;allowoverlap=no                        ; Disable overlap dialing support. (Default is yes)
bindaddr=0.0.0.0                ; IP address to bind to (0.0.0.0 binds to all)
canreinvite=yes
;srvlookup=yes
language=bs
localnet=192.168.45.0/255.255.255.0
;externip=89.146.143.237
externhost=internet.sigma-com.net          
;Specify how often (in seconds) a hostname DNS lookup should be performed for the value entered in 'externhost'. Default 10 seconds
externrefresh=10

disallow=all
allow=alaw
;allow=gsm
qualify=yes

Akcije #15

Izmjenjeno od Saša Vranić prije skoro 17 godina

Akcije #16

Izmjenjeno od Saša Vranić prije skoro 17 godina

nije bilo štrihirano "Use service" na Sip settings

Akcije #17

Izmjenjeno od Ernad Husremović prije skoro 15 godina

  • Status promijenjeno iz Dodijeljeno u Odbačeno
Akcije

Također dostupno kao Atom PDF