[Asterisk-Users] MFC/R2 Mexico Unicall Blocked

Ariel Molina Rueda ariel at zarzamora.com.mx
Fri Aug 5 11:39:05 MST 2005


My E1 has 10 lines from my telco, 10 lines are blocked and 20 are idle. 
I guess those 10 blocked are my lines(channels). Also reading this:
http://voip-info.org/tiki-index.php?page=Asterisk+MFC+R2

i come to this lines:
"...
cas=110-124:1101


The 4 characters after the colon in the cas statements define the idle 
patternfor the signalling bits. For China and Thailand you should use 
1111 instead of 1101. 1101 should be correct for all other countries 
using MFC/R2. This pattern puts the trunk in the blocked state, so when 
no application software is using the trunk it behaves in a sensible way.

(...)
You should get a green light. If you make calls into the E1 you
find the E1 is blocked. This is the correct state before asterisk is 
started."

I use 1101, that should be correct, and it should be correct to have 10 
lines blocked, 1 to 10. It is also correct that those 10 lines are 
blocked _before_ asterisk is started. But the problem is that asterisk 
says those lines are still blocked when i try to simulate a call.

Using libunicall-0.0.2's testcall executable i get this output, and as 
you can see initialli y have 10 blocked lines :-(, errors from line 11 
to 31 (i only have 10 lines) and then messages of "local end unblocked!" 
for each of the 31 lines.

./testcall
2005/08/06 07:45:02 MFC/R2  Chan   1: call control(8)
2005/08/06 07:45:02 MFC/R2  Chan   1: unblock
2005/08/06 07:45:02 MFC/R2  Chan   1: 1001  ->      [1/40000000/Idle 
       /Idle         ]
2005/08/06 07:45:02 MFC/R2  Chan   2: call control(8)
2005/08/06 07:45:02 MFC/R2  Chan   2: unblock
2005/08/06 07:45:02 MFC/R2  Chan   2: 1001  ->      [1/40000000/Idle 
       /Idle         ]
(...snip...)
2005/08/06 07:45:02 MFC/R2  Chan  30: call control(8)
2005/08/06 07:45:02 MFC/R2  Chan  30: unblock
2005/08/06 07:45:02 MFC/R2  Chan  30: 1001  ->      [1/40000000/Idle 
       /Idle         ]
2005/08/06 07:45:02 MFC/R2  Chan  31: call control(8)
2005/08/06 07:45:02 MFC/R2  Chan  31: unblock
2005/08/06 07:45:02 MFC/R2  Chan  31: 1001  ->      [1/40000000/Idle 
       /Idle         ]
Chan   1: -- Far end blocked! :-(
Chan   2: -- Far end blocked! :-(
Chan   3: -- Far end blocked! :-(
Chan   4: -- Far end blocked! :-(
Chan   5: -- Far end blocked! :-(
Chan   6: -- Far end blocked! :-(
Chan   7: -- Far end blocked! :-(
Chan   8: -- Far end blocked! :-(
Chan   9: -- Far end blocked! :-(
Chan  10: -- Far end blocked! :-(
Chan  11: -- Protocol failure on channel 0, cause (32773) Unexpected CAS 
bit pattern
Chan  12: -- Protocol failure on channel 0, cause (32773) Unexpected CAS 
bit pattern
(...snip...)
Chan  31: -- Protocol failure on channel 0, cause (32773) Unexpected CAS 
bit pattern
2005/08/06 07:45:02 MFC/R2  Chan   1: local_unblocking_expired
Chan   1: -- Local end unblocked! :-)
2005/08/06 07:45:02 MFC/R2  Chan   2: local_unblocking_expired
Chan   2: -- Local end unblocked! :-)
2005/08/06 07:45:02 MFC/R2  Chan   3: local_unblocking_expired
Chan   3: -- Local end unblocked! :-)
(...snip...)
2005/08/06 07:45:02 MFC/R2  Chan  30: local_unblocking_expired
Chan  30: -- Local end unblocked! :-)
2005/08/06 07:45:02 MFC/R2  Chan  31: local_unblocking_expired
Chan  31: -- Local end unblocked! :-)

Athiel E. Criollo Merino wrote:
> Seems like your carrier is assigning you  channels from 11 and up to
> make calls, why dont test making a definition for group 1 from lines
> 11 to 20...
> 
> Regards
> In spanish.
> 
> Ariel, parece que Telmex te está asignando los timeslots 11 al 20 para
> tus lineas.
> por que no pruebas con tu grupo 1, asignandole solamente desde la
> linea o timeslot 11 hasta el 20.
> 
> No se mucho sobre señalizacion, pero tiene algo de logica lo que te
> estoy diciendo.
> 
> Suerte.
> 
> Athiel Criollo
> 
> 
> 2005/8/3, Ariel Molina R. <ariel at zarzamora.com.mx>:
>> I've been trying to configure an E1 in Mexico using unicall, i went
>> into vozdigital, googled this list, and finally followed this
>> instructions:
>> http://voip-info.org/tiki-index.php?page=Asterisk+MFC+R2
>>
>> I have 10 PSTN numbers and 10 "lines" assigned, so i only have 10
>> "channels" assigned from my telco.
>>
>> However when i try to simulate a call using this call file:
>> --------call file------
>> Channel: UniCall/g1/1
>> Callerid: <4772140099>
>> MaxRetries: 0
>> RetryTime: 600
>> WaitTime: 600
>> Context: principal_in
>> Extension: 014433988789
>> Priority: 1
>> ----------------------
>>
>> I get this messages
>> --------------------------------------
>> Aug  4 11:46:06 WARNING[9420]: chan_unicall.c:1240 unicall_call:
>>        Make Call failed - Blocked
>> Aug  4 11:46:06 NOTICE[9420]: channel.c:1827 __ast_request_and_dial:
>>        Unable to request channel UniCall/g1/1
>>     -- Hungup 'UniCall/11-1'
>> Aug  4 11:46:06 NOTICE[9420]: pbx_spool.c:229 attempt_thread:
>>        Call failed to go through, reason 0
>> --------------------------------------
>>
>> So i can see Unicall channels are configured but blocked (as UC show
>> channel). There is not much info about unicall so i require your
>> advice, what can i do? Where do i look?
>>
>> Also i constantly receive messages
>> Aug  4 11:54:07 WARNING[9402]: chan_unicall.c:2865 handle_uc_event:
>> Unicall/14 event Protocol failure
>>
>> for each one of the 30  (31?) channels.
>>
>> I send you my configs and important command outputs:
>>
>> My zaptel.conf
>> -------------------
>> # MFC/R2 does not normally use CRC4
>> span=1,1,0,cas,hdb3
>> cas=1-15:1101
>> cas=17-31:1101
>> loadzone=mx
>> defaultzone=us
>> -------------------
>>
>> My unicall.conf
>> -------------------
>> [channels]
>> context=incoming
>> usecallerid=yes
>> hidecallerid=no
>> callwaitingcallerid=yes
>> threewaycalling=yes
>> transfer=yes
>> cancallforward=yes
>> callreturn=yes
>> echocancel=yes
>> echocancelwhenbridged=yes
>> echotraining=yes
>> rxgain=0.0
>> txgain=0.0
>> group=1
>> callgroup=1
>> pickupgroup=1
>> immediate=no
>> musiconhold=default
>>
>> protocolclass=mfcr2
>> protocolvariant=mx,10,10
>> protocolend=cpe
>> group = 1
>> channel => 1-15
>> channel => 17-31
>> -------------------
>>
>> "ztcfg -vv" outputs
>> -------------------
>> SPAN 1: CAS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
>>
>> Channel map:
>>
>> Channel 01: CAS / User (Default) (Slaves: 01)
>> Channel 02: CAS / User (Default) (Slaves: 02)
>> (...)
>> Channel 30: CAS / User (Default) (Slaves: 30)
>> Channel 31: CAS / User (Default) (Slaves: 31)
>>
>> 30 channels configured.
>> -------------------
>>
>>
>> "UC show channels" says
>> -------------------
>> Channel Extension  Context         Status     Language   MusicOnHold
>>       1            incoming        Blocked               default
>>       2            incoming        Blocked               default
>>       3            incoming        Blocked               default
>>       4            incoming        Blocked               default
>>       5            incoming        Blocked               default
>>       6            incoming        Blocked               default
>>       7            incoming        Blocked               default
>>       8            incoming        Blocked               default
>>       9            incoming        Blocked               default
>>      10            incoming        Blocked               default
>>      11            incoming        Idle                  default
>>      12            incoming        Idle                  default
>> (...)
>>      31            incoming        Idle                  default
>>
>>
>> ---
>> @-@
>> _______________________________________________
>> Asterisk-Users mailing list
>> Asterisk-Users at lists.digium.com
>> http://lists.digium.com/mailman/listinfo/asterisk-users
>> To UNSUBSCRIBE or update options visit:
>>    http://lists.digium.com/mailman/listinfo/asterisk-users
>>
> 




More information about the asterisk-users mailing list