Hi,
I have set verbose=4 in smg_pri.conf.
I started the wanrouter.
Here is the sangoma_mgd.log
Apr 7 13:58:25 FMS-FreeSwitch sangoma_prid: ================System restart=============
Apr 7 13:58:25 FMS-FreeSwitch sangoma_prid: = Sangoma PRI Protocol Stack Daemon =
Apr 7 13:58:25 FMS-FreeSwitch sangoma_prid: = Version: 1.63 =
Apr 7 13:58:25 FMS-FreeSwitch sangoma_prid: = Date: Feb 26 2010 =
Apr 7 13:58:25 FMS-FreeSwitch sangoma_prid: = Wanpipe Release: wanpipe-3.5.8.6 =
Apr 7 13:58:25 FMS-FreeSwitch sangoma_prid: = Revision:Revision: 15607 =
Apr 7 13:58:25 FMS-FreeSwitch sangoma_prid: ===========================================
Apr 7 13:58:25 FMS-FreeSwitch sangoma_prid: Number of spans:2
Apr 7 13:58:25 FMS-FreeSwitch sangoma_prid: Verbosity set to:4
Apr 7 13:58:25 FMS-FreeSwitch sangoma_prid: Log Debug disabled (local:2)
Apr 7 13:58:25 FMS-FreeSwitch sangoma_prid: Log Boost disabled (local:6)
Apr 7 13:58:25 FMS-FreeSwitch sangoma_prid: TSoft:span:1 pri_cpe euroisdn dChan:16
Apr 7 13:58:25 FMS-FreeSwitch sangoma_prid: TSoft:span:2 pri_net euroisdn dChan:16
Apr 7 13:58:25 FMS-FreeSwitch sangoma_prid: s2:Status:Up prot:Down
Apr 7 13:58:25 FMS-FreeSwitch sangoma_prid: BST:(P) Local:127.0.0.66:53001 Remote:127.0.0.65:53001
Apr 7 13:58:25 FMS-FreeSwitch sangoma_prid: BST:(N) Local:127.0.0.66:53000 Remote:127.0.0.65:53000
Apr 7 13:58:25 FMS-FreeSwitch sangoma_prid: BST:Version:103
Apr 7 13:58:27 FMS-FreeSwitch sangoma_prid: s2:Status:Up prot:Up
Apr 7 13:58:31 FMS-FreeSwitch sangoma_prid: s1:Status:Up prot:Down
Apr 7 13:58:32 FMS-FreeSwitch sangoma_prid: s1:Status:Up prot:Up
Apr 7 13:58:37 FMS-FreeSwitch sangoma_prid: HeartBeat timeout (current:13:58:37 last:13:58:26 grace:0)
Apr 7 13:58:43 FMS-FreeSwitch sangoma_prid: Opening /var/log/sangoma_pri/dchan_1.log
Apr 7 13:58:47 FMS-FreeSwitch sangoma_prid: HeartBeat timeout (current:13:58:47 last:13:58:37 grace:0)
Apr 7 13:58:57 FMS-FreeSwitch sangoma_prid: HeartBeat timeout (current:13:58:57 last:13:58:47 grace:0)
Apr 7 13:58:57 FMS-FreeSwitch sangoma_prid: Assuming application is dead
Apr 7 13:59:07 FMS-FreeSwitch sangoma_prid: HeartBeat timeout (current:13:59:07 last:13:58:57 grace:0)
Apr 7 13:59:17 FMS-FreeSwitch sangoma_prid: HeartBeat timeout (current:13:59:17 last:13:59:07 grace:0)
Apr 7 13:59:27 FMS-FreeSwitch sangoma_prid: HeartBeat timeout (current:13:59:27 last:13:59:17 grace:0)
Apr 7 13:59:27 FMS-FreeSwitch sangoma_prid: Assuming application is dead
Apr 7 13:59:37 FMS-FreeSwitch sangoma_prid: HeartBeat timeout (current:13:59:37 last:13:59:27 grace:0)
Apr 7 13:59:47 FMS-FreeSwitch sangoma_prid: HeartBeat timeout (current:13:59:47 last:13:59:37 grace:0)
Apr 7 13:59:57 FMS-FreeSwitch sangoma_prid: HeartBeat timeout (current:13:59:57 last:13:59:47 grace:0)
Apr 7 13:59:57 FMS-FreeSwitch sangoma_prid: Assuming application is dead
>From freeswitch cli, if I say
originate openzap/1/a/39114603@g2 &park(), I got the following in the sangoma_mgd.log.
Apr 7 14:13:50 FMS-FreeSwitch sangoma_prid: g2:Outgoing call (Smg-ID:2)
Apr 7 14:13:50 FMS-FreeSwitch sangoma_prid: s2:Outgoing call ChanRq:1 Called-Nb[39114603] Calling-Nb[Unknown] (Smg-ID:2)
Apr 7 14:13:50 FMS-FreeSwitch sangoma_prid: s2c1:Remote released-Unallocated (unassigned) number(1)
Apr 7 14:13:50 FMS-FreeSwitch sangoma_prid: s2c0:Call was already cleared (TSOFT-ID:4)
Apr 7 14:13:50 FMS-FreeSwitch sangoma_prid: g2:Call cleared (SMG-ID:2)
By seeing this, I confirmed that span2 is working. Leave out the Unallocated number, that's my internal problem.
>From the extension, if I dial 0, nothing is printing in sangoma_mgd.log
But in dhcan2.log I got the No/Circuit or channel available as I mentioned earlier.
In freeswitch mod_openzap is loaded properly.
Any help!!!
On Wed, Apr 7, 2010 at 2:17 AM, David Yat Sin <david.yatsin@gmail.com> wrote:
Hi Lakshmanan,
If you do not have anything printing in /var/log/sangoma_mgd.log, and you have:
verbose=4 //(or higher)
in /etc/wanpipe/smg_pri.conf, check that you have these lines in /etc/syslog.conf (or /etc/rsyslog.conf):
local2.* /var/log/sangoma_mgd.log
and restart your syslog.
my first guess is that you do not have openzap loaded so sangoma_prid is rejecting all incoming calls, but I would need logs in /var/log/sangoma_mgd.log to confirm.
If openzap is not loaded, you can type:
load mod_openzap
from the freeswitch CLI to load it.
--
David Yat Sin, BEng, Software Developer
Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada
t. 1 905 474 1990 x 119 | e. dyatsin@sangoma.com
On 4/6/2010 12:24 AM, lakshmanan ganapathy wrote:_______________________________________________ FreeSWITCH-users mailing listHi all,
In my office we have a Hard PBX, with some 4 extensions.
We also have sangoma A102 card.
>From the Hard PBX, if 0 is pressed, it is setup in a way that it will go to outside world.
I've connected that line to span2 of the card.
The span2 in the A102 card, is configured as PRI_NET.
wanrouter status shows connected for the span2.
But if I dial from the extension, I got the following in the sangoma_dchan log.
2010-04-03 12:49:49
INCOMING [ 00 01 54 50 08 02 01 64 05 04 03 80 90 a3 6c 0c 01 81 34 34 33 39 31 31 34 36 30 30 7d 02 91 81 ]
Call Ref:0164
Type:Setup (0x5)
Bearer Capability:Coding:ITU-T(0) TransferCap:Speech(0) TransferRate:64 Kbit/s(16) L1Prot:G.711 A-Law(3)
Calling Party Number:4439114600(l:10) plan:isdn(1) type:unknown(0)scr:user, passed(1) pres:allowed(0)
High-Layer Compatibility:Undecodedhex [ 7d 02 91 81 ]
2010-04-03 12:49:49
OUTGOING [ 02 01 50 56 08 02 81 64 5a 08 02 82 a2 ]
Call Ref:0164
Type:Release Compl (0x5a)
Cause:coding:ITU-T(0) location:Public network, local user(2) val:No Circuit/Channel Available(34)
The call in not reaching freeswitch ( I enabled debug log. But nothing is printing in it ).
Can someone suggest how to make this work.
Please ask me if you need more information?, since I don't know what to give now.
_______________________________________________
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
_______________________________________________ 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