Re: [Freeswitch-users] How do I know the destination profile name?

2009-12-02 Thread Yehavi Bourvine
BTW, I forgot to update: I changed the bridge parameters to use
sofia_contact() and it solved the problem. I also fixed the presence problem
I had before with sofia_contact() (added presence_id to the bridge command).

 Regards, __Yehavi:

2009/11/24 Yehavi Bourvine yehavi.bourv...@gmail.com

  Hello Anthony,

   Indeed I see the reference to this channel variable in the code, but when
 trying to access it from the dial plan it is empty... I try to get the value
 of ${sip_profile_name} and it is empty.

   Thanks! __Yehavi:

 2009/11/23 Anthony Minessale anthony.miness...@gmail.com

 Let's just do this:

 r15629 or higher

 look for sip_profile_name




 On Tue, Nov 17, 2009 at 3:03 AM, Eli Hayun eliha...@gmail.com wrote:

 Hi
 We have more then one profile. To make a call I have to enter : bridge
 sofia/profile/num...@ip
 The problem is when I use : ${use_profile} I am getting the caller
 profile, and I need the destination profile.

 How do I get this information?

 Thanks

 Eli

 ___
 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/
 Twitter: http://twitter.com/FreeSWITCH_wire

 AIM: anthm
 MSN:anthony_miness...@hotmail.com msn%3aanthony_miness...@hotmail.com
 GTALK/JABBER/PAYPAL:anthony.miness...@gmail.compaypal%3aanthony.miness...@gmail.com
 IRC: irc.freenode.net #freeswitch

 FreeSWITCH Developer Conference
 sip:8...@conference.freeswitch.org sip%3a...@conference.freeswitch.org
 iax:gu...@conference.freeswitch.org/888
 googletalk:conf+...@conference.freeswitch.orggoogletalk%3aconf%2b...@conference.freeswitch.org
 pstn:213-799-1400

 ___
 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


Re: [Freeswitch-users] How do I know the destination profile name?

2009-11-24 Thread Yehavi Bourvine
Hello Anthony,

  Indeed I see the reference to this channel variable in the code, but when
trying to access it from the dial plan it is empty... I try to get the value
of ${sip_profile_name} and it is empty.

  Thanks! __Yehavi:

2009/11/23 Anthony Minessale anthony.miness...@gmail.com

 Let's just do this:

 r15629 or higher

 look for sip_profile_name




 On Tue, Nov 17, 2009 at 3:03 AM, Eli Hayun eliha...@gmail.com wrote:

 Hi
 We have more then one profile. To make a call I have to enter : bridge
 sofia/profile/num...@ip
 The problem is when I use : ${use_profile} I am getting the caller
 profile, and I need the destination profile.

 How do I get this information?

 Thanks

 Eli

 ___
 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/
 Twitter: http://twitter.com/FreeSWITCH_wire

 AIM: anthm
 MSN:anthony_miness...@hotmail.com msn%3aanthony_miness...@hotmail.com
 GTALK/JABBER/PAYPAL:anthony.miness...@gmail.compaypal%3aanthony.miness...@gmail.com
 IRC: irc.freenode.net #freeswitch

 FreeSWITCH Developer Conference
 sip:8...@conference.freeswitch.org sip%3a...@conference.freeswitch.org
 iax:gu...@conference.freeswitch.org/888
 googletalk:conf+...@conference.freeswitch.orggoogletalk%3aconf%2b...@conference.freeswitch.org
 pstn:213-799-1400

 ___
 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


Re: [Freeswitch-users] How do I know the destination profile name?

2009-11-23 Thread Brian West
Because if you dial local-u...@local-domain thats not the correct way  
this will usually trigger a call out and back in on the profile thus  
moving you one leg away from the actual user.  If you're going to do  
that use sofia_contact and review how the defaults abstract this so  
you can just call user/x...@domain, You need to make sure the  
presence_id is set like the defaults have it.



/b

On Nov 22, 2009, at 1:39 AM, Yehavi Bourvine wrote:

Thanks Mike! However, this doesn't fully solve my problem. When  
using sofia_contact() indeed it works ok with finding the  
destination's profile. However, it breaks the BLFs...


When calling sofia/sip_profile/local-user%local-domain the BLF works  
ok. When calling sofia_contact(sofia/sip_profile/local-u...@local- 
domain) BLF doesn't work (nothing is sent to the watching phone).


Any more clues???

 Thanks! __Yehavi:


___
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


Re: [Freeswitch-users] How do I know the destination profile name?

2009-11-23 Thread Anthony Minessale
Let's just do this:

r15629 or higher

look for sip_profile_name



On Tue, Nov 17, 2009 at 3:03 AM, Eli Hayun eliha...@gmail.com wrote:

 Hi
 We have more then one profile. To make a call I have to enter : bridge
 sofia/profile/num...@ip
 The problem is when I use : ${use_profile} I am getting the caller
 profile, and I need the destination profile.

 How do I get this information?

 Thanks

 Eli

 ___
 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/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_miness...@hotmail.com msn%3aanthony_miness...@hotmail.com
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.compaypal%3aanthony.miness...@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org sip%3a...@conference.freeswitch.org
iax:gu...@conference.freeswitch.org/888
googletalk:conf+...@conference.freeswitch.orggoogletalk%3aconf%2b...@conference.freeswitch.org
pstn:213-799-1400
___
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


