How do I know the destination profile name?
Hi We have more then one profile. To make a call I have to enter : bridge sofia/profile/number@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
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/number@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
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 <brian@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/number@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
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/number@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/xxxxx@host to make the call. Is there other way to do that? Thanks Eli
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/number@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/xxxxx@host to make the call. Is there other way to do that?
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-user@local-domain*<sofia/sip_profile/local-user@local-domain>) BLF doesn't work (nothing is sent to the watching phone). Any more clues??? Thanks! __Yehavi: 2009/11/20 Michael Jerris <mike@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/number@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/xxxxx@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
Because if you dial local-user@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/xxxx@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-user@local- domain) BLF doesn't work (nothing is sent to the watching phone).
Any more clues???
Thanks! __Yehavi:
Let's just do this: r15629 or higher look for sip_profile_name On Tue, Nov 17, 2009 at 3:03 AM, Eli Hayun <elihayun@gmail.com> wrote:
Hi We have more then one profile. To make a call I have to enter : bridge sofia/profile/number@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_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
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.minessale@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 <elihayun@gmail.com> wrote:
Hi We have more then one profile. To make a call I have to enter : bridge sofia/profile/number@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_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
_______________________________________________ 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
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.bourvine@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.minessale@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 <elihayun@gmail.com> wrote:
Hi We have more then one profile. To make a call I have to enter : bridge sofia/profile/number@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_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
_______________________________________________ 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
participants (5)
-
Anthony Minessale
-
Brian West
-
Eli Hayun
-
Michael Jerris
-
Yehavi Bourvine