<div class="gmail_quote">On Mon, Dec 28, 2009 at 2:42 AM, Stelios Koroneos <span dir="ltr"><<a href="mailto:skoroneos@digital-opsis.com">skoroneos@digital-opsis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
First of all, Merry Christmas and happy holidays !<br>
<br>
I am facing a rather strange issue with the CallerID generated by an FCT<br>
device (GSM gateway) that is connected to zap channel (Digium 4 port )<br>
on * using 1.2.31 and zaptel 1.2.27<br>
The device is sending the callerid as dtmf between the 1st and 2nd ring<br>
but i get the following error<br>
<br>
-- Starting simple switch on 'Zap/1-1'<br>
Dec 28 00:07:29 ERROR[3896]: callerid.c:276 callerid_feed: fsk_serie<br>
made mylen < 0 (-1)<br>
Dec 28 00:07:29 WARNING[3896]: chan_zap.c:6627 ss_thread: CallerID feed<br>
failed: Success<br>
Dec 28 00:07:29 WARNING[3896]: chan_zap.c:6671 ss_thread: CallerID<br>
returned with error on channel 'Zap/1-1'<br>
-- Executing Wait("Zap/1-1", "5") in new stack<br>
Dec 28 00:07:29 DEBUG[3896]: chan_zap.c:4001 zt_handle_dtmfup: DTMF<br>
digit: 9 on Zap/1-1<br>
Dec 28 00:07:29 DEBUG[3896]: chan_zap.c:4001 zt_handle_dtmfup: DTMF<br>
digit: 1 on Zap/1-1<br>
Dec 28 00:07:29 DEBUG[3896]: chan_zap.c:4001 zt_handle_dtmfup: DTMF<br>
digit: 0 on Zap/1-1<br>
Dec 28 00:07:29 DEBUG[3896]: chan_zap.c:4001 zt_handle_dtmfup: DTMF<br>
digit: 5 on Zap/1-1<br>
Dec 28 00:07:31 DEBUG[3896]: chan_zap.c:4907 __zt_exception: Exception<br>
on 14, channel 1<br>
Dec 28 00:07:31 DEBUG[3896]: chan_zap.c:4092 zt_handle_event: Got event<br>
Ring Begin(18) on channel 1 (index 0)<br>
Dec 28 00:07:32 DEBUG[3896]: chan_zap.c:4907 __zt_exception: Exception<br>
on 14, channel 1<br>
Dec 28 00:07:32 DEBUG[3896]: chan_zap.c:4092 zt_handle_event: Got event<br>
Ring/Answered(2) on channel 1 (index 0)<br>
Dec 28 00:07:32 DEBUG[3896]: chan_zap.c:4441 zt_handle_event: Setting<br>
IDLE polarity due to ring. Old polarity was 0<br>
Dec 28 00:07:34 DEBUG[3896]: pbx.c:1548<br>
pbx_substitute_variables_helper_full: Function result is '"" <>'<br>
-- Executing NoOp("Zap/1-1", "CALLERID="" <>") in new stack<br>
Dec 28 00:07:36 DEBUG[3896]: chan_zap.c:4907 __zt_exception: Exception<br>
on 14, channel 1<br>
Dec 28 00:07:36 DEBUG[3896]: chan_zap.c:4092 zt_handle_event: Got event<br>
Ring Begin(18) on channel 1 (index 0)<br>
<br>
<br>
As you can see * does capture part of the callerid (which is 2114019105<br>
in this case) but misses the rest of it (last 4 digits in this case).<br>
I captured (using ztmonitor) the stream and got a better view of what is<br>
send as caller id.<br>
<br>
After the 1st ring ends, there is a 640ms delay before the dtmf starts.<br>
Dtmf pulses have a length of 84ms and there is inter-digit delay of<br>
120ms<br>
<br>
Some screen captures are here<br>
<a href="http://twitxl.com/storage/aaaato/full-15304865542172019340.png" target="_blank">http://twitxl.com/storage/aaaato/full-15304865542172019340.png</a><br>
<a href="http://twitxl.com/storage/aaaatp/full-392697349669633878.png" target="_blank">http://twitxl.com/storage/aaaatp/full-392697349669633878.png</a><br>
<a href="http://twitxl.com/storage/aaaatq/full-33874008803478352278.png" target="_blank">http://twitxl.com/storage/aaaatq/full-33874008803478352278.png</a><br>
<br>
(The actual stream is available if someone wants is also)<br>
<br>
The same device if connected to a classical pbx gets the callerid<br>
correctly but if connected to normal analog phones, there is a 50-50<br>
chance the callerid would work,depending on the maker of the phone.<br>
<br>
My first take on this, is that the device takes too long to send the<br>
caller id and * callerid routine "times out".<br>
(That would also explain why the clasic pbx that uses hardware dtmf<br>
detection gets the callerid right)<br>
<br>
The question is, if there is a way to extend the time asterisk waits for<br>
the callerid without effecting the other zap lines that are using fsk?<br>
<br>
Also is there a standard for dtmf callerid ?<br>
>From what i have read, there are several standards regarding dtmf<br>
callerid depending on country, so what's the most common one ?<br>
<br>
If something like that exists i can send it to the device maker and ask<br>
them to comply with it<br>
<br>
<br>
Thanks for your time.<br>
<br>
--<br>
Stelios S. Koroneos<br><br></blockquote><div>This sounds a lot like an asterisk-users list type of problem. I find it odd that you don't get any of the digits at all in the noop. Make sure you have cidsignalling set to dtmf in zapata.conf for that line. You should pursue this further on the asterisk-users list.<br>
</div></div>