Asterisk and Smartnode configuration

starlab76

Neuer User
Mitglied seit
14 Mai 2006
Beiträge
13
Punkte für Reaktionen
0
Punkte
0
Hi I'm italian and I post in English because I don't speak German.

I have this problem:

2 ISDN BRI NT <----> Smartnode 4634 <-----> Asterisk sip

I have a server asterisk 1.2.7.1 and I need to receive and make call using the isdn lines. I have a Patton 4634 to convert isdn signal to sip voip to solve my problem.

My question is: how configure patton with asterirsk to do this job?
Now I can do calls but can't able to receive.


Thanks in advance for help

Walter
 
Zuletzt bearbeitet:
Dear friends,

I am very happy to annunce you that now I can call and recive from one line ISDN BRI NT using asterisk.

Everythings seems to work right EXCEPT the Caller ID translation: in my voip phones I can not see the number of the callers, but I see the account number that I use to log into asterisk from Patton: so I hope that someboby can help me to solve this problem (I hope it will be the last one).

Best regards,

Walter
 
Zuletzt bearbeitet:
starlab76 schrieb:
Everythings seems to work right EXCEPT the Caller ID translation

Please use this for a test...

service default
domain 192.168.1.20
realm 192.168.1.20
authentication 44 password xxxx
default-server 192.168.1.20 5060 loose-router
registrar 192.168.1.20 5060
user 44
 
starlab76 schrieb:
interface sip IF-ASTERISK
bind gateway ASTERISK
service default
route call dest-interface IF-PBX
address-translation outgoing-call from-header user-part fix 44 host-part call
use profile voip VOIP-ASTERISK

Why do you make an adress translation?
 
Exactly when I recive a call from isdn, I see always 44 like caller id in phone lcd, instead I want to see the real caller id.

So is it in registration string the problem?

Now I'm out of office and I can't try now ;(

Walter
 
Problem solved! Thanks to andreas and Guard-X!!!

Now all is working using 1 isdn nt.
To connect 2 isdn nt I need to add other sip gateway or I can using only one?

BR
Walter
 
For incoming calls you can use the same sip gateway and interface, for outgoing calls you need a group like this:

Code:
  service hunt-group isdn
    drop-cause normal-unspecified
    drop-cause no-circuit-channel-available
    drop-cause network-out-of-order
    drop-cause temporary-failure
    drop-cause switching-equipment-congestion
    drop-cause access-info-discarded
    drop-cause circuit-channel-not-available
    drop-cause resources-unavailable
    route call 1 dest-interface IF-PBX1
    route call 2 dest-interface IF-PBX2

Code:
  interface sip IF-ASTERISK
    bind gateway sip-gw
    service default
    route call dest-service isdn

Best regards

Guard-X
 
Dear Guard X, now all is perfect! 2 isdn nt clid and asterisk! You are a great man!
Thanks again and again! If you go in italy you are my guest for sure! ;)

Best Regards
Walter
 
Ciao, ho lo stesso identico problema che hai avuto con il SN4638.
Puoi aiutarmi a capire come hai fatto a risolverlo?
Vedo lo username come Caller ID e se disattivo la traslazione:
(address-translation outgoing-call from-header user-part fix 44 host-part call)
non accetta la chiamata.
Grazie in anticipo
Nicola
 
...ich versteh nur Bahnhof! Please can you regenerate your problem in English?

Thanks!

Best regards

Guard-X
 
SN4638 Asterisk-FreePbx

Guard-X schrieb:
...ich versteh nur Bahnhof! Please can you regenerate your problem in English?

Thanks!

Best regards

Guard-X



Ok, I try.
My problem is the SIP-trunk configuration in FreePBX-APM for SN4638.
isdn<->SN4638<->
SN Run-config:

gateway sip ASTERISK
bind interface LAN router

service default
domain 192.168.111.38
realm 192.168.111.38
authentication patton password OarRn4xyrhbGxKt4fyXEiQ== encrypted default
default-server 192.168.111.38 5060 loose-router
registrar 192.168.111.38 5060 use-default-server

