Smartnode 4638 and Topex Mobilink GSM Gateway

igiangio

Neuer User
Mitglied seit
22 Okt 2006
Beiträge
2
Punkte für Reaktionen
0
Punkte
0
Hi,
i have successfully configure my smartnode with my bri 0 0/1/2 ISDN Telecom and my Asterisk.

However i'd like to configure the bri 0 3 with my Topex Mobilink GSM Gateway (www.topex.ru) in order
to use the mobile to mobile fares.


The gateway result always down in the meanwhile, it work properly if attached to my old quadbri pci card.

Can you help me?

Here the actual config:
Code:
-----------------------------------------------------------------------------------------------------------------------
#----------------------------------------------------------------#
#                                                                #
# SN4638/5BIS/UI                                                 #
# R3.20 2006-02-02 H323 SIP BRI                                  #
# 2006-10-22T09:46:48                                            #
# Generated configuration file                                   #
#                                                                #
#----------------------------------------------------------------#

cli version 3.20
administrator administrator password ZHOnt6muTnXrtEWWJ8Jzrw== encrypted
dns-relay
webserver port 80 language en
sntp-client
sntp-client server primary 129.132.2.21 port 123 version 4

system

  ic voice 0
    low-bitrate-codec g729

profile napt NAPT_WAN

profile ppp default

profile call-progress-tone IT_Dialtone
  play 1 200 425 -12
  pause 2 200
  play 3 600 425 -12
  pause 4 1000

profile call-progress-tone IT_Alertingtone
  play 1 1000 425 -12
  pause 2 4000

profile call-progress-tone IT_Busytone
  play 1 1000 425 -12
  pause 2 1000

profile call-progress-tone IT_Congestiontone
  play 1 500 425 -12
  pause 2 500

profile tone-set default

profile tone-set IT
  map call-progress-tone dial-tone IT_Dialtone
  map call-progress-tone ringback-tone IT_Alertingtone
  map call-progress-tone busy-tone IT_Busytone
  map call-progress-tone release-tone IT_Busytone
  map call-progress-tone congestion-tone IT_Congestiontone

profile voip default
  codec 1 g711alaw64k rx-length 20 tx-length 20
  codec 2 g711ulaw64k rx-length 20 tx-length 20

profile pstn default

profile sip default

profile aaa default
  method 1 local
  method 2 none

context ip router

  interface WAN
    ipaddress dhcp
    use profile napt NAPT_WAN
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

  interface LAN
    ipaddress 10.120.41.147 255.255.255.192
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

context ip router
  route 0.0.0.0 0.0.0.0 10.120.41.132 10

context cs switch
  national-prefix 0
  international-prefix 00

  interface isdn IF_S0_01
    route call dest-interface IF_VOIP_ASTERISK
    use profile tone-set IT

  interface isdn IF_S0_02
    route call dest-interface IF_VOIP_ASTERISK
    use profile tone-set IT

  interface isdn IF_S0_03
    route call dest-interface IF_VOIP_ASTERISK
    use profile tone-set IT

  interface isdn IF_S0_04
    route call dest-interface IF_VOIP_GSM
    use profile tone-set IT

  interface sip IF_VOIP_ASTERISK
    bind gateway ASTERISK
    service default
    route call dest-service isdn
    early-disconnect
    remote-party-id called-party
    remote-party-id calling-party

  interface sip IF_VOIP_GSM
    bind gateway GSM
    service default
    route call dest-service gsm
    early-disconnect
    remote-party-id called-party
    remote-party-id calling-party

  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_S0_01
    route call 2 dest-interface IF_S0_02
    route call 3 dest-interface IF_S0_03

  service hunt-group gsm
    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_S0_04

context cs switch
  no shutdown

gateway sip ASTERISK
  bind interface LAN router

  service default
    domain 10.120.41.131
    realm saipenne.it
    authentication pattonisdn password xxxxxxxxx encrypted
    registrar 10.120.41.131 5060
    user pattonisdn

gateway sip ASTERISK
  no shutdown

gateway sip GSM
  call-signaling-port 5062
  bind interface LAN router

  service default
    domain 10.120.41.134
    realm saipenne.it
    authentication pattongsm password xxxxxxxxxx encrypted
    registrar 10.120.41.134 5060
    user pattongsm

gateway sip GSM
  no shutdown

port ethernet 0 0
  medium auto
  encapsulation ip
  bind interface WAN router
  no shutdown

port ethernet 0 1
  medium auto
  encapsulation ip
  bind interface LAN router
  no shutdown

port bri 0 0
  clock auto
  encapsulation q921

  q921
    protocol pp
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      encapsulation cc-isdn
      bind interface IF_S0_01 switch

port bri 0 0
  no shutdown

port bri 0 1
  clock auto
  encapsulation q921

  q921
    protocol pp
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      encapsulation cc-isdn
      bind interface IF_S0_02 switch

port bri 0 1
  no shutdown

port bri 0 2
  clock auto
  encapsulation q921

  q921
    protocol pp
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      encapsulation cc-isdn
      bind interface IF_S0_03 switch

