[Problem] UDP nach TCP Gateway

soul_rebel

Neuer User
Mitglied seit
10 Nov 2006
Beiträge
14
Punkte für Reaktionen
0
Punkte
0
Also, ich habe dass Problem, dass hinter (mehreren?) NATs hänge, die kein UPNP machen und mir keine ports weiterleiten. Offensichtlich kommen UDP-basierte Sachen damit schlecht klar, ich kann mich z.B. mit linphone oder ekiga an meinem registrar (dus.net) anmelden, aber ich kann niemanden anrufen, auch nicht die *[email protected], es heißt immer "Konnte Ziel nicht erreichen".

Nach langem hin und her habe ich also überlegt einen Asterisk aufzusetzen, der lokal die Verbindung über UDP annimmt und dann per TCP an dus.net weittereichen soll. Ich habe dazu eine config verwendet, wie sie auch hier im Forum auftaucht, mit halt den Änderungen, die m.E. für TCP wichtig sind. Dabei habe ich für incoming auch TCP aktiviert, was unnötig ist, aber die Sache ja auch nicht behindern sollte. [Die Anmeldung mit linphone durch den asterisk bei dus.net klappt, sagt zumindest dus.net]

Hier die sip.conf
Code:
[general]
context=sip-in
tcpbindport=5060
qualify=no
disallow=all
allow=alaw
allow=ulaw
allow=g729
allow=gsm
allow=slinear
srvlookup=yes
tcpenable=yes 
tcpbindaddr=0.0.0.0


[dusnet-out]
type=friend
insecure=invite
nat=yes
transport=tcp
defaultuser=00038***
fromuser=00038***
fromdomain=dus.net
secret=****
host=proxy.dus.net
qualify=yes
dtmfmode=rfc2833
;outboundproxy=tcp://sip.linphone.org

[alice]
type=friend
host=dynamic
secret=test
context=users
;deny=0.0.0.0/0
;permit=127.0.0.1
;transport=tcp

register => tcp://0003****:****.dus.net/00038***


