VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
john at feith.com Guest
|
Posted: Tue Apr 07, 2009 7:45 pm Post subject: [Freeswitch-users] need help getting ISDN talking to Cisco |
|
|
Our FreeSWITCH setup has an existing T1 using RBS to talk to a digital
modem pack in a Cisco 3845. I'm interested in changing from RBS to
ISDN. I changed both sides, restart things, and see FreeSWITCH report:
2009-04-07 18:53:15 [ERR] Span:0 Q.921() Failed to establish Q.921 link in 3 retries
2009-04-07 18:54:40 [ERR] Span:0 Q.921() Failed to establish Q.921 link in 3 retries
2009-04-07 18:55:36 [ERR] Span:0 Q.921() Failed to establish Q.921 link in 3 retries
2009-04-07 18:55:45 [NOTICE] Span:0 Q.921() I frame in invalid state ignored
2009-04-07 18:55:46 [NOTICE] Span:0 Q.921() I frame in invalid state ignored
2009-04-07 18:55:47 [NOTICE] Span:0 Q.921() I frame in invalid state ignored
2009-04-07 18:55:48 [NOTICE] Span:0 Q.921() I frame in invalid state ignored
I've attached the configs and Cisco debug below. This is using the
native ISDN support in FreeSWITCH with a Sangoma A104d on FreeBSD 6.4.
I unfortunately don't currently speak ISDN (though I'm starting to pick
up a little as a result of this exercise) ... suggestions / hints regarding
what's going on and how to resolve it would be welcomed.
-- John
------------------------------ wanpipe2.conf -------------------------------
[devices]
wanpipe2 = WAN_AFT_TE1, Comment
[interfaces]
wbg1 = wanpipe2, , TDM_VOICE, Comment
[wanpipe2]
CARD_TYPE = AFT
S514CPU = A
CommPort = PRI
AUTO_PCISLOT = NO
PCISLOT = 5
PCIBUS = 5
FE_MEDIA = T1
FE_LCODE = B8ZS
FE_FRAME = ESF
FE_LINE = 2
TE_CLOCK = MASTER
TE_REF_CLOCK = 1
TE_HIGHIMPEDANCE = NO
TE_RX_SLEVEL = 120
LBO = 0DB
FE_TXTRISTATE = NO
MTU = 1500
UDPPORT = 9000
TTL = 255
IGNORE_FRONT_END = NO
TDMV_SPAN = 2
TDMV_DCHAN = 0
TDMV_HW_DTMF = YES
[wbg1]
ACTIVE_CH = ALL
TDMV_ECHO_OFF = NO
TDMV_HWEC = YES
------------------------------ zaptel.conf ---------------------------------
#Sangoma A104 port 2 [slot:5 bus:5 span:2] <wanpipe2>
span=2,0,0,esf,b8zs
bchan=25-47
dchan=48
------------------------------ openzap.conf --------------------------------
[span zt]
; A104D FE 2 1-6 MICA
name => Cisco Digital Modem
trunk_type => t1
number => 2487
b-channel => 25-47
d-channel => 48
--------------------------- openzap.conf.xml -------------------------------
<pri_spans>
<span id="2">
<!-- Log Levels: none, alert, crit, err, warning, notice, info, debug -->
<param name="q921loglevel" value="info"/>
<param name="q931loglevel" value="info"/>
<param name="mode" value="net"/>
<param name="dialect" value="national"/>
<param name="dialplan" value="XML"/>
<param name="context" value="default"/>
</span>
</pri_spans>
------------------------------ Cisco config --------------------------------
controller T1 1/0
framing ESF
linecode b8zs
cablelength short 220
pri-group timeslots 1-24
interface Serial1/0:23
no ip address
encapsulation hdlc
isdn switch-type primary-ni
isdn incoming-voice modem
isdn calling-number 2487
no cdp enable
------------------------------ Cisco debug ---------------------------------
#show isdn stat
Global ISDN Switchtype = primary-ni
ISDN Serial1/0:23 interface
dsl 0, interface ISDN Switchtype = primary-ni
Layer 1 Status:
ACTIVE
Layer 2 Status:
TEI = 0, Ces = 1, SAPI = 0, State = MULTIPLE_FRAME_ESTABLISHED
Layer 3 Status:
0 Active Layer 3 Call(s)
Active dsl 0 CCBs = 0
The Free Channel Mask: 0x807FFFFF
Number of L2 Discards = 2, L2 Session ID = 117
Total Allocated ISDN CCBs = 0
Apr 7 22:53:44.264: ISDN Se1/0:23 Q921: L2_EstablishDataLink: sending SABME
Apr 7 22:53:44.264: ISDN Se1/0:23 Q921: User TX -> SABMEp sapi=0 tei=0
Apr 7 22:53:44.312: ISDN Se1/0:23 Q921: User RX <- UAf sapi=0 tei=0
Apr 7 22:53:44.312: %CSM-5-PRI: add PRI at 1/0:23 (index 0)
Apr 7 22:53:44.312: %ISDN-6-LAYER2UP: Layer 2 for Interface Se1/0:23, TEI 0 cha
nged to up
Apr 7 22:53:47.268: ISDN Se1/0:23 Q921: User RX <- RRp sapi=0 tei=0 nr=0
Apr 7 22:53:47.268: ISDN Se1/0:23 Q921: User TX -> RRf sapi=0 tei=0 nr=0
prepnet-rt#
Apr 7 22:53:57.336: ISDN Se1/0:23 Q921: User RX <- RRp sapi=0 tei=0 nr=0
Apr 7 22:53:57.336: ISDN Se1/0:23 Q921: User TX -> RRf sapi=0 tei=0 nr=0
prepnet-rt#
Apr 7 22:54:11.692: ISDN Se1/0:23 Q921: User RX <- SABMEp sapi=0 tei=0
Apr 7 22:54:11.692: ISDN Se1/0:23 Q921: User TX -> UAf sapi=0 tei=0
Apr 7 22:54:21.760: ISDN Se1/0:23 Q921: User RX <- RRp sapi=0 tei=0 nr=0
Apr 7 22:54:21.760: ISDN Se1/0:23 Q921: User TX -> RRf sapi=0 tei=0 nr=0
Apr 7 22:54:51.760: ISDN Se1/0:23 Q921: User TX -> RRp sapi=0 tei=0 nr=0
Apr 7 22:54:52.760: ISDN Se1/0:23 Q921: User TX -> RRp sapi=0 tei=0 nr=0
Apr 7 22:54:53.760: ISDN Se1/0:23 Q921: User TX -> RRp sapi=0 tei=0 nr=0
Apr 7 22:54:54.760: ISDN Se1/0:23 Q921: User TX -> RRp sapi=0 tei=0 nr=0
Apr 7 22:54:55.760: ISDN Se1/0:23 Q921: L2_EstablishDataLink: sending SABME
Apr 7 22:54:55.760: ISDN Se1/0:23 Q921: User TX -> SABMEp sapi=0 tei=0
Apr 7 22:54:56.760: ISDN Se1/0:23 Q921: User TX -> SABMEp sapi=0 tei=0
Apr 7 22:54:57.760: ISDN Se1/0:23 Q921: User TX -> SABMEp sapi=0 tei=0
Apr 7 22:54:58.760: ISDN Se1/0:23 Q921: User TX -> SABMEp sapi=0 tei=0
Apr 7 22:54:59.760: %CSM-5-PRI: delete PRI at 1/0:23 (index 0)
Apr 7 22:54:59.760: %ISDN-6-LAYER2DOWN: Layer 2 for Interface Se1/0:23, TEI 0 c
hanged to down
Apr 7 22:54:59.760: ISDN Se1/0:23 Q931: Ux_DLRelInd: DL_REL_IND received from L
2
Apr 7 22:55:04.760: ISDN Se1/0:23 Q921: L2_EstablishDataLink: sending SABME
Apr 7 22:55:04.760: ISDN Se1/0:23 Q921: User TX -> SABMEp sapi=0 tei=0
Apr 7 22:55:05.760: ISDN Se1/0:23 Q921: User TX -> SABMEp sapi=0 tei=0
Apr 7 22:55:05.872: ISDN Se1/0:23 Q921: User RX <- RRp sapi=0 tei=0 nr=0
Apr 7 22:55:06.760: ISDN Se1/0:23 Q921: User TX -> SABMEp sapi=0 tei=0
Apr 7 22:55:07.760: ISDN Se1/0:23 Q921: User TX -> SABMEp sapi=0 tei=0
Apr 7 22:55:08.760: ISDN Se1/0:23 Q931: Ux_DLRelInd: DL_REL_IND received from L
2
Apr 7 22:55:13.760: ISDN Se1/0:23 Q921: L2_EstablishDataLink: sending SABME
Apr 7 22:55:13.760: ISDN Se1/0:23 Q921: User TX -> SABMEp sapi=0 tei=0
Apr 7 22:55:14.760: ISDN Se1/0:23 Q921: User TX -> SABMEp sapi=0 tei=0
Apr 7 22:55:15.760: ISDN Se1/0:23 Q921: User TX -> SABMEp sapi=0 tei=0
Apr 7 22:55:15.772: ISDN Se1/0:23 Q921: User RX <- UAf sapi=0 tei=0
Apr 7 22:55:15.772: %CSM-5-PRI: add PRI at 1/0:23 (index 0)
Apr 7 22:55:15.772: %ISDN-6-LAYER2UP: Layer 2 for Interface Se1/0:23, TEI 0 cha
nged to up
Apr 7 22:55:15.772: ISDN Se1/0:23 Q921: User TX -> INFO sapi=0 tei=0, ns=0 nr=0
Apr 7 22:55:15.772: ISDN Se1/0:23 Q931: RESTART pd = 8 callref = 0x0000
Restart Indicator i = 0x87
Apr 7 22:55:16.772: ISDN Se1/0:23 Q921: S7_T200_EXPIRY: VA = 0, VS = 1
Apr 7 22:55:16.772: ISDN Se1/0:23 Q921: User TX -> INFOp sapi=0 tei=0, ns=0 nr=
0
Apr 7 22:55:16.772: ISDN Se1/0:23 Q931: RESTART pd = 8 callref = 0x0000
Restart Indicator i = 0x87
Apr 7 22:55:17.772: ISDN Se1/0:23 Q921: User TX -> INFOp sapi=0 tei=0, ns=0 nr=
0
Apr 7 22:55:17.772: ISDN Se1/0:23 Q931: RESTART pd = 8 callref = 0x0000
Restart Indicator i = 0x87
Apr 7 22:55:17.784: ISDN Se1/0:23 Q921: User RX <- RRf sapi=0 tei=0 nr=1
Apr 7 22:55:45.773: ISDN Se1/0:23 Q921: User TX -> INFO sapi=0 tei=0, ns=1 nr=0
Apr 7 22:55:45.773: ISDN Se1/0:23 Q931: RESTART pd = 8 callref = 0x0000
Restart Indicator i = 0x87
Apr 7 22:55:46.773: ISDN Se1/0:23 Q921: S7_T200_EXPIRY: VA = 1, VS = 2
Apr 7 22:55:46.773: ISDN Se1/0:23 Q921: User TX -> INFOp sapi=0 tei=0, ns=1 nr=
0
Apr 7 22:55:46.773: ISDN Se1/0:23 Q931: RESTART pd = 8 callref = 0x0000
Restart Indicator i = 0x87
Apr 7 22:55:47.773: ISDN Se1/0:23 Q921: User TX -> INFOp sapi=0 tei=0, ns=1 nr=
0
Apr 7 22:55:47.773: ISDN Se1/0:23 Q931: RESTART pd = 8 callref = 0x0000
Restart Indicator i = 0x87
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
john at feith.com Guest
|
Posted: Wed Apr 08, 2009 5:27 pm Post subject: [Freeswitch-users] need help getting ISDN talking to Cisco |
|
|
Quote: | Okay, a few things. First off, the wanpipe2.conf file has a booboo.
|
Don't think so.
Quote: | This line is WRONG:
TDMV_DCHAN = 0
|
Not exactly. My understanding is you can use either:
wanpipeX.conf: TDMV_DCHAN = 0
zaptel.conf: dchan = 24 (or in our case 48 since it's the second span)
which means use zaptel to handle the d-channel hdlc or
wanpipeX.conf: TDMV_DCHAN = 24
zaptel.conf: hardhdlc = 24 (or in our case 48 since it's the second span)
which means use wanpipe to handle the d-channel hdlc assuming the
wanpipe driver has the necessary support (wanpipe on my platform
doesn't).
Quote: | Also, I recommend changing this line:
wbg1 = wanpipe2, , TDM_VOICE, Comment
To this:
wbg1 = wanpipe2, , TDM_VOICE_API, Comment
|
The sangoma voice API interface isn't available on my platform
and shouldn't be necessary when using zaptel.
Quote: | assuming that this is what you want then you will need to use
ozmod_libpri because the default OpenZAP PRI stack does not
currently support being the network side.
|
Are you sure? Openzap appears to contain implementations for
both NT and TE. The configuration file supports specifying
either user or network for the mode. Is the NT support
currently nonfunctional?
I had tried configuring the Cisco as the NT with similar
results.
Quote: | I don't see where timing is specified
|
It's the same T1 which was being used for RBS between
FreeSWITCH and the Cisco so that timing (etc) should
be okay. No errors are showing up at the physical
level and the Cisco reports Layer 1 as active.
The trace on the Cisco seems to show Layer 2 coming up
(timestamps 22:53:44.264 through 22:54:21.760), then
there's a long pause during which no Receive Ready
frames are received from FreeSWITCH. At this point
the Cisco gets unhappy and marks Layer 2 as down.
If nothing obvious comes to anyone's mind, then I'll
simply need to trace through the FreeSWITCH ISDN code
and see what's going on.
-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
john at feith.com Guest
|
Posted: Mon Apr 20, 2009 7:33 pm Post subject: [Freeswitch-users] need help getting ISDN talking to Cisco |
|
|
On Thu, Apr 9, 2009 Michael Collins wrote:
Quote: | Just curious - why are you using zaptel at all? Does it provide
something for you that the wanpipe drivers do not?
|
The wanpipe API mode isn't available on my platform (which is to
say zaptel is the only game in town if you are using FreeBSD).
See:
http://wiki.sangoma.com/wanpipe-freebsd-drivers
for futher information.
-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|