Hi, i have a javscript script that was working with Freeswitch 1.0. The only issue i had is that outgoing dialing via Gafachi was not transmitting the caller ID. Then I upgraded to the current trunk version (FreeSwitch Version 1.0.trunk (9205)). But now I'm not able to place calls anymore. The error message i get is the following: ===== 2008-07-29 23:21:11 [ERR] switch_core_session.c:249 switch_core_session_outgoing_channel() Could not locate channel type 2008-07-29 23:21:11 [ERR] switch_ivr_originate.c:926 switch_ivr_originate() Cannot create outgoing channel of type [] cause: [CHAN_NOT_IMPLEMENTED] 2008-07-29 23:21:11 [WARNING] mod_spidermonkey.c:2923 session_originate() Cannot Create Outgoing Channel! [/sofia/gateway/sip.gafachi.com/14155465584] === The exact same script is able to place outbound calls via Les.net. And here is what i do in the script: ====== new_session2 = new Session(); new_session2.setCallerData("caller_number_number", caller_number); new_session2.originate(null, '/sofia/gateway/sip.gafachi.com/1'+callee_number, 15); new_session2.setAutoHangup(true); ======= Any idea? Thanks, Klaus. -- GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion! http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/616919...
Why do you have a leading / before sofia? Mike On Jul 29, 2008, at 11:30 PM, "Klaus Teller" <klaus.teller@gmx.net> wrote:
Hi,
i have a javscript script that was working with Freeswitch 1.0. The only issue i had is that outgoing dialing via Gafachi was not transmitting the caller ID. Then I upgraded to the current trunk version (FreeSwitch Version 1.0.trunk (9205)). But now I'm not able to place calls anymore.
The error message i get is the following:
===== 2008-07-29 23:21:11 [ERR] switch_core_session.c:249 switch_core_session_outgoing_channel() Could not locate channel type 2008-07-29 23:21:11 [ERR] switch_ivr_originate.c:926 switch_ivr_originate() Cannot create outgoing channel of type [] cause: [CHAN_NOT_IMPLEMENTED] 2008-07-29 23:21:11 [WARNING] mod_spidermonkey.c:2923 session_originate() Cannot Create Outgoing Channel! [/sofia/gateway/ sip.gafachi.com/14155465584] ===
The exact same script is able to place outbound calls via Les.net. And here is what i do in the script:
====== new_session2 = new Session(); new_session2.setCallerData("caller_number_number", caller_number); new_session2.originate(null, '/sofia/gateway/sip.gafachi.com/ 1'+callee_number, 15); new_session2.setAutoHangup(true); =======
Any idea?
Thanks, Klaus.
-- GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pas try Passion! http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/616919...
_______________________________________________ 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
Thanks, that was the problem. But then now, I'm still having the problem with the caller ID not being sent. I set the following call data properties: new_session1.setCallerData("caller_number_number", caller_number); new_session1.setCallerData("effective_caller_id_number", caller_number); new_session1.setCallerData("effective_caller_id_name", 'Klaus Teller'); But this doesn't seem to help. Any idea? Thanks again. klaus. -------- Original-Nachricht --------
Datum: Tue, 29 Jul 2008 23:40:14 -0400 Von: Michael Jerris <mike@jerris.com> An: "freeswitch-users@lists.freeswitch.org" <freeswitch-users@lists.freeswitch.org> Betreff: Re: [Freeswitch-users] Gafachi Again
Why do you have a leading / before sofia?
Mike
On Jul 29, 2008, at 11:30 PM, "Klaus Teller" <klaus.teller@gmx.net> wrote:
Hi,
i have a javscript script that was working with Freeswitch 1.0. The only issue i had is that outgoing dialing via Gafachi was not transmitting the caller ID. Then I upgraded to the current trunk version (FreeSwitch Version 1.0.trunk (9205)). But now I'm not able to place calls anymore.
The error message i get is the following:
===== 2008-07-29 23:21:11 [ERR] switch_core_session.c:249 switch_core_session_outgoing_channel() Could not locate channel type 2008-07-29 23:21:11 [ERR] switch_ivr_originate.c:926 switch_ivr_originate() Cannot create outgoing channel of type [] cause: [CHAN_NOT_IMPLEMENTED] 2008-07-29 23:21:11 [WARNING] mod_spidermonkey.c:2923 session_originate() Cannot Create Outgoing Channel! [/sofia/gateway/ sip.gafachi.com/14155465584] ===
The exact same script is able to place outbound calls via Les.net. And here is what i do in the script:
====== new_session2 = new Session(); new_session2.setCallerData("caller_number_number", caller_number); new_session2.originate(null, '/sofia/gateway/sip.gafachi.com/ 1'+callee_number, 15); new_session2.setAutoHangup(true); =======
Any idea?
Thanks, Klaus.
-- GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pas try Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/616919...
_______________________________________________ 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
_______________________________________________ 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
-- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx
Just do setVariable on the two effective variable names, and omit the first of those 3. Mike On Jul 29, 2008, at 11:50 PM, "Klaus Teller" <klaus.teller@gmx.net> wrote:
Thanks, that was the problem. But then now, I'm still having the problem with the caller ID not being sent. I set the following call data properties:
new_session1.setCallerData("caller_number_number", caller_number); new_session1.setCallerData("effective_caller_id_number", caller_number); new_session1.setCallerData("effective_caller_id_name", 'Klaus Teller');
But this doesn't seem to help.
Any idea?
Thanks again.
klaus.
-------- Original-Nachricht --------
Datum: Tue, 29 Jul 2008 23:40:14 -0400 Von: Michael Jerris <mike@jerris.com> An: "freeswitch-users@lists.freeswitch.org" <freeswitch-users@lists.freeswitch.org
Betreff: Re: [Freeswitch-users] Gafachi Again
Why do you have a leading / before sofia?
Mike
On Jul 29, 2008, at 11:30 PM, "Klaus Teller" <klaus.teller@gmx.net> wrote:
Hi,
i have a javscript script that was working with Freeswitch 1.0. The only issue i had is that outgoing dialing via Gafachi was not transmitting the caller ID. Then I upgraded to the current trunk version (FreeSwitch Version 1.0.trunk (9205)). But now I'm not able to place calls anymore.
The error message i get is the following:
===== 2008-07-29 23:21:11 [ERR] switch_core_session.c:249 switch_core_session_outgoing_channel() Could not locate channel type 2008-07-29 23:21:11 [ERR] switch_ivr_originate.c:926 switch_ivr_originate() Cannot create outgoing channel of type [] cause: [CHAN_NOT_IMPLEMENTED] 2008-07-29 23:21:11 [WARNING] mod_spidermonkey.c:2923 session_originate() Cannot Create Outgoing Channel! [/sofia/gateway/ sip.gafachi.com/14155465584] ===
The exact same script is able to place outbound calls via Les.net. And here is what i do in the script:
====== new_session2 = new Session(); new_session2.setCallerData("caller_number_number", caller_number); new_session2.originate(null, '/sofia/gateway/sip.gafachi.com/ 1'+callee_number, 15); new_session2.setAutoHangup(true); =======
Any idea?
Thanks, Klaus.
-- GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pas try Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/616919...
_______________________________________________ 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
_______________________________________________ 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
-- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx
_______________________________________________ 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
I just did the following: new_session1 = new Session(); new_session1.originate(new_session2, 'sofia/gateway/sip.gafachi.com/1'+callee_number, 15); new_session1.setVariable("effective_caller_id_number", caller_number); new_session1.setVariable("effective_caller_id_name", 'Klaus Teller'); As a result, I have the callee number being shown on its own display as caller. That is on the called device the number callee_number is being displayed instead of caller_number. What am i doing wrong? Klaus. -------- Original-Nachricht --------
Datum: Tue, 29 Jul 2008 23:55:18 -0400 Von: Michael Jerris <mike@jerris.com> An: "freeswitch-users@lists.freeswitch.org" <freeswitch-users@lists.freeswitch.org> Betreff: Re: [Freeswitch-users] Gafachi Again
Just do setVariable on the two effective variable names, and omit the first of those 3.
Mike
On Jul 29, 2008, at 11:50 PM, "Klaus Teller" <klaus.teller@gmx.net> wrote:
Thanks, that was the problem. But then now, I'm still having the problem with the caller ID not being sent. I set the following call data properties:
new_session1.setCallerData("caller_number_number", caller_number); new_session1.setCallerData("effective_caller_id_number", caller_number); new_session1.setCallerData("effective_caller_id_name", 'Klaus Teller');
But this doesn't seem to help.
Any idea?
Thanks again.
klaus.
-------- Original-Nachricht --------
Datum: Tue, 29 Jul 2008 23:40:14 -0400 Von: Michael Jerris <mike@jerris.com> An: "freeswitch-users@lists.freeswitch.org" <freeswitch-users@lists.freeswitch.org
Betreff: Re: [Freeswitch-users] Gafachi Again
Why do you have a leading / before sofia?
Mike
On Jul 29, 2008, at 11:30 PM, "Klaus Teller" <klaus.teller@gmx.net> wrote:
Hi,
i have a javscript script that was working with Freeswitch 1.0. The only issue i had is that outgoing dialing via Gafachi was not transmitting the caller ID. Then I upgraded to the current trunk version (FreeSwitch Version 1.0.trunk (9205)). But now I'm not able to place calls anymore.
The error message i get is the following:
===== 2008-07-29 23:21:11 [ERR] switch_core_session.c:249 switch_core_session_outgoing_channel() Could not locate channel type 2008-07-29 23:21:11 [ERR] switch_ivr_originate.c:926 switch_ivr_originate() Cannot create outgoing channel of type [] cause: [CHAN_NOT_IMPLEMENTED] 2008-07-29 23:21:11 [WARNING] mod_spidermonkey.c:2923 session_originate() Cannot Create Outgoing Channel! [/sofia/gateway/ sip.gafachi.com/14155465584] ===
The exact same script is able to place outbound calls via Les.net. And here is what i do in the script:
====== new_session2 = new Session(); new_session2.setCallerData("caller_number_number", caller_number); new_session2.originate(null, '/sofia/gateway/sip.gafachi.com/ 1'+callee_number, 15); new_session2.setAutoHangup(true); =======
Any idea?
Thanks, Klaus.
-- GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pas try Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/616919...
_______________________________________________ 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
_______________________________________________ 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
-- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx
_______________________________________________ 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
_______________________________________________ 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
-- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
This is clearly a case where you're creating an A leg. Let me lay out some info here that will clear this up... origination_caller_id_name / origination_caller_id_number - These to variables are used to set the caller_id info on a leg that you are creating in this case the A-Leg While the effective_caller_id_name / effective_caller_id_number are used to set the caller id for any legs that are born from the A-leg, these values are used on the B-leg's caller_id_name/number values. /b On Jul 29, 2008, at 11:21 PM, Klaus Teller wrote:
I just did the following:
new_session1 = new Session(); new_session1.originate(new_session2, 'sofia/gateway/sip.gafachi.com/ 1'+callee_number, 15); new_session1.setVariable("effective_caller_id_number", caller_number); new_session1.setVariable("effective_caller_id_name", 'Klaus Teller');
As a result, I have the callee number being shown on its own display as caller. That is on the called device the number callee_number is being displayed instead of caller_number.
What am i doing wrong?
Klaus.
Brian West sip:brian@freeswitch.org
OK, Let me give you the full picture; here is what i do, but it still doesn't work. baiscally, i just want to dial two users and connect them to each other. Each side seeing the number of the other side as caller id. new_session2 = new Session(); new_session2.originate(null, 'sofia/gateway/sip.gafachi.com/1'+caller_number, 15); new_session2.setVariable("origination_caller_id_number", callee_number); new_session2.setVariable("origination_caller_id_name", 'Klaus Teller'); new_session2.waitForAnswer(10000); new_session1 = new Session(); new_session1.originate(new_session2, 'sofia/gateway/sip.gafachi.com/1'+callee_number, 15); new_session1.setVariable("effctive_caller_id_number", caller_number); new_session1.setVariable("effective_caller_id_name", 'Klaus Teller'); I also tried effective on both sides as well as origibation on both sides. Klaus. -------- Original-Nachricht --------
Datum: Tue, 29 Jul 2008 23:36:10 -0500 Von: Brian West <brian@freeswitch.org> An: freeswitch-users@lists.freeswitch.org Betreff: Re: [Freeswitch-users] Gafachi Again
This is clearly a case where you're creating an A leg. Let me lay out some info here that will clear this up...
origination_caller_id_name / origination_caller_id_number - These to variables are used to set the caller_id info on a leg that you are creating in this case the A-Leg While the effective_caller_id_name / effective_caller_id_number are used to set the caller id for any legs that are born from the A-leg, these values are used on the B-leg's caller_id_name/number values.
/b
On Jul 29, 2008, at 11:21 PM, Klaus Teller wrote:
I just did the following:
new_session1 = new Session(); new_session1.originate(new_session2, 'sofia/gateway/sip.gafachi.com/ 1'+callee_number, 15); new_session1.setVariable("effective_caller_id_number", caller_number); new_session1.setVariable("effective_caller_id_name", 'Klaus Teller');
As a result, I have the callee number being shown on its own display as caller. That is on the called device the number callee_number is being displayed instead of caller_number.
What am i doing wrong?
Klaus.
Brian West sip:brian@freeswitch.org
_______________________________________________ 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
-- GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion! http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/616919...
Hi Klaus, You might want to try setting the variables before originating the call - the 'originate' will cause the call setup message to be sent. --Dave
OK, Let me give you the full picture; here is what i do, but it still doesn't work. baiscally, i just want to dial two users and connect them to each other. Each side seeing the number of the other side as caller id.
new_session2 = new Session(); new_session2.originate(null, 'sofia/gateway/sip.gafachi.com/1'+caller_number, 15);
new_session2.setVariable("origination_caller_id_number", callee_number); new_session2.setVariable("origination_caller_id_name", 'Klaus Teller');
new_session2.waitForAnswer(10000);
new_session1 = new Session(); new_session1.originate(new_session2, 'sofia/gateway/sip.gafachi.com/1'+callee_number, 15); new_session1.setVariable("effctive_caller_id_number", caller_number); new_session1.setVariable("effective_caller_id_name", 'Klaus Teller');
I also tried effective on both sides as well as origibation on both sides.
Klaus.
-------- Original-Nachricht --------
Datum: Tue, 29 Jul 2008 23:36:10 -0500 Von: Brian West <brian@freeswitch.org> An: freeswitch-users@lists.freeswitch.org Betreff: Re: [Freeswitch-users] Gafachi Again
This is clearly a case where you're creating an A leg. Let me lay out some info here that will clear this up...
origination_caller_id_name / origination_caller_id_number - These to variables are used to set the caller_id info on a leg that you are creating in this case the A-Leg While the effective_caller_id_name / effective_caller_id_number are used to set the caller id for any legs that are born from the A-leg, these values are used on the B-leg's caller_id_name/number values.
/b
On Jul 29, 2008, at 11:21 PM, Klaus Teller wrote:
I just did the following:
new_session1 = new Session(); new_session1.originate(new_session2, 'sofia/gateway/sip.gafachi.com/ 1'+callee_number, 15); new_session1.setVariable("effective_caller_id_number", caller_number); new_session1.setVariable("effective_caller_id_name", 'Klaus Teller');
As a result, I have the callee number being shown on its own display as caller. That is on the called device the number callee_number is being displayed instead of caller_number.
What am i doing wrong?
Klaus.
Brian West sip:brian@freeswitch.org
_______________________________________________ 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
-- David Knell, Director, 3C Limited T: 020 8114 8901 F: 020 3002 7257 M: 001 415 630 3031 http://www.3c.co.uk
Thanks Dave, This however produces following error message: ============= 2008-07-30 01:23:03 [ERR] inline:1 mod_spidermonkey() You must call the session.originate method before calling this method! ============ Klaus. -------- Original-Nachricht --------
Datum: Wed, 30 Jul 2008 06:20:08 +0100 Von: David Knell <dave@3c.co.uk> An: freeswitch-users@lists.freeswitch.org Betreff: Re: [Freeswitch-users] Gafachi Again
Hi Klaus,
You might want to try setting the variables before originating the call - the 'originate' will cause the call setup message to be sent.
--Dave
OK, Let me give you the full picture; here is what i do, but it still doesn't work. baiscally, i just want to dial two users and connect them to each other. Each side seeing the number of the other side as caller id.
new_session2 = new Session(); new_session2.originate(null, 'sofia/gateway/sip.gafachi.com/1'+caller_number, 15);
new_session2.setVariable("origination_caller_id_number", callee_number); new_session2.setVariable("origination_caller_id_name", 'Klaus Teller');
new_session2.waitForAnswer(10000);
new_session1 = new Session(); new_session1.originate(new_session2, 'sofia/gateway/sip.gafachi.com/1'+callee_number, 15); new_session1.setVariable("effctive_caller_id_number", caller_number); new_session1.setVariable("effective_caller_id_name", 'Klaus Teller');
I also tried effective on both sides as well as origibation on both sides.
Klaus.
-------- Original-Nachricht --------
Datum: Tue, 29 Jul 2008 23:36:10 -0500 Von: Brian West <brian@freeswitch.org> An: freeswitch-users@lists.freeswitch.org Betreff: Re: [Freeswitch-users] Gafachi Again
This is clearly a case where you're creating an A leg. Let me lay out some info here that will clear this up...
origination_caller_id_name / origination_caller_id_number - These to variables are used to set the caller_id info on a leg that you are creating in this case the A-Leg While the effective_caller_id_name / effective_caller_id_number are used to set the caller id for any legs that are born from the A-leg, these values are used on the B-leg's caller_id_name/number values.
/b
On Jul 29, 2008, at 11:21 PM, Klaus Teller wrote:
I just did the following:
new_session1 = new Session(); new_session1.originate(new_session2, 'sofia/gateway/sip.gafachi.com/ 1'+callee_number, 15); new_session1.setVariable("effective_caller_id_number", caller_number); new_session1.setVariable("effective_caller_id_name", 'Klaus Teller');
As a result, I have the callee number being shown on its own display as caller. That is on the called device the number callee_number is being displayed instead of caller_number.
What am i doing wrong?
Klaus.
Brian West sip:brian@freeswitch.org
_______________________________________________ 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
-- David Knell, Director, 3C Limited T: 020 8114 8901 F: 020 3002 7257 M: 001 415 630 3031 http://www.3c.co.uk
-- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
you can set the variables on the originate line with {} , see http://wiki.freeswitch.org/wiki/Freeswitch_IVR_Originate#Answer_confirmation second example. Mike On Jul 30, 2008, at 1:24 AM, Klaus Teller wrote:
Thanks Dave,
This however produces following error message:
============= 2008-07-30 01:23:03 [ERR] inline:1 mod_spidermonkey() You must call the session.originate method before calling this method! ============
Klaus. -------- Original-Nachricht --------
Datum: Wed, 30 Jul 2008 06:20:08 +0100 Von: David Knell <dave@3c.co.uk> An: freeswitch-users@lists.freeswitch.org Betreff: Re: [Freeswitch-users] Gafachi Again
Hi Klaus,
You might want to try setting the variables before originating the call - the 'originate' will cause the call setup message to be sent.
--Dave
OK, Let me give you the full picture; here is what i do, but it still doesn't work. baiscally, i just want to dial two users and connect them to each other. Each side seeing the number of the other side as caller id.
new_session2 = new Session(); new_session2.originate(null, 'sofia/gateway/sip.gafachi.com/1'+caller_number, 15);
new_session2.setVariable("origination_caller_id_number", callee_number); new_session2.setVariable("origination_caller_id_name", 'Klaus Teller');
new_session2.waitForAnswer(10000);
new_session1 = new Session(); new_session1.originate(new_session2, 'sofia/gateway/sip.gafachi.com/1'+callee_number, 15); new_session1.setVariable("effctive_caller_id_number", caller_number); new_session1.setVariable("effective_caller_id_name", 'Klaus Teller');
I also tried effective on both sides as well as origibation on both sides.
Klaus.
-------- Original-Nachricht --------
Datum: Tue, 29 Jul 2008 23:36:10 -0500 Von: Brian West <brian@freeswitch.org> An: freeswitch-users@lists.freeswitch.org Betreff: Re: [Freeswitch-users] Gafachi Again
This is clearly a case where you're creating an A leg. Let me lay out some info here that will clear this up...
origination_caller_id_name / origination_caller_id_number - These to variables are used to set the caller_id info on a leg that you are creating in this case the A-Leg While the effective_caller_id_name / effective_caller_id_number are used to set the caller id for any legs that are born from the A- leg, these values are used on the B-leg's caller_id_name/number values.
/b
On Jul 29, 2008, at 11:21 PM, Klaus Teller wrote:
I just did the following:
new_session1 = new Session(); new_session1.originate(new_session2, 'sofia/gateway/ sip.gafachi.com/ 1'+callee_number, 15); new_session1.setVariable("effective_caller_id_number", caller_number); new_session1.setVariable("effective_caller_id_name", 'Klaus Teller');
As a result, I have the callee number being shown on its own display as caller. That is on the called device the number callee_number is being displayed instead of caller_number.
What am i doing wrong?
Klaus.
Brian West sip:brian@freeswitch.org
_______________________________________________ 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
-- David Knell, Director, 3C Limited T: 020 8114 8901 F: 020 3002 7257 M: 001 415 630 3031 http://www.3c.co.uk
-- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
_______________________________________________ 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
I have tried the following without success either: '{origination_caller_id_number='+callee_number+',origination_caller_id_name=Klaus} sofia/gateway/sip.gafachi.com/1'+caller_number, 15); '{effective_caller_id_number='+caller_number+',effective_caller_id_name=Klaus} sofia/gateway/sip.gafachi.com/1'+callee_number, 15); On the first leg A device I get "Unknown Caller" on leg B i get the B's number displayed to its own device. Really confused now. Thanks, Klaus. -------- Original-Nachricht --------
Datum: Wed, 30 Jul 2008 01:56:02 -0400 Von: Michael Jerris <mike@jerris.com> An: freeswitch-users@lists.freeswitch.org Betreff: Re: [Freeswitch-users] Gafachi Again
you can set the variables on the originate line with {} , see http://wiki.freeswitch.org/wiki/Freeswitch_IVR_Originate#Answer_confirmation second example.
Mike
On Jul 30, 2008, at 1:24 AM, Klaus Teller wrote:
Thanks Dave,
This however produces following error message:
============= 2008-07-30 01:23:03 [ERR] inline:1 mod_spidermonkey() You must call the session.originate method before calling this method! ============
Klaus. -------- Original-Nachricht --------
Datum: Wed, 30 Jul 2008 06:20:08 +0100 Von: David Knell <dave@3c.co.uk> An: freeswitch-users@lists.freeswitch.org Betreff: Re: [Freeswitch-users] Gafachi Again
Hi Klaus,
You might want to try setting the variables before originating the call - the 'originate' will cause the call setup message to be sent.
--Dave
OK, Let me give you the full picture; here is what i do, but it still doesn't work. baiscally, i just want to dial two users and connect them to each other. Each side seeing the number of the other side as caller id.
new_session2 = new Session(); new_session2.originate(null, 'sofia/gateway/sip.gafachi.com/1'+caller_number, 15);
new_session2.setVariable("origination_caller_id_number", callee_number); new_session2.setVariable("origination_caller_id_name", 'Klaus Teller');
new_session2.waitForAnswer(10000);
new_session1 = new Session(); new_session1.originate(new_session2, 'sofia/gateway/sip.gafachi.com/1'+callee_number, 15); new_session1.setVariable("effctive_caller_id_number", caller_number); new_session1.setVariable("effective_caller_id_name", 'Klaus Teller');
I also tried effective on both sides as well as origibation on both sides.
Klaus.
-------- Original-Nachricht --------
Datum: Tue, 29 Jul 2008 23:36:10 -0500 Von: Brian West <brian@freeswitch.org> An: freeswitch-users@lists.freeswitch.org Betreff: Re: [Freeswitch-users] Gafachi Again
This is clearly a case where you're creating an A leg. Let me lay out some info here that will clear this up...
origination_caller_id_name / origination_caller_id_number - These to variables are used to set the caller_id info on a leg that you are creating in this case the A-Leg While the effective_caller_id_name / effective_caller_id_number are used to set the caller id for any legs that are born from the A- leg, these values are used on the B-leg's caller_id_name/number values.
/b
On Jul 29, 2008, at 11:21 PM, Klaus Teller wrote:
I just did the following:
new_session1 = new Session(); new_session1.originate(new_session2, 'sofia/gateway/ sip.gafachi.com/ 1'+callee_number, 15); new_session1.setVariable("effective_caller_id_number", caller_number); new_session1.setVariable("effective_caller_id_name", 'Klaus Teller');
As a result, I have the callee number being shown on its own display as caller. That is on the called device the number callee_number is being displayed instead of caller_number.
What am i doing wrong?
Klaus.
Brian West sip:brian@freeswitch.org
_______________________________________________ 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
-- David Knell, Director, 3C Limited T: 020 8114 8901 F: 020 3002 7257 M: 001 415 630 3031 http://www.3c.co.uk
-- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
_______________________________________________ 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
_______________________________________________ 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
-- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
there is no space after the final } and the s in sofia also please avoid the x = new Session(); x.originate() thing. it's much easier to feed a dial string to the Constructor.. var dial_string = "{origination_caller_id_number=2121231234,origination_caller_id_name=fred}sofia/gateway/foo/2125551212" s = new Session(dial_string); you can test dial strings from the CLI with the "originate" command originate {origination_caller_id_number=2121231234,origination_caller_id_name=fred}sofia/gateway/foo/2125551212 9999 to call this dial string and transfer it to 9999 play with that first so you don't have to keep guessing in the script. On Wed, Jul 30, 2008 at 7:39 AM, Klaus Teller <klaus.teller@gmx.net> wrote:
I have tried the following without success either:
'{origination_caller_id_number='+callee_number+',origination_caller_id_name=Klaus} sofia/gateway/sip.gafachi.com/1'+caller_number<http://sip.gafachi.com/1%27+caller_number>, 15);
'{effective_caller_id_number='+caller_number+',effective_caller_id_name=Klaus} sofia/gateway/sip.gafachi.com/1'+callee_number<http://sip.gafachi.com/1%27+callee_number>, 15);
On the first leg A device I get "Unknown Caller" on leg B i get the B's number displayed to its own device.
Really confused now.
Thanks, Klaus.
-------- Original-Nachricht --------
Datum: Wed, 30 Jul 2008 01:56:02 -0400 Von: Michael Jerris <mike@jerris.com> An: freeswitch-users@lists.freeswitch.org Betreff: Re: [Freeswitch-users] Gafachi Again
you can set the variables on the originate line with {} , see
http://wiki.freeswitch.org/wiki/Freeswitch_IVR_Originate#Answer_confirmation
second example.
Mike
On Jul 30, 2008, at 1:24 AM, Klaus Teller wrote:
Thanks Dave,
This however produces following error message:
============= 2008-07-30 01:23:03 [ERR] inline:1 mod_spidermonkey() You must call the session.originate method before calling this method! ============
Klaus. -------- Original-Nachricht --------
Datum: Wed, 30 Jul 2008 06:20:08 +0100 Von: David Knell <dave@3c.co.uk> An: freeswitch-users@lists.freeswitch.org Betreff: Re: [Freeswitch-users] Gafachi Again
Hi Klaus,
You might want to try setting the variables before originating the call - the 'originate' will cause the call setup message to be sent.
--Dave
OK, Let me give you the full picture; here is what i do, but it still doesn't work. baiscally, i just want to dial two users and connect them to each other. Each side seeing the number of the other side as caller id.
new_session2 = new Session(); new_session2.originate(null, 'sofia/gateway/sip.gafachi.com/1'+caller_number<http://sip.gafachi.com/1%27+caller_number>, 15);
new_session2.setVariable("origination_caller_id_number", callee_number); new_session2.setVariable("origination_caller_id_name", 'Klaus Teller');
new_session2.waitForAnswer(10000);
new_session1 = new Session(); new_session1.originate(new_session2, 'sofia/gateway/sip.gafachi.com/1'+callee_number<http://sip.gafachi.com/1%27+callee_number>, 15); new_session1.setVariable("effctive_caller_id_number", caller_number); new_session1.setVariable("effective_caller_id_name", 'Klaus Teller');
I also tried effective on both sides as well as origibation on both sides.
Klaus.
-------- Original-Nachricht --------
Datum: Tue, 29 Jul 2008 23:36:10 -0500 Von: Brian West <brian@freeswitch.org> An: freeswitch-users@lists.freeswitch.org Betreff: Re: [Freeswitch-users] Gafachi Again
This is clearly a case where you're creating an A leg. Let me lay out some info here that will clear this up...
origination_caller_id_name / origination_caller_id_number - These to variables are used to set the caller_id info on a leg that you are creating in this case the A-Leg While the effective_caller_id_name / effective_caller_id_number are used to set the caller id for any legs that are born from the A- leg, these values are used on the B-leg's caller_id_name/number values.
/b
On Jul 29, 2008, at 11:21 PM, Klaus Teller wrote:
> I just did the following: > > new_session1 = new Session(); > new_session1.originate(new_session2, 'sofia/gateway/ > sip.gafachi.com/ > 1'+callee_number, 15); > new_session1.setVariable("effective_caller_id_number", > caller_number); > new_session1.setVariable("effective_caller_id_name", 'Klaus > Teller'); > > As a result, I have the callee number being shown on its own > display > as caller. That is on the called device the number callee_number > is > being displayed instead of caller_number. > > What am i doing wrong? > > Klaus. > Brian West sip:brian@freeswitch.org <sip%3Abrian@freeswitch.org>
_______________________________________________ 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
-- David Knell, Director, 3C Limited T: 020 8114 8901 F: 020 3002 7257 M: 001 415 630 3031 http://www.3c.co.uk
-- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
_______________________________________________ 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
_______________________________________________ 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
-- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Klaus, I'm not sure how much it matters anymore, but I remember needing sofia to come directly after the right bracket, so: origination_caller_id_name=Klaus}sofia/gateway/sip.gafachi.com/1' m On Wed, 30 Jul 2008, Klaus Teller wrote:
I have tried the following without success either:
'{origination_caller_id_number='+callee_number+',origination_caller_id_name=Klaus} sofia/gateway/sip.gafachi.com/1'+caller_number, 15);
'{effective_caller_id_number='+caller_number+',effective_caller_id_name=Klaus} sofia/gateway/sip.gafachi.com/1'+callee_number, 15);
On the first leg A device I get "Unknown Caller" on leg B i get the B's number displayed to its own device.
Really confused now.
Thanks, Klaus.
-------- Original-Nachricht --------
Datum: Wed, 30 Jul 2008 01:56:02 -0400 Von: Michael Jerris <mike@jerris.com> An: freeswitch-users@lists.freeswitch.org Betreff: Re: [Freeswitch-users] Gafachi Again
you can set the variables on the originate line with {} , see http://wiki.freeswitch.org/wiki/Freeswitch_IVR_Originate#Answer_confirmation second example.
Mike
On Jul 30, 2008, at 1:24 AM, Klaus Teller wrote:
Thanks Dave,
This however produces following error message:
============= 2008-07-30 01:23:03 [ERR] inline:1 mod_spidermonkey() You must call the session.originate method before calling this method! ============
Klaus. -------- Original-Nachricht --------
Datum: Wed, 30 Jul 2008 06:20:08 +0100 Von: David Knell <dave@3c.co.uk> An: freeswitch-users@lists.freeswitch.org Betreff: Re: [Freeswitch-users] Gafachi Again
Hi Klaus,
You might want to try setting the variables before originating the call - the 'originate' will cause the call setup message to be sent.
--Dave
OK, Let me give you the full picture; here is what i do, but it still doesn't work. baiscally, i just want to dial two users and connect them to each other. Each side seeing the number of the other side as caller id.
new_session2 = new Session(); new_session2.originate(null, 'sofia/gateway/sip.gafachi.com/1'+caller_number, 15);
new_session2.setVariable("origination_caller_id_number", callee_number); new_session2.setVariable("origination_caller_id_name", 'Klaus Teller');
new_session2.waitForAnswer(10000);
new_session1 = new Session(); new_session1.originate(new_session2, 'sofia/gateway/sip.gafachi.com/1'+callee_number, 15); new_session1.setVariable("effctive_caller_id_number", caller_number); new_session1.setVariable("effective_caller_id_name", 'Klaus Teller');
I also tried effective on both sides as well as origibation on both sides.
Klaus.
-------- Original-Nachricht --------
Datum: Tue, 29 Jul 2008 23:36:10 -0500 Von: Brian West <brian@freeswitch.org> An: freeswitch-users@lists.freeswitch.org Betreff: Re: [Freeswitch-users] Gafachi Again
This is clearly a case where you're creating an A leg. Let me lay out some info here that will clear this up...
origination_caller_id_name / origination_caller_id_number - These to variables are used to set the caller_id info on a leg that you are creating in this case the A-Leg While the effective_caller_id_name / effective_caller_id_number are used to set the caller id for any legs that are born from the A- leg, these values are used on the B-leg's caller_id_name/number values.
/b
On Jul 29, 2008, at 11:21 PM, Klaus Teller wrote:
> I just did the following: > > new_session1 = new Session(); > new_session1.originate(new_session2, 'sofia/gateway/ > sip.gafachi.com/ > 1'+callee_number, 15); > new_session1.setVariable("effective_caller_id_number", > caller_number); > new_session1.setVariable("effective_caller_id_name", 'Klaus > Teller'); > > As a result, I have the callee number being shown on its own > display > as caller. That is on the called device the number callee_number > is > being displayed instead of caller_number. > > What am i doing wrong? > > Klaus. > Brian West sip:brian@freeswitch.org
_______________________________________________ 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
-- David Knell, Director, 3C Limited T: 020 8114 8901 F: 020 3002 7257 M: 001 415 630 3031 http://www.3c.co.uk
-- Psssst! Schon vom neuen GMX MultiMessenger geh�rt? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
_______________________________________________ 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
_______________________________________________ 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
-- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
_______________________________________________ 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
yup On Wed, 30 Jul 2008, David Knell wrote:
Hi Klaus,
You might want to try setting the variables before originating the call - the 'originate' will cause the call setup message to be sent.
--Dave
OK, Let me give you the full picture; here is what i do, but it still doesn't work. baiscally, i just want to dial two users and connect them to each other. Each side seeing the number of the other side as caller id.
new_session2 = new Session(); new_session2.originate(null, 'sofia/gateway/sip.gafachi.com/1'+caller_number, 15);
new_session2.setVariable("origination_caller_id_number", callee_number); new_session2.setVariable("origination_caller_id_name", 'Klaus Teller');
new_session2.waitForAnswer(10000);
new_session1 = new Session(); new_session1.originate(new_session2, 'sofia/gateway/sip.gafachi.com/1'+callee_number, 15); new_session1.setVariable("effctive_caller_id_number", caller_number); new_session1.setVariable("effective_caller_id_name", 'Klaus Teller');
I also tried effective on both sides as well as origibation on both sides.
Klaus.
-------- Original-Nachricht --------
Datum: Tue, 29 Jul 2008 23:36:10 -0500 Von: Brian West <brian@freeswitch.org> An: freeswitch-users@lists.freeswitch.org Betreff: Re: [Freeswitch-users] Gafachi Again
This is clearly a case where you're creating an A leg. Let me lay out some info here that will clear this up...
origination_caller_id_name / origination_caller_id_number - These to variables are used to set the caller_id info on a leg that you are creating in this case the A-Leg While the effective_caller_id_name / effective_caller_id_number are used to set the caller id for any legs that are born from the A-leg, these values are used on the B-leg's caller_id_name/number values.
/b
On Jul 29, 2008, at 11:21 PM, Klaus Teller wrote:
I just did the following:
new_session1 = new Session(); new_session1.originate(new_session2, 'sofia/gateway/sip.gafachi.com/ 1'+callee_number, 15); new_session1.setVariable("effective_caller_id_number", caller_number); new_session1.setVariable("effective_caller_id_name", 'Klaus Teller');
As a result, I have the callee number being shown on its own display as caller. That is on the called device the number callee_number is being displayed instead of caller_number.
What am i doing wrong?
Klaus.
Brian West sip:brian@freeswitch.org
_______________________________________________ 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
-- David Knell, Director, 3C Limited T: 020 8114 8901 F: 020 3002 7257 M: 001 415 630 3031 http://www.3c.co.uk
participants (6)
-
Anthony Minessale
-
Brian West
-
David Knell
-
Klaus Teller
-
Matt Klein
-
Michael Jerris