Hier der Asterisk log:
Code:
asterisk -c /usr/local/etc/asterisk/asterisk.conf
Asterisk 1.8.11.0, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
[ Booting...
[ Reading Master Configuration ]
[ Initializing Custom Configuration Options ]
[Apr 26 17:20:01] NOTICE[15638]: cdr.c:1558 do_reload: CDR simple logging enabled.       
[Apr 26 17:20:01] NOTICE[15638]: loader.c:1129 load_modules: 215 modules will be loaded.
[Apr 26 17:20:01] WARNING[15638]: loader.c:398 load_dynamic_module: Error loading module 'chan_dahdi.so': Shared object "libtonezone.so.2.0" not found, required by "chan_dahdi.so"
[Apr 26 17:20:01] NOTICE[15638]: res_odbc.c:1889 load_module: res_odbc loaded.
...[Apr 26 17:20:01] NOTICE[15638]: res_smdi.c:1418 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.
........[Apr 26 17:20:01] WARNING[15638]: loader.c:398 load_dynamic_module: Error loading module 'chan_dahdi.so': Shared object "libtonezone.so.2.0" not found, required by "chan_dahdi.so"
[Apr 26 17:20:01] WARNING[15638]: loader.c:850 load_resource: Module 'chan_dahdi.so' could not be loaded.
..[Apr 26 17:20:01] NOTICE[15638]: config.c:2201 ast_config_engine_register: Registered Config Engine curl
.[Apr 26 17:20:01] ERROR[15638]: res_config_sqlite.c:1776 load_module: unable to open database: /var/lib/asterisk/sqlite.db
[Apr 26 17:20:01] ERROR[15638]: res_config_pgsql.c:1571 pgsql_reconnect: PostgreSQL RealTime: Failed to connect database asterisk on 127.0.0.1: 
[Apr 26 17:20:01] WARNING[15638]: res_config_pgsql.c:1523 parse_config: PostgreSQL RealTime: Couldn't establish connection. Check debug.
[Apr 26 17:20:01] NOTICE[15638]: config.c:2201 ast_config_engine_register: Registered Config Engine pgsql
.[Apr 26 17:20:01] NOTICE[15638]: config.c:2201 ast_config_engine_register: Registered Config Engine odbc
.....[Apr 26 17:20:01] NOTICE[15638]: chan_skinny.c:7214 config_load: Configuring skinny from skinny.conf
[Apr 26 17:20:02] WARNING[15638]: chan_skinny.c:7242 config_load: Unable to get our IP address, Skinny disabled
.SIP channel loading...
[Apr 26 17:20:02] WARNING[15638]: chan_sip.c:28670 reload_config: No valid transports available, falling back to 'udp'.
[Apr 26 17:20:03] ERROR[15638]: netsock2.c:263 ast_sockaddr_resolve: getaddrinfo("fbsdlap.soldiner.lan", "(null)", ...): hostname nor servname provided, or not known
[Apr 26 17:20:03] WARNING[15638]: acl.c:582 resolve_first: Unable to lookup 'fbsdlap.soldiner.lan'
[Apr 26 17:20:04] WARNING[15638]: acl.c:711 ast_ouraddrfor: Cannot connect
..  == H.323 listener started
......[Apr 26 17:20:05] NOTICE[15638]: chan_sip.c:20788 handle_response_peerpoke: Peer 'dusnet-out' is now Reachable. (687ms / 2000ms)
[Apr 26 17:20:05] WARNING[15638]: chan_mgcp.c:4731 reload_config: Unable to get our IP address, MGCP disabled
............................[Apr 26 17:20:05] NOTICE[15638]: cdr_pgsql.c:390 config_module: cdr_pgsql configuration contains no global section, skipping module load.             
[Apr 26 17:20:05] NOTICE[15638]: cdr_radius.c:265 load_module: Cannot load radiusclient-ng configuration file /etc/radiusclient-ng/radiusclient.conf.
[Apr 26 17:20:05] NOTICE[15638]: cdr_sqlite.c:206 load_module: This module has been marked deprecated in favor of using cdr_sqlite3_custom.
....[Apr 26 17:20:05] WARNING[15638]: cel_pgsql.c:390 process_my_load_module: CEL pgsql config file missing global section.
.[Apr 26 17:20:05] NOTICE[15638]: cel_radius.c:249 load_module: Cannot load radiusclient-ng configuration file /etc/radiusclient-ng/radiusclient.conf.
[Apr 26 17:20:05] NOTICE[15638]: cel_tds.c:452 tds_load_module: cel_tds has no global category, nothing to configure.
[Apr 26 17:20:05] WARNING[15638]: cel_tds.c:557 load_module: cel_tds module had config problems; declining load
...............................................[Apr 26 17:20:06] ERROR[15638]: codec_dahdi.c:579 find_transcoders: Failed to open /dev/dahdi/transcode: No such file or directory 
..............................[Apr 26 17:20:06] WARNING[15638]: chan_unistim.c:5606 reload_config: Your OS does not support IP_PKTINFO, you must set public_ip.                   
.......................[Apr 26 17:20:06] ERROR[15638]: res_clialiases.c:183 load_config: res_clialiases configuration file 'cli_aliases.conf' not found
......[Apr 26 17:20:06] WARNING[15638]: pbx_dundi.c:4671 set_config: Unable to look up host 'fbsdlap.soldiner.lan'
...[Apr 26 17:20:06] NOTICE[15638]: pbx_ael.c:164 pbx_load_module: Starting AEL load process.
[Apr 26 17:20:06] NOTICE[15638]: pbx_ael.c:177 pbx_load_module: AEL load process: parsed config file name '/usr/local/etc/asterisk/extensions.ael'.
[Apr 26 17:20:06] NOTICE[15638]: pbx_ael.c:180 pbx_load_module: AEL load process: checked config file name '/usr/local/etc/asterisk/extensions.ael'.
[Apr 26 17:20:06] NOTICE[15638]: pbx_ael.c:187 pbx_load_module: AEL load process: compiled config file name '/usr/local/etc/asterisk/extensions.ael'.
[Apr 26 17:20:06] NOTICE[15638]: pbx_ael.c:192 pbx_load_module: AEL load process: merged config file name '/usr/local/etc/asterisk/extensions.ael'.
[Apr 26 17:20:06] NOTICE[15638]: pbx_ael.c:195 pbx_load_module: AEL load process: verified config file name '/usr/local/etc/asterisk/extensions.ael'.
............................... ]
Asterisk Ready.
*CLI>
Es taucht darin nichts auf, wenn ich versuche einen anruf auf *[email protected] zu machen.

Was mir natürlich aufgefallen ist, ist die zeile mit "no valid transports, falling back to udp", aber ich glaube, dass bezieht sich auf die Client-Kommunikation. Ein Sockstat gibt mir:
Code:
# sockstat | grep asterisk
root     asterisk   15714 4  stream /var/run/asterisk/asterisk.ctl
root     asterisk   15714 11 tcp4   127.0.0.1:60740       127.0.0.1:5432
root     asterisk   15714 12 udp4   *:5060                *:*
root     asterisk   15714 13 tcp4   *:5060                *:*
root     asterisk   15714 14 tcp4   10.10.28.19:60746     83.125.8.71:5060
root     asterisk   15714 21 tcp4   *:1720                *:*
root     asterisk   15714 24 udp4   *:4569                *:*
root     asterisk   15714 25 dgram  -> /var/run/logpriv
root     asterisk   15714 28 udp4   *:*                   *:*
root     asterisk   15714 30 udp4   *:4520                *:*
Da ist die Connection zu dus.net tcp, aber das kann ja natürlich auch die Meta-Komminukation (anmeldung etc) sein...

Vielen Dank für jede Hilfe!

EDIT: Vergessen zu sagen, in diesem Setup sind die Symptome, genau wie vorher :(


PS: Wenn ihr einen Client kennt außer jitsi (der leider nicht unter FreeBSD läuft), der direkt tcp kann, würde mir das auch helfen ;)
 
Zuletzt bearbeitet:
Kostenlos!

Neueste Beiträge

Statistik des Forums

Themen
248,866
Beiträge
2,303,213
Mitglieder
378,521
Neuestes Mitglied
Atrox15