simulating a modem transaction...
Hello everybody, Here is my issue. I need to simulate a modem transaction in C. It's a V.21 modem in 200 bits/s. This modem dial a number and waits for an "request to send" sent by the reciever. This is where I have to simulate a modem. The "request to send" is composed of a 2100 Hz tone for 2,4 secondes and 32 alternations of two tones : 1650 Hz and 1850 Hz, 15 ms each. In my idea, streamFile() function seams to be the good mean. The real issue is that when those tones are sent, the transmeter will send a "message" which is 16 digits in V.21 mode. 8 data bits, no parity, 2 stop bits. 200 bits/s means that each tone is 5 ms. 1180 Hz is a "1" and 980 is a "0". So, I need to get those 16 digits messages from tones back into numbers. So I need a way to listen the signals and analyse them and this is where I don't know how to do it. Maybe, I have to create a module into freeswitch and here also I need an help to do it. Thanks for your attention. Tony BECQ -- View this message in context: http://old.nabble.com/simulating-a-modem-transaction...-tp34260552p34260552.... Sent from the Freeswitch-users mailing list archive at Nabble.com.
On 08/06/2012 06:46 PM, 8hector8 wrote:
Hello everybody,
Here is my issue. I need to simulate a modem transaction in C. It's a V.21 modem in 200 bits/s. This modem dial a number and waits for an "request to send" sent by the reciever. This is where I have to simulate a modem. The "request to send" is composed of a 2100 Hz tone for 2,4 secondes and 32 alternations of two tones : 1650 Hz and 1850 Hz, 15 ms each. In my idea, streamFile() function seams to be the good mean.
The real issue is that when those tones are sent, the transmeter will send a "message" which is 16 digits in V.21 mode. 8 data bits, no parity, 2 stop bits. 200 bits/s means that each tone is 5 ms. 1180 Hz is a "1" and 980 is a "0".
So, I need to get those 16 digits messages from tones back into numbers. So I need a way to listen the signals and analyse them and this is where I don't know how to do it.
Maybe, I have to create a module into freeswitch and here also I need an help to do it.
Thanks for your attention.
Tony BECQ The V.21 modem in spandsp can easily be modified to work at 200bps. There are setups in there for 110bps and 300bps. Just add another table entry to 200bps. Wrap that in some endpoint code, rather like the FAX modem stuff, and you're pretty much there.
Steve
Hi all, I am try to realize simple lua event socket script to check rtmp mod events. But found some issue according to rtmp events - for subclass rtmp::register we can get 'USER' variable, but for subclass rtmp::unregister there is no variable USER and some others. Please explain how to get user name on rtmp::unregister event. Dumps for all subclases are below. Event-Name: CUSTOM Core-UUID: 211bfd74-e09c-11e1-b583-492137a6e73f FreeSWITCH-Hostname: fs-flashphone.XXX.net FreeSWITCH-Switchname: fs-flashphone.XXX.net FreeSWITCH-IPv4: 193.158.000.104 FreeSWITCH-IPv6: %3A%3A1 Event-Date-Local: 2012-08-07%2018%3A40%3A56 Event-Date-GMT: Tue,%2007%20Aug%202012%2014%3A40%3A56%20GMT Event-Date-Timestamp: 1344350456515761 Event-Calling-File: mod_rtmp.c Event-Calling-Function: rtmp_add_registration Event-Calling-Line-Number: 1045 RTMP-Session-ID: 235bae22-e09c-11e1-b587-492137a6e73f RTMP-Flash-Version: WIN%2011,3,300,268 RTMP-SWF-URL: http%3A//193.158.000.104/flash/freeswitch.swf RTMP-TC-URL: rtmp%3A//193.158.000.104 RTMP-Page-URL: http%3A//193.158.000.104/flash/freeswitch.html RTMP-Profile: default Network-Port: 3896 Network-IP: 92.116.000.140 RTMP-Profile: default User: test04 Domain: 193.158.000.104 Event-Name: CUSTOM Core-UUID: 211bfd74-e09c-11e1-b583-492137a6e73f FreeSWITCH-Hostname: fs-flashphone.XXX.net FreeSWITCH-Switchname: fs-flashphone.XXX.net FreeSWITCH-IPv4: 193.158.000.104 FreeSWITCH-IPv6: %3A%3A1 Event-Date-Local: 2012-08-07%2018%3A41%3A24 Event-Date-GMT: Tue,%2007%20Aug%202012%2014%3A41%3A24%20GMT Event-Date-Timestamp: 1344350484383919 Event-Calling-File: mod_rtmp.c Event-Calling-Function: rtmp_clear_reg_auth Event-Calling-Line-Number: 1076 RTMP-Session-ID: 235bae22-e09c-11e1-b587-492137a6e73f RTMP-Flash-Version: WIN%2011,3,300,268 RTMP-SWF-URL: http%3A//193.158.000.104/flash/freeswitch.swf RTMP-TC-URL: rtmp%3A//193.158.000.104 RTMP-Page-URL: http%3A//193.158.000.104/flash/freeswitch.html RTMP-Profile: default Network-Port: 3896 Network-IP: 92.116.000.140 RTMP-Profile: default -- Best Regards, Vadim F.
participants (3)
-
8hector8
-
Steve Underwood
-
vaad.fabi@gmail.com