<div dir="ltr">there is no space after the final } and the s in sofia<br><br>also please avoid the x = new Session(); x.originate() thing.<br><br>it's much easier to feed a dial string to the Constructor..<br>var dial_string = "{origination_caller_id_number=2121231234,origination_caller_id_name=fred}sofia/gateway/foo/2125551212"<br>
s = new Session(dial_string);<br><br>you can test dial strings from the CLI with the "originate" command <br><br><br><br>originate {origination_caller_id_number=2121231234,origination_caller_id_name=fred}sofia/gateway/foo/2125551212 9999<br>
<br><br>to call this dial string and transfer it to 9999<br><br>play with that first so you don't have to keep guessing in the script.<br><br><br><br><br><br><br><br><br><div class="gmail_quote">On Wed, Jul 30, 2008 at 7:39 AM, Klaus Teller <span dir="ltr"><<a href="mailto:klaus.teller@gmx.net">klaus.teller@gmx.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I have tried the following without success either:<br>
<br>
<br>
'{origination_caller_id_number='+callee_number+',origination_caller_id_name=Klaus} sofia/gateway/<a href="http://sip.gafachi.com/1%27+caller_number" target="_blank">sip.gafachi.com/1'+caller_number</a>, 15);<br>
<br>
<br>
'{effective_caller_id_number='+caller_number+',effective_caller_id_name=Klaus} sofia/gateway/<a href="http://sip.gafachi.com/1%27+callee_number" target="_blank">sip.gafachi.com/1'+callee_number</a>, 15);<br>
<br>
On the first leg A device I get "Unknown Caller" on leg B i get the B's number displayed to its own device.<br>
<br>
Really confused now.<br>
<br>
Thanks,<br>
Klaus.<br>
<br>
<br>
-------- Original-Nachricht --------<br>
> Datum: Wed, 30 Jul 2008 01:56:02 -0400<br>
<div class="Ih2E3d">> Von: Michael Jerris <<a href="mailto:mike@jerris.com">mike@jerris.com</a>><br>
</div><div><div></div><div class="Wj3C7c">> An: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
> Betreff: Re: [Freeswitch-users] Gafachi Again<br>
<br>
> you can set the variables on the originate line with {} , see<br>
> <a href="http://wiki.freeswitch.org/wiki/Freeswitch_IVR_Originate#Answer_confirmation" target="_blank">http://wiki.freeswitch.org/wiki/Freeswitch_IVR_Originate#Answer_confirmation</a><br>
> second example.<br>
><br>
> Mike<br>
><br>
> On Jul 30, 2008, at 1:24 AM, Klaus Teller wrote:<br>
><br>
> > Thanks Dave,<br>
> ><br>
> > This however produces following error message:<br>
> ><br>
> > =============<br>
> > 2008-07-30 01:23:03 [ERR] inline:1 mod_spidermonkey() You must call<br>
> > the session.originate method before calling this method!<br>
> > ============<br>
> ><br>
> > Klaus.<br>
> > -------- Original-Nachricht --------<br>
> >> Datum: Wed, 30 Jul 2008 06:20:08 +0100<br>
> >> Von: David Knell <<a href="mailto:dave@3c.co.uk">dave@3c.co.uk</a>><br>
> >> An: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
> >> Betreff: Re: [Freeswitch-users] Gafachi Again<br>
> ><br>
> >> Hi Klaus,<br>
> >><br>
> >> You might want to try setting the variables before originating the<br>
> >> call<br>
> >> - the 'originate' will cause the call setup message to be sent.<br>
> >><br>
> >> --Dave<br>
> >>> OK, Let me give you the full picture; here is what i do, but it<br>
> >>> still<br>
> >> doesn't work. baiscally, i just want to dial two users and connect<br>
> >> them to<br>
> >> each other. Each side seeing the number of the other side as caller<br>
> >> id.<br>
> >>><br>
> >>><br>
> >>> new_session2 = new Session();<br>
> >>> new_session2.originate(null,<br>
> >> 'sofia/gateway/<a href="http://sip.gafachi.com/1%27+caller_number" target="_blank">sip.gafachi.com/1'+caller_number</a>, 15);<br>
> >>><br>
> >>> new_session2.setVariable("origination_caller_id_number",<br>
> >>> callee_number);<br>
> >>> new_session2.setVariable("origination_caller_id_name", 'Klaus<br>
> >>> Teller');<br>
> >>><br>
> >>> new_session2.waitForAnswer(10000);<br>
> >>><br>
> >>> new_session1 = new Session();<br>
> >>> new_session1.originate(new_session2,<br>
> >> 'sofia/gateway/<a href="http://sip.gafachi.com/1%27+callee_number" target="_blank">sip.gafachi.com/1'+callee_number</a>, 15);<br>
> >>> new_session1.setVariable("effctive_caller_id_number",<br>
> >>> caller_number);<br>
> >>> new_session1.setVariable("effective_caller_id_name", 'Klaus<br>
> >>> Teller');<br>
> >>><br>
> >>><br>
> >>><br>
> >>> I also tried effective on both sides as well as origibation on both<br>
> >> sides.<br>
> >>><br>
> >>> Klaus.<br>
> >>><br>
> >>><br>
> >>> -------- Original-Nachricht --------<br>
> >>><br>
> >>>> Datum: Tue, 29 Jul 2008 23:36:10 -0500<br>
> >>>> Von: Brian West <<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>><br>
> >>>> An: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
> >>>> Betreff: Re: [Freeswitch-users] Gafachi Again<br>
> >>>><br>
> >>><br>
> >>><br>
> >>>> This is clearly a case where you're creating an A leg. Let me<br>
> >>>> lay out<br>
> >>>> some info here that will clear this up...<br>
> >>>><br>
> >>>><br>
> >>>> origination_caller_id_name / origination_caller_id_number -<br>
> >>>> These to<br>
> >>>> variables are used to set the caller_id info on a leg that you are<br>
> >>>> creating in this case the A-Leg<br>
> >>>> While the effective_caller_id_name / effective_caller_id_number are<br>
> >>>> used to set the caller id for any legs that are born from the A-<br>
> >>>> leg,<br>
> >>>> these values are used on the B-leg's caller_id_name/number values.<br>
> >>>><br>
> >>>> /b<br>
> >>>><br>
> >>>><br>
> >>>><br>
> >>>> On Jul 29, 2008, at 11:21 PM, Klaus Teller wrote:<br>
> >>>><br>
> >>>><br>
> >>>>> I just did the following:<br>
> >>>>><br>
> >>>>> new_session1 = new Session();<br>
> >>>>> new_session1.originate(new_session2, 'sofia/gateway/<br>
> >>>>> <a href="http://sip.gafachi.com/" target="_blank">sip.gafachi.com/</a><br>
> >>>>> 1'+callee_number, 15);<br>
> >>>>> new_session1.setVariable("effective_caller_id_number",<br>
> >>>>> caller_number);<br>
> >>>>> new_session1.setVariable("effective_caller_id_name", 'Klaus<br>
> >>>>> Teller');<br>
> >>>>><br>
> >>>>> As a result, I have the callee number being shown on its own<br>
> >>>>> display<br>
> >>>>> as caller. That is on the called device the number callee_number<br>
> >>>>> is<br>
> >>>>> being displayed instead of caller_number.<br>
> >>>>><br>
> >>>>> What am i doing wrong?<br>
> >>>>><br>
> >>>>> Klaus.<br>
> >>>>><br>
> >>>> Brian West<br>
> >>>> <a href="mailto:sip%3Abrian@freeswitch.org">sip:brian@freeswitch.org</a><br>
> >>>><br>
> >>>><br>
> >>>><br>
> >>>><br>
> >>>> _______________________________________________<br>
> >>>> Freeswitch-users mailing list<br>
> >>>> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> >>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> >>>><br>
> >><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> >>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> >>>><br>
> >>><br>
> >>><br>
> >><br>
> >><br>
> >> --<br>
> >> David Knell, Director, 3C Limited<br>
> >> T: 020 8114 8901 F: 020 3002 7257 M: 001 415 630 3031<br>
> >> <a href="http://www.3c.co.uk" target="_blank">http://www.3c.co.uk</a><br>
> >><br>
> ><br>
> > --<br>
> > Psssst! Schon vom neuen GMX MultiMessenger gehört?<br>
> > Der kann`s mit allen: <a href="http://www.gmx.net/de/go/multimessenger" target="_blank">http://www.gmx.net/de/go/multimessenger</a><br>
> ><br>
> > _______________________________________________<br>
> > Freeswitch-users mailing list<br>
> > <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
> _______________________________________________<br>
> Freeswitch-users mailing list<br>
> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
</div></div><font color="#888888">--<br>
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten<br>
Browser-Versionen downloaden: <a href="http://www.gmx.net/de/go/browser" target="_blank">http://www.gmx.net/de/go/browser</a><br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>
</div>