<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Klaus,<br>
<br>
You might want to try setting the variables before originating the call
- the 'originate' will cause the call setup message to be sent.<br>
<br>
--Dave<br>
<blockquote cite="mid:20080730044926.279110@gmx.net" type="cite">
  <pre wrap="">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 --------
  </pre>
  <blockquote type="cite">
    <pre wrap="">Datum: Tue, 29 Jul 2008 23:36:10 -0500
Von: Brian West <a class="moz-txt-link-rfc2396E" href="mailto:brian@freeswitch.org">&lt;brian@freeswitch.org&gt;</a>
An: <a class="moz-txt-link-abbreviated" href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>
Betreff: Re: [Freeswitch-users] Gafachi Again
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">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:

    </pre>
    <blockquote type="cite">
      <pre wrap="">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.
      </pre>
    </blockquote>
    <pre wrap="">Brian West
<a class="moz-txt-link-freetext" href="sip:brian@freeswitch.org">sip:brian@freeswitch.org</a>




_______________________________________________
Freeswitch-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
David Knell, Director, 3C Limited
T: 020 8114 8901  F: 020 3002 7257  M: 001 415 630 3031
<a class="moz-txt-link-freetext" href="http://www.3c.co.uk">http://www.3c.co.uk</a> </pre>
</body>
</html>