When I configure trunk info Outgoing-Incoming and set Username and Password I can call out and call in with the translation
(address-translation outgoing-call from-header user-part fix patton host-part call), no caller ID.
Without the translation asterisk reject the call.
The workaround in this moment is :
insecure =very
in trunk settings.
Disabling security I can call-out and call-in with caller ID but FOP panel
show me trunk led "on" when I call out but the led is "off" when I receive a call. FOP don't recognize incoming call from Patton-Trunk.
Thanks
 
Asterisk und SmartNode 4552

hallo zusammen,

bin neu in diesem forum und habe mit interesse den artikel über die konfiguration von smartnode und asterisk gelesen... stehe ebenfalls vor diesem problem und kämpfe um das verständnis, wie die teile trunk configuration bei asterisk und gw in der sn4552 zusammenpassen.

konkret:

zu dem beispiel

service default
domain 192.168.1.20
realm 192.168.1.20
authentication 44 password xxxx
default-server 192.168.1.20 5060 loose-router
registrar 192.168.1.20 5060
user 44

bezieht sich die angabe der domain auf die ip-adresse der smartnode? und wie sieht der sip-trunk bei der asterisk aus?

kann ich hier eine config erhalten?

die aufgabe ist den isdn-trunk der sn4552 an die asterisk weiterzuleiten, die asterisk soll dann in der folge die verteilung auf die sip geräte bzw. eine fallback leitung auf isdn vornehmen.


hier der auszug aus meiner config:

gateway sip GW_Asterisk
call-signaling-port 5066
bind interface IF_IP_LAN router

service default
domain 192.168.101.254
realm 192.168.101.254
authentication 44699 password PthKPRQTSMkxDgCsM0lQ5Q== encrypted
default-server 192.168.101.254 5060 loose-router
registrar 192.168.101.254 5060 use-default-server
user 44699

gateway sip GW_Asterisk
no shutdown

interface sip IF_SIP_SN_AST
bind gateway GW_Asterisk
service default
route call dest-interface IF_S0_00
address-translation outgoing-call from-header user-part fix 44699 host-part call
use profile voip Voip-Asterisk

wobei die domain die ip-adresse der sn4552 ist.

der sip-trunk:

[Smartnode]
allow=alaw
disallow=all
dtmfmode=rfc2833
host=192.168.101.254
insecure=very
qualify=yes
secret=xxxxxxxx
trunk=yes
type=peer
username=44699

was ist an der config nicht in ordnung?

noch ein vielleicht wichtiger hinweis, die asterisk hat auch einen wan-port über den die abgehenden gespräche geschickt werden... sn4552 und asterisk sind also parallel geschalten, auf der asterisk ist freebpx 2.1.1 installiert (trixbox 1.1)

gruß
manfred
 
Fangen wir langsam an.

Im Gateway unter Service default muss ueberall die IP oder DNS des Asterisk Servers stehen.

In der sip.conf muessen die Daten von der Smart-Node stehen.

Die Ports muessen ueberall identisch sein (einmal 5060 und das andere mal 5066!?)

host=dynamic setzen

peer=friend setzen

Dann mit sip show peers ueberpruefen...

mfg Guard-X
 
sip show peers überpüfen ...

danke, der erste schritt hat funktioniert

Name/username Host Dyn Nat ACL Port Status
SmartNode/44699 192.168.101.254 D 5060 OK (15 ms)

aber sip show channels ergibt:

Peer User/ANR Call ID Seq (Tx/Rx) Form Hold Last Message
192.168.101.254 (None) 900d4700342 00101/538590898 unkn No Rx: REGISTER
1 active SIP channel
Verbosity is at least 1
Core debug is at least 1

und das gateway in der sn:

SIP Gateway: GW_SmartNode
=========================

State: Up
User Agent: 0xa4a288
Local Address: 192.168.101.254:5060
Registrations