port bri 0 2
  no shutdown

port bri 0 3
  clock auto
  encapsulation q921

  q921
    protocol pmp
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      encapsulation cc-isdn
      bind interface IF_S0_04 switch

port bri 0 3
  no shutdown

port bri 0 4
  clock auto
  encapsulation q921

  q921
    protocol pmp
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      encapsulation cc-isdn

port bri 0 4
  shutdown




Here the port isdn bri 0 3 status:
----------------------------------------

Logical Isdn Driver: BRI 0 0
============================

 Slot:                                  0
 Number of Ports:                       5
 Hardware Type:                         BRI
 Emergency Mode:                        off

 Statistics
 ----------

  Leased buffers:                       26
  Max. leased buffers:                  41
  Next Call Key:                        7

 Logical Port: BRI 0 0 3
 -----------------------

  Admin State:                          Open
  Real State:                           Open
  Operating Layer:                      3

  Layer 1
   Clock Mode:                          Slave
   Link State:                          down

  Layer 2
   Permanent Layer 2:                   off
   Protocol:                            PointToMultiPoint
   UniSide:                             User

  Layer 3
   Protocol:                            Dss1
   UniSide:                             User
   MinChannel:                          0
   MaxChannel:                          1
   MaxCalls:                            2
   Hunt Mode:                           Ascending
   Signalling Mode:                     Etsi

 HfC-8S: 0x916ef8
 ----------------

  L1 State:                             F3
 
Hi igiangio,

the gateway has one NT and one TE port, right?

Please test this:
Code:
port bri 0 3
clock [b]master[/b]
encapsulation q921

q921
protocol pmp
uni-side [b]net[/b]
encapsulation q931

q931
protocol dss1
uni-side [b]net[/b]
encapsulation cc-isdn
bind interface IF_S0_04 switch

port bri 0 3
no shutdown

...or this:
Code:
port bri 0 3
clock [b]slave[/b]
encapsulation q921

q921
protocol pmp
uni-side [b]user[/b]
encapsulation q931

q931
protocol dss1
uni-side [b]user[/b]
encapsulation cc-isdn
bind interface IF_S0_04 switch

port bri 0 3
no shutdown

mfg Guard-X
 
Dear Guard-X,
thanks for your reply.

The Topex Mobilink can act both as NT or TE.

In my case i use it as NT connected to my Smartnode 4638.
I use it as NT mode...

After configure the port as NT and changing the clock the port come up.

but here what happen after the first incoming call:

Edit Guard-X: Please use code-tags

Code:
16:56:10  ISDN  > # 232 p: 3 R: sapi: 0 cr=1 ea=0 tei:  0 ea=1 SABME                p =1 
16:56:11  ISDN  > # 233 p: 3 R: sapi: 0 cr=1 ea=0 tei:  0 ea=1 SABME                p =1 
16:56:12  ISDN  > # 234 p: 3 R: sapi: 0 cr=1 ea=0 tei:  0 ea=1 SABME                p =1 
16:56:13  ISDN  > # 235 p: 3 R: sapi: 0 cr=1 ea=0 tei:  0 ea=1 SABME                p =1 
16:56:24  ISDN  > # 236 p: 3 R: sapi: 0 cr=1 ea=0 tei:  0 ea=1 SABME                p =1 
16:56:25  ISDN  > # 237 p: 3 R: sapi: 0 cr=1 ea=0 tei:  0 ea=1 SABME                p =1 
16:56:26  ISDN  > # 238 p: 3 R: sapi: 0 cr=1 ea=0 tei:  0 ea=1 SABME                p =1 
16:56:27  ISDN  > # 239 p: 3 R: sapi: 0 cr=1 ea=0 tei:  0 ea=1 SABME                p =1 
16:56:28  ISDN  > # 240 p:03 State F7, event State change (0x96)
16:56:28  ISDN  > # 241 p:03  -> new state F6

16:56:28  ISDN  > # 242 p:03 State F6, event State change (0xc3)
16:56:28  ISDN  > # 243 p:03 Started T4 with 550mS
16:56:28  ISDN  > # 244 p:03  -> new state F3

16:56:28  ISDN  > # 245 p:03 T4 expired
16:56:28  ISDN  > # 246 p:03 State F3, event Tmo4 (0)
16:56:28  ISDN  > # 247 p:03 Notifying MPH deactivated
16:56:28  ISDN  > # 248 p:03 Notifying PH deactivated
16:56:28  ISDN  > # 249 p:03  -> new state F3

16:56:28  ISDN  > # 250 p: 3 MphDeactInd -> man
16:56:28  ISDN  > # 251 p: 3 PhDeactInd -> l2


then the port go down again...

also strange that whe the port is up,
an outgoing call coming from asterisk via the gateway return the follow message:
-----------------------------------------
17:05:07 SIP_ER> PROVIDER IS NOT BOUND TO A GATEWAY


any suggestion would be appreciated...
 
Please use "debug call-router" and "debug call-control" with detail level 5 and see what happens...
 
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.