On Thu, May 10, 2007 at 09:20:56PM +0800, Steve Underwood wrote: > Hi Alejandro, > > I think you have more than one problem there. One appears to be the > inconsistent use of upper and lower case for UniCall in chan_unicall.c. > That used to not matter. Now it does. Hopefully I have just fixed that > in SVN, so its always UniCall. Can you try again, please. > > Steve >
Hi,
Yesterday night, we tried with testcall. It cans call to the PSTN, but
can't receive any call. So, besides the problem with chan_unicall, there
seems to be some issue in mfcr2, maybe.
We'll try the latest chan_unicall tonight and tell you about the outcome.
This was the output when trying to receive the call:
./testcall
Chan 1, class 'mfcr2', variant 'ar,20,4', end 1, caller 0, from
'3211587' to '3211590'
Loading protocol mfcr2
Thread for channel 0
MFC/R2 Chan 1: Call control(9)
MFC/R2 Chan 1: Unblock
MFC/R2 Chan 1: 1001 -> [1/BLOCKED /Idle /Idle ]
MFC/R2 Chan 1: far_unblocking_expired
MFC/R2 Chan 1: local_unblocking_expired
Chan 1: -- Far end unblocked! :-)
Chan 1: -- Far end unblocked! :-)
Chan 1: -- Local end unblocked! :-)
Chan 1: -- Local end unblocked! :-)
MFC/R2 Chan 1: <- 0001 [1/IDLE /Idle /Idle ]
MFC/R2 Chan 1: Detected
MFC/R2 Chan 1: Creating a new call with CRN 32769
MFC/R2 Chan 1: 1101 -> [2/DETECTED/Seize ack /Seize ack ]
Chan 1: -- Detected on channel 0, CRN 32769
Chan 1: -- Detected on channel 0, CRN 32769
MFC/R2 Chan 1: <- 1 on [2/DETECTED/Seize ack /Seize ack ]
MFC/R2 Chan 1: 5 on -> [2/DETECTED/Group A /Category req ]
MFC/R2 Chan 1: <- 1 off [2/DETECTED/Group A /Category req ]
MFC/R2 Chan 1: 5 off -> [2/DETECTED/Group A /Category req ]
MFC/R2 Chan 1: <- 1 on [2/DETECTED/Group A /Category req ]
MFC/R2 Chan 1: 5 on -> [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: <- 1 off [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: 5 off -> [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: <- 1 on [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: 5 on -> [2/DETECTED/Group A /ANI request ]
Main thread
MFC/R2 Chan 1: <- 1 off [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: 5 off -> [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: <- 3 on [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: 5 on -> [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: <- 3 off [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: 5 off -> [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: <- 2 on [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: 5 on -> [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: <- 2 off [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: 5 off -> [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: <- 1 on [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: 5 on -> [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: <- 1 off [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: 5 off -> [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: <- 1 on [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: 5 on -> [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: <- 1 off [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: 5 off -> [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: <- 5 on [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: 5 on -> [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: <- 5 off [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: 5 off -> [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: <- 8 on [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: 5 on -> [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: <- 8 off [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: 5 off -> [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: <- 7 on [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: 5 on -> [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: <- 7 off [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: 5 off -> [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: <- F on [2/DETECTED/Group A /ANI request ]
MFC/R2 Chan 1: R2 prot. err. [2/DETECTED/Group A /ANI request ]
cause 32772 - Unexpected MF6 signal
MFC/R2 Chan 1: 1001 -> [1/IDLE /Idle /Idle ]
Chan 1: -- Protocol failure on channel 0, cause (32772) Unexpected MF6
signal
Chan 1: -- Protocol failure on channel 0, cause (32772) Unexpected MF6
signal
MFC/R2 Chan 1: <- 1001 [1/IDLE /Idle /Idle ]
MFC/R2 Chan 1: 1001 -> [1/IDLE /Idle /Idle ]
Main thread
Main thread
Altough, we hope the problem with the outgoing is solved now, this is
the outbound call output:
# ./testcall
Chan 1, class 'mfcr2', variant 'ar,20,4', end 2, caller 1, from
'3211590' to '3211587'
Loading protocol mfcr2
Thread for channel 0
MFC/R2 Chan 1: Call control(9)
MFC/R2 Chan 1: Unblock
MFC/R2 Chan 1: 1001 -> [1/BLOCKED /Idle /Idle ]
MFC/R2 Chan 1: far_unblocking_expired
MFC/R2 Chan 1: local_unblocking_expired
Chan 1: -- Far end unblocked! :-)
Chan 1: -- Far end unblocked! :-)
Chan 1: -- Local end unblocked! :-)
Chan 1: -- Local end unblocked! :-)
Chan 1: Initiating call
MFC/R2 Chan 1: Call control(1)
MFC/R2 Chan 1: Make call
MFC/R2 Chan 1: Creating a new call with CRN 32769
MFC/R2 Chan 1: 0001 -> [1/DIALING /Seize /Idle ]
Chan 1: -- Dialing on channel 0
Chan 1: -- Dialing on channel 0
MFC/R2 Chan 1: <- 1101 [1/DIALING /Seize /Idle ]
MFC/R2 Chan 1: 3 on -> [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: <- 1 on [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: 3 off -> [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: <- 1 off [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: 2 on -> [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: <- 1 on [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: 2 off -> [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: <- 1 off [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: 1 on -> [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: <- 1 on [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: 1 off -> [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: <- 1 off [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: 1 on -> [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: <- 1 on [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: 1 off -> [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: <- 1 off [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: 5 on -> [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: <- 1 on [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: 5 off -> [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: <- 1 off [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: 8 on -> [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: <- 1 on [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: 8 off -> [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: <- 1 off [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: 7 on -> [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: <- 3 on [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: 7 off -> [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: <- 3 off [2/DIALING /Group I /DNIS ]
MFC/R2 Chan 1: 1 on -> [2/PROCEED /Group II /Category ]
Chan 1: -- Proceeding on channel 0
MFC/R2 Chan 1: <- 6 on [2/PROCEED /Group II /Category ]
MFC/R2 Chan 1: 1 off -> [2/PROCEED /Group II /Category ]
MFC/R2 Chan 1: <- 6 off [2/PROCEED /Group II /Category ]
Chan 1: -- Alerting on channel 0
Chan 1: -- Alerting on channel 0
Main thread
MFC/R2 Chan 1: <- 0101 [1/ALERTING/Await answer /Category ]
Chan 1: -- Connected on channel 0
Chan 1: -- Connected on channel 0
Chan 1: -- '*00000001*3211590*3211587*#'
Main thread
Chan 1: Received DTMF '0000001*3211590*3211587*#'
Chan 1: Received DTMF string incorrect -1 1 '3211587' '3211590' '#'
'3211587'
Chan 1: Received DTMF 'A'
MFC/R2 Chan 1: Call control(7)
MFC/R2 Chan 1: Drop call(cause=Normal Clearing [16])
MFC/R2 Chan 1: Clearing fwd
MFC/R2 Chan 1: 1001 -> [1/CONNECTD/Answered /Idle ]
MFC/R2 Chan 1: <- 1001 [1/CONNECTD/Clear fwd C /Idle ]
MFC/R2 Chan 1: Call disconnected(cause=Normal Clearing [16]) - state
0x400
Chan 1: -- Drop call on channel 0
Chan 1: -- Drop call on channel 0
MFC/R2 Chan 1: Call control(8)
MFC/R2 Chan 1: Release call
MFC/R2 Chan 1: Destroying call with CRN 32769
Chan 1: -- Release call on channel 0
Chan 1: -- Release call on channel 0
Chan 1: Initiating call
MFC/R2 Chan 1: Call control(1)
MFC/R2 Chan 1: Make call
MFC/R2 Chan 1: Creating a new call with CRN 32770
....
Best regards,
Santiago
>
> Alejandro Rios wrote:
> > Hi Steve,
> >
> > Steve Underwood <[EMAIL PROTECTED]> escribió:
> >
> >
> >
> >> Can you try experimenting with the card from one of these other machines
> >> at night?
> >>
> >> Regards,
> >> Steve
> >>
> >>
> >
> > After testing, the r1t1 card/module doesn't like MFC/R2. The problem is
> > reported to rhino.
> >
> > So, I tried the Digium card that is currtently working with asterisk and
> > MFC/R2 in the Ceros machine running Callweaver. Zttool shows both tx and rx
> > bits unblocked after chan_unicall is loaded, but, the karma didn't stop
> > there:
> >
> > When I tried to make a call, I got this:
> >
> > -- Unicall/21 far unblocked
> > 070508-141430 WARNING[3054533552]: chan_unicall.c:2693 handle_uc_event:
> > Unicall/21 event Local end unblocked
> > -- Unicall/21 local unblocked
> > 070508-141430 WARNING[3069500336]: timer.c:112 _set_interval: Requested a
> > timer with 3000000 nanosecond interval, but system timer reports a
> > resolution of 4000250 nanosec. Timing may be unreliable!
> >
> > *CLI> 070508-141432 WARNING[3053968304]: timer.c:112 _set_interval:
> > Requested a timer with 2000000 nanosecond interval, but system timer reports
> > a resolution of 4000250 nanosec. Timing may be unreliable!
> >
> > ...
> > -- Executing Set("SIP/phone1-60a6", "CDR(pbx)=pbx1") in new stack
> > -- Executing Set("SIP/phone1-60a6", "CDR(userfield)=phone1") in new
> > stack
> > -- Executing Set("SIP/phone1-60a6", "CDR(dialout)=local") in new stack
> > -- Executing Proc("SIP/phone1-60a6", "local|6777082|n|0") in new stack
> > -- Executing GotoIf("SIP/phone1-60a6", "1?3:2") in new stack
> > -- Goto (proc-local,s,3)
> > -- Executing GotoIf("SIP/phone1-60a6", "1?4:7") in new stack
> > -- Goto (proc-local,s,4)
> > -- Executing Set("SIP/phone1-60a6", "timeout=0") in new stack
> > -- Executing Set("SIP/phone1-60a6", "options=Tt") in new stack
> > -- Executing Goto("SIP/phone1-60a6", "9") in new stack
> > -- Goto (proc-local,s,9)
> > -- Executing Set("SIP/phone1-60a6", "TIMEOUT(absolute)=0") in new stack
> > -- Channel hangup cancelled.
> > -- Executing Set("SIP/phone1-60a6", "CDR(outtrunk)=troncal_e1_etb1") in
> > new stack
> > -- Executing Set("SIP/phone1-60a6", "CDR(accountcode)=0") in new stack
> > -- Executing Dial("SIP/phone1-60a6", "Unicall/g1/6777082|25|gTt") in new
> > stack
> > 070508-141436 NOTICE[3053165488]: app_dial.c:1133 dial_exec_full: Unable to
> > create channel of type 'Unicall' (cause 0 - Unknown)
> > == Everyone is busy/congested at this time (1:0/0/1)
> > -- Executing Set("SIP/phone1-60a6", "TIMEOUT(absolute)=0") in new stack
> > -- Channel hangup cancelled.
> > -- Executing Set("SIP/phone1-60a6", "CDR(outtrunk)=troncal_e1_etb2") in
> > new stack
> > -- Executing Set("SIP/phone1-60a6", "CDR(accountcode)=0") in new stack
> > -- Executing Dial("SIP/phone1-60a6", "Unicall/g2/6777082|25|gTt") in new
> > stack
> > 070508-141436 NOTICE[3053165488]: app_dial.c:1133 dial_exec_full: Unable to
> > create channel of type 'Unicall' (cause 0 - Unknown)
> > == Everyone is busy/congested at this time (1:0/0/1)
> > -- Executing Congestion("SIP/phone1-60a6", "5") in new stack
> > == Spawn extension (proc-local, s, 17) exited non-zero on
> > 'SIP/phone1-60a6' in proc 'local'
> > == Spawn extension (out-phone1, 6777082, 4) exited non-zero on
> > 'SIP/phone1-60a6'
> > 070508-141444 WARNING[3053968304]: timer.c:112 _set_interval: Requested a
> > timer with 1000000 nanosecond interval, but system timer reports a
> > resolution of 4000250 nanosec. Timing may be unreliable!
> >
> > And, when a call was incoming from the PSTN, I got this error:
> >
> >
> > 070508-141452 WARNING[3054533552]: chan_unicall.c:2693 handle_uc_event:
> > Unicall/9 event Detected
> > 070508-141454 WARNING[3054533552]: chan_unicall.c:2693 handle_uc_event:
> > Unicall/9 event Protocol failure
> > -- Unicall/9 protocol error. Cause 32772
> >
> >
> > Using the Digium card, it seems a software problem now.
> >
> > Remember that I'm using the following versions:
> >
> > callweaver-1.1.99.20070430.tar.gz snapshot,
> > libmfcr2-20070325.tar.gz
> > libunicall-20070325.tar.gz
> > libsupertone-20060205.tar.gz
> > and,
> > spandsp-20070502.tar.gz
> >
> > What other debug info could be useful to solve this?
> >
> > Thanks and best regards,
> >
> > Alejandro Ríos
> > Avatar Ltda.
> >
>
> _______________________________________________
> Callweaver-users mailing list
> [email protected]
> http://lists.callweaver.org/mailman/listinfo/callweaver-users
signature.asc
Description: Digital signature
_______________________________________________ Callweaver-users mailing list [email protected] http://lists.callweaver.org/mailman/listinfo/callweaver-users