SIP Registration: sip:[email protected] (Service: default)
------------------------------------------------------------

State: Idle/Waiting
Registrar: sip:192.168.101.3:5060
Default Server:
Logical Address: sip:[email protected]
Physical Address: sip:[email protected]:5060 (Current: sip:[email protected]:5060)
Expiration Time: 0 s
Authenticated: no

der eintrag in der sip-conf ist jetzt

[SmartNode]
username=44699
type=friend
trunk=yes
secret=xxxxxxx
qualify=yes
insecure=very
host=dynamic
dtmfmode=rfc2833
disallow=all
allow=alaw

gruß
sitecube
 
Sieht doch alles i.O. aus. Jetzt musst du nur noch die S0 Ports auf das SIP-GW routen.

- context cs switch erstellen
- darin interface erstellen und auf SIP-GW leiten
- Port auf das Interface routen

mfg Guard-X
 
Sieht doch alles i.O. aus

ich fürchte doch nicht... bekomme jetzt folgende meldung

sip show peers:
Name/username Host Dyn Nat ACL Port Status
SmartNode/44699 (Unspecified) D 0 UNKNOWN

sip show channels:
Peer User/ANR Call ID Seq (Tx/Rx) Form Hold Last Message
192.168.101.254 (None) 900d4700342 00101/538591937 unkn No Rx: REGISTER

Sip Peers
Host Username Refresh State
192.168.101.254:5060 44699 120 Request Sent

mit folgenden einstellungen in der sip.conf:

register=44699:[email protected]

[44699]
type=friend
trunk=yes
secret=xxxxxx
qualify=yes
insecure=very
dtmfmode=rfc2833
disallow=all
allow=alaw

[SmartNode]
username=44699
type=friend
trunk=yes
secret=xxxxxx
qualify=yes
insecure=very
host=dynamic
dtmfmode=rfc2833
disallow=all
allow=alaw

und in der smartnode:

gateway sip GW_SmartNode
bind interface IF_IP_LAN router

service default
domain 192.168.101.3
realm 192.168.101.3
authentication 44699 password PthKPRQTSMkxDgCsM0lQ5Q== encrypted
default-server 192.168.101.3 5060 loose-router
registration-lifetime
registrar 192.168.101.3 5060 use-default-server
user 44699

gateway sip GW_SmartNode
no shutdown

interface sip IF_SIP_SN_AST
bind gateway GW_SmartNode
service default
route call dest-interface IF_S0_00
address-translation outgoing-call from-header user-part fix 44699 host-part call
use profile voip Voip-Asterisk

also die registrierungen zueinander funktionieren schon nicht... bin ratlos

:confused: sitecube
 
Das register=xxx in der sip.conf bitte löschen.

Den Benutzer [44699] brauchst du auch nicht.

Das Gateway "sip GW_SmartNode" in der Smartnode meldet sich somit am Benutzeraccount [SmartNode] auf dem Asterisk an. Das "trunk=yes" kannst du auch weglassen.

"registration-lifetime" brauchst du auch nicht.

Bitte nicht einfach irgendwelche Dinge hinzufügen, es hat doch schon funktioniert. Dann mit Thread #17 fortfahren...
 
habe alle beschriebenen schritte durchgeführt... leider keine änderung, die beiden Ast und SN können nicht miteinander... auch nicht nach dem rebooten!

das interface war bereits fertig eingetragen:

interface sip IF_SIP_SN_AST
bind gateway GW_SmartNode
service default
route call dest-interface IF_S0_00
address-translation outgoing-call from-header user-part fix 44699 host-part call
use profile voip Voip-Asterisk

sorry.. weis nicht was ich falsch mache

:noidea:
 

Zurzeit aktive Besucher

Keine Mitglieder online.

Neueste Beiträge

Statistik des Forums

Themen
244,858
Beiträge
2,219,651
Mitglieder
371,572
Neuestes Mitglied
#Kuddel#
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.