Zaptel E1 pulse signalling not working

I am trying to get a TE210 card to run E1 with pulse signalling on Asterisk.

The E1 span works fine for outging pulse signalling, but won’t decode incoming pulse digits.

When my setup is reset to DTMF everything works well in both directions.

When set to fxo_ls incoming pulse signalling works well.

It looks as though any incoming pulse dialling is being interpreted as a meaningless jumble of flashes and winks.

My setup is as follows

asterisk-1.2.10
zaptel-1.2.7

zaptel.conf

span=1,0,0,case,hdb3
e&me=1-15,17-31

zapata.conf

immediate=no
signalling=em_e1
pulsedial=yes
channel => 1-15,17-31

In the event on in incoming pulse call i get the following

– Starting simple switch on ‘Zap/1-1’ *** Incoming call starts
Jul 19 06:36:24 DEBUG[10247]: chan_zap.c:4347 __zt_exception: Exception on 22, channel 1 *** First pulse break
Jul 19 06:36:24 DEBUG[10247]: chan_zap.c:3535 zt_handle_event: Got event On hook(1) on channel 1 (index 0)
Jul 19 06:36:24 WARNING[10247]: chan_zap.c:5379 ss_thread: getdtmf on channel 1: Success
Jul 19 06:36:24 WARNING[10247]: chan_zap.c:5379 ss_thread: getdtmf on channel 1: Success
Jul 19 06:36:24 DEBUG[10247]: chan_zap.c:2344 zt_hangup: Hangup: channel: 1 index = 0, normal = 22, callwait = -1, thirdcall = -1
Jul 19 06:36:24 DEBUG[10247]: chan_zap.c:2784 zt_setoption: Set option TDD MODE, value: OFF(0) on Zap/1-1
Jul 19 06:36:24 DEBUG[10247]: chan_zap.c:1374 update_conf: Updated conferencing on 1, with 0 conference users
– Hungup ‘Zap/1-1’
– Starting simple switch on 'Zap/1-1’
Jul 19 06:36:24 DEBUG[10250]: chan_zap.c:4347 __zt_exception: Exception on 22, channel 1
Jul 19 06:36:24 DEBUG[10250]: chan_zap.c:3535 zt_handle_event: Got event Wink/Flash(3) on channel 1 (index 0)
Jul 19 06:36:24 DEBUG[10250]: chan_zap.c:4131 zt_handle_event: Got wink in weird state 4 on channel 1
Jul 19 06:36:24 DEBUG[10250]: chan_zap.c:4347 __zt_exception: Exception on 22, channel 1
Jul 19 06:36:24 DEBUG[10250]: chan_zap.c:3535 zt_handle_event: Got event Wink/Flash(3) on channel 1 (index 0)
Jul 19 06:36:24 DEBUG[10250]: chan_zap.c:4131 zt_handle_event: Got wink in weird state 4 on channel 1
Jul 19 06:36:24 DEBUG[10250]: chan_zap.c:4347 __zt_exception: Exception on 22, channel 1
Jul 19 06:36:24 DEBUG[10250]: chan_zap.c:3535 zt_handle_event: Got event Ring/Answered(2) on channel 1 (index 0)
Jul 19 06:36:25 DEBUG[10250]: chan_zap.c:4347 __zt_exception: Exception on 22, channel 1
Jul 19 06:36:25 DEBUG[10250]: chan_zap.c:3535 zt_handle_event: Got event On hook(1) on channel 1 (index 0)
Jul 19 06:36:25 WARNING[10250]: chan_zap.c:5379 ss_thread: getdtmf on channel 1: Success
Jul 19 06:36:25 WARNING[10250]: chan_zap.c:5379 ss_thread: getdtmf on channel 1: Success
Jul 19 06:36:25 DEBUG[10250]: chan_zap.c:2344 zt_hangup: Hangup: channel: 1 index = 0, normal = 22, callwait = -1, thirdcall = -1
Jul 19 06:36:25 DEBUG[10250]: chan_zap.c:2784 zt_setoption: Set option TDD MODE, value: OFF(0) on Zap/1-1
Jul 19 06:36:25 DEBUG[10250]: chan_zap.c:1374 update_conf: Updated conferencing on 1, with 0 conference users
– Hungup ‘Zap/1-1’
– Starting simple switch on 'Zap/1-1’
Jul 19 06:36:25 DEBUG[10253]: chan_zap.c:4347 __zt_exception: Exception on 22, channel 1

and so on.

Also does anyone know how to elegantly change the idle pattern on an E1 E+M link as I have had to interchange the bits in wct4xxp.c (in t4_rbsbits() for outgoing and t4_check_sigbits() for incoming)

Suggestions welcome!

In your zaptel source, edit the file “zconfig.h”. Uncomment the “#define EMPULSE” line and recompile Zaptel. Make sure to reload the zaptel drivers also. This should do it for you.

Thankyou - that works perfectly.

I did note that that #define EMPULSE is only in the svn version and am curious as to why it isn’t in the releases.

Because it was a new feature and only bug fixed get put into the branch/releases. It will be in the new 1.4 release though.

Hi,
I’m using TE210 card as well. but every time i dial i get the following in use error.


– Executing Hangup(“SIP/1234-090c9308”, “”) in new stack
== Spawn extension (user, 88027393117, 3) exited non-zero on ‘SIP/1234-090c9308’
– Executing Answer(“SIP/1234-090da500”, “”) in new stack
– Executing Dial(“SIP/1234-090da500”, “Zap/g1/614236545877”) in new stack
– Requested transfer capability: 0x00 - SPEECH
– Called g1/614236545877
– Channel 0/20, span 1 got hangup, cause 44
– Forcing restart of channel 0/20 on span 1 since channel reported in use
Aug 25 19:18:57 WARNING[23389]: app_dial.c:722 wait_for_answer: Unable to forward voice
– Hungup ‘Zap/20-1’
== Everyone is busy/congested at this time (1:0/0/1)
– Executing Hangup(“SIP/1234-090da500”, “”) in new stack
== Spawn extension (user, 614236545877, 3) exited non-zero on ‘SIP/1234-090da500’

My zaptel.conf

span=1,1,0,ccs,hdb3,crc4
bchan=1-15,17-31
dchan=16

span=2,1,0,ccs,hdb3,crc4
bchan=32-46,48-62
dchan=47

Global data

loadzone = au
defaultzone=au

and zaptal.com:

signalling=pri_cpe
switchtype=national
pridialplan=unknown
prilocaldialplan=unknown

group=1
context=incoming
channel =>1-15
channel =>17-31

i have spent lot time on it could not figure it out. Also does not work for incoming calls.