[Freeswitch-dev] Howto create a new session

Achim Stamm stamm at lyth.de
Thu Jul 29 00:37:49 PDT 2010


Hi,

Thanks. I have used switch_ivr_originate for creating a new session 
(here: peerSession):

First step is make outbound call without Caller Session:
switch_ivr_originate(NULL,peerSession,cause,"user/1010 at 192.168"....);

Second step is transfer peerSession to an extension in Dialplan doing 
the while-loop (read and write frames):
switch_core_session_execute_exten(peerSession,"Test","XML","default");

regards


Achim Stamm

Anthony Minessale schrieb:
> switch_ivr_originate
>
> On Tue, Jul 27, 2010 at 4:24 AM, Achim Stamm <stamm at lyth.de 
> <mailto:stamm at lyth.de>> wrote:
>
>     Hello!
>
>     I have following problem:
>
>     I want to create a new session and than I want
>     call
>     switch_core_session_execute_exten(newsession,"Test","XML","default");
>
>     How can i create a new session ?
>
>     Can I create a new session with (or switch_core_session_request(...)):
>
>     const char* extUuid;
>     switch_core_session_t * extSession = switch_core_session_request_uuid(
>        session->endpoint_interface,
>        SWITCH_CALL_DIRECTION_OUTBOUND,
>        switch_core_session_get_pool(session),
>        extUuid);
>
>     I get a compile error on first parameter.
>     How can I get the endpoint_interface of my session ?
>
>     Regards
>
>     Achim Stamm
>
>     --
>     Achim Stamm, Dipl.-Inform. (FH)
>
>
>     Lyncker & Theis GmbH
>     Wilhelmstr. 16
>     65185 Wiesbaden
>     Germany
>
>     Fon +49 611/9006951
>     Fax +49 611/9406125
>
>
>     Handelsregister: HRB 23156 Amtsgericht Wiesbaden
>     Steuernummer: 04323897052
>     USt-IdNr.: DE255806399
>
>     Geschäftsführer:
>     Filip Lyncker,
>     Armin Theis
>
>
>     _______________________________________________
>     FreeSWITCH-dev mailing list
>     FreeSWITCH-dev at lists.freeswitch.org
>     <mailto:FreeSWITCH-dev at lists.freeswitch.org>
>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
>     http://www.freeswitch.org
>
>
>
>
> -- 
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
> Twitter: http://twitter.com/FreeSWITCH_wire
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com 
> <mailto:MSN%3Aanthony_minessale at hotmail.com>
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com 
> <mailto:PAYPAL%3Aanthony.minessale at gmail.com>
> IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org 
> <mailto:sip%3A888 at conference.freeswitch.org>
> googletalk:conf+888 at conference.freeswitch.org 
> <mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org>
> pstn:+19193869900
> ------------------------------------------------------------------------
>
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>   


-- 
Achim Stamm, Dipl.-Inform. (FH)


Lyncker & Theis GmbH
Wilhelmstr. 16
65185 Wiesbaden
Germany

Fon +49 611/9006951
Fax +49 611/9406125


Handelsregister: HRB 23156 Amtsgericht Wiesbaden
Steuernummer: 04323897052
USt-IdNr.: DE255806399

Geschäftsführer:
Filip Lyncker,
Armin Theis 




More information about the FreeSWITCH-dev mailing list