Re: [Freeswitch-users] How do I know the destination profile name?

2009-11-21 Thread Yehavi Bourvine
Thanks Mike! However, this doesn't fully solve my problem. When using
sofia_contact() indeed it works ok with finding the destination's profile.
However, it breaks the BLFs...

When calling *sofia/sip_profile/local-user%local-do**main* the BLF works ok.
When calling 
sofia_contact(*sofia/sip_profile/local-u...@local-domain*sofia/sip_profile/local-u...@local-domain)
BLF doesn't work (nothing is sent to the watching phone).

Any more clues???

 Thanks! __Yehavi:

2009/11/20 Michael Jerris m...@jerris.com

 check out sofia_contact function.  If you use this in combination with
 binding profiles together so they are one table I think this should work
 right.

 Mike

 On Nov 18, 2009, at 12:36 AM, Eli Hayun wrote:

  Brian West wrote:
 
  Why do you need to know the destination profile like that?  You get to
  pick that on your own so you should already know that before hand.
 
 
  /b
 
  On Nov 17, 2009, at 3:03 AM, Eli Hayun wrote:
 
 
  Hi
  We have more then one profile. To make a call I have to enter : bridge
  sofia/profile/num...@ip
  The problem is when I use : ${use_profile} I am getting the caller
  profile, and I need the destination profile.
 
  How do I get this information?
 
 
   Thanks for your answer.
 
  The problem is when I call to that number that the phone hook to other
 server, I cannot make the call.
  Is there is a variable that can tell me the destination profile?
  Lets say the other profile called ph1 I have to dial
  sofia/ph1/xx...@host to make the call. Is there other way to do that?


 ___
 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


Re: [Freeswitch-users] How do I know the destination profile name?

2009-11-19 Thread Michael Jerris
check out sofia_contact function.  If you use this in combination with binding 
profiles together so they are one table I think this should work right.

Mike

On Nov 18, 2009, at 12:36 AM, Eli Hayun wrote:

 Brian West wrote:
 
 Why do you need to know the destination profile like that?  You get to  
 pick that on your own so you should already know that before hand.
 
 
 /b
 
 On Nov 17, 2009, at 3:03 AM, Eli Hayun wrote:
 
   
 Hi
 We have more then one profile. To make a call I have to enter : bridge
 sofia/profile/num...@ip
 The problem is when I use : ${use_profile} I am getting the caller
 profile, and I need the destination profile.
 
 How do I get this information?
 
   
 Thanks for your answer.
 
 The problem is when I call to that number that the phone hook to other 
 server, I cannot make the call.
 Is there is a variable that can tell me the destination profile?
 Lets say the other profile called ph1 I have to dial
 sofia/ph1/xx...@host to make the call. Is there other way to do that?


___
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


Re: [Freeswitch-users] How do I know the destination profile name?

2009-11-17 Thread Brian West
Why do you need to know the destination profile like that?  You get to  
pick that on your own so you should already know that before hand.


/b

On Nov 17, 2009, at 3:03 AM, Eli Hayun wrote:

 Hi
 We have more then one profile. To make a call I have to enter : bridge
 sofia/profile/num...@ip
 The problem is when I use : ${use_profile} I am getting the caller
 profile, and I need the destination profile.

 How do I get this information?

 Thanks

 Eli


___
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


Re: [Freeswitch-users] How do I know the destination profile name?

2009-11-17 Thread Yehavi Bourvine
Hello Brian,
  the situation is as follows: Our PBX machine has more than one interface,
each one has a profile. Some phones are registered via one interface and tje
others on the other. The call should be sent usinbg the profile of the
destination as if not, the IP address of the server in the SIP message is
incorrect (the other interface) thus the phone cannot answer.

When a call is processed you know the originator profile name; we need also
the destination profile name...

Thanks! __yehavi:

2009/11/17 Brian West br...@freeswitch.org

 Why do you need to know the destination profile like that?  You get to
 pick that on your own so you should already know that before hand.


 /b

 On Nov 17, 2009, at 3:03 AM, Eli Hayun wrote:

  Hi
  We have more then one profile. To make a call I have to enter : bridge
  sofia/profile/num...@ip
  The problem is when I use : ${use_profile} I am getting the caller
  profile, and I need the destination profile.
 
  How do I get this information?
 
  Thanks
 
  Eli


 ___
 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


Re: [Freeswitch-users] How do I know the destination profile name?

2009-11-17 Thread Eli Hayun
Brian West wrote:
 Why do you need to know the destination profile like that?  You get to  
 pick that on your own so you should already know that before hand.


 /b

 On Nov 17, 2009, at 3:03 AM, Eli Hayun wrote:

   
 Hi
 We have more then one profile. To make a call I have to enter : bridge
 sofia/profile/num...@ip
 The problem is when I use : ${use_profile} I am getting the caller
 profile, and I need the destination profile.

 How do I get this information?

 Thanks

 Eli
 


 ___
 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 for your answer.

The problem is when I call to that number that the phone hook to other
server, I cannot make the call.
Is there is a variable that can tell me the destination profile?
Lets say the other profile called ph1 I have to dial
sofia/ph1/xx...@host to make the call. Is there other way to do that?

Thanks

Eli
___
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