[Freeswitch-dev] Openzap and CLIP

François Legal devel at thom.fr.eu.org
Fri Feb 5 08:18:02 PST 2010


I'm back on this. 

I could take samples of what is sent by my
carrier as CLIP and what is sent by my FXS port as CLIP, and this is very

The modulation to be sent out of FXS seem to be correctly
built, but this seem to never get out. 

By further checking what could
happen, I could see that for FSK/DTMF/... the data is written to some
dedicated buffer (fsk_buffer/...) using the zap_buffer_write function. 

continued to see what was done with this fsk_buffer, and surprisingly, it
seems that nothing is done. I could find the beginning of something in

these lines commented out : 

 if ((zchan->dtmf_buffer &&
zap_buffer_inuse(zchan->dtmf_buffer)) || (zchan->fsk_buffer &

//memset(frame, 0, len);
 //zap_channel_write(zchan, frame, sizeof(frame),


so that seem to be related to fsk_buffer (by the way
sending dtmf tones out of FXS does not seem to work either, tried with
send_dtmf application in diaplan), but I don't really get what would be
done here (if uncommented) except sending null values to that function,
which would (I found this function in zap_io.c) lead to doing nothing as
this function verifies the condition zchan->fsk_buffer & padding-left: 5px;
margin-left: 5px; width: 100%;">
  On Jan 27, 2010, at 3:48 AM, François
Legal wrote: 

So I did modify mod_openzap to provide the od trace command
to the cli. I started trying to parse the incoming clip, but I have to do
it again as the incoming signal is saturated so I can't see anything

I'll post my results whenever I get something.  

Shall I
send the modified mod_openzap.c to the list ?   We should get a bug opened
on this issue on http://jira.freeswitch.org [1]

About the difference on
the modulation settings for CLIP, could anybody suggest some way to have it
configurable by files ?   We should add some config option based on country
or CLIP type to specify this. Lets get it working and we can think how to
configure once we have that.  Mike   


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20100205/bee7392f/attachment.html 

More information about the FreeSWITCH-dev mailing list