Hello Steve, Thank you for your quick response. I appreciate the information provided. You stopped me from running in the wrong direction. I got you that way that it is impossible, if I'm not going to write another mod_erlang_endpoint. The session handling for the other Protocol is as simple and I thought I can just tell Freeswitch to handle the Sip session. The only missing thing was to get the non SIP media data into Freeswitch (attached to the call, what would probably be exactly what the new endpoint would have to do) by using the rtp stack. regards, Max Am Montag, den 18.07.2011, 17:06 +0100 schrieb Steven Ayre:
Ordinarily endpoint modules implement a signalling endpoint. They register a dialstring prefix and handlers for generic call states. The either handle media themselves (eg mod_skypopen) or use the freeswitch rtp stack (mod_sofia). The freeswitch core handles all the interoperation between any combination of protocols between modules using this endpoint interface.
mod_erlang_event doesn't support that interface. It sounds to me like you would want to create a new mod_erlang_endpoint module implementing that interface written in erlang. Since sessions require certain callbacks for the call states and for reading/writing media you would need to implement that interface as its out of the scope of the events subsystem.
FreeSWITCH would then handle all calls through the dialplan completely irrespective of which protocol is being used to receive the call (though channel variables will let you see which and do module-specific stuff) and let you bridge to any of the protocols freeswitch supports.
-Steve
On 18 July 2011 14:24, max <sip98765@googlemail.com> wrote:
Hello,
I want to write a quick and dirty extension as a prove of concept for Freeswitch translating SIP into another protocol(e.g. proprietary RUF XML-RTP for calls). For that I chose to use mod_erlang_event to handle the handshake and the other standards server. The media should be handled completely by Freeswitch. Please see the attached picture. The focus on this project is to get used to Erlang as well as to Freeswitch.
To the problem: While creating an outgoing media channel via Erlang to the non SIP I got stuck. Can I use originate in that context and if yes, how? If no, is there any other command?
Thank you, Max
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org