Multihomed server.
Hello. A problem. I need internal profile to listen to two IPs out of 5. As one profile can be set or on "auto" ip, or specific local IP, it is needed to create a profile for each IP. But a problem arise when one phone registers to first profile and another phone registers to the second profile with the same credentials. When calling this specific extension, only one phone rings. How to correctly setup one profile with two different IP on multihomed server? -- Mimiko desu.
Impossible... One profile can only listen to a single ip:port - It needs to know an IP to put inside the SIP packets for Contact/SDP. But this isn't your problem. Rather your problem is coming from the fact they're both registering with the same credentials. Can you get each phone to register with its own user account? Also see what string sofia_contact returns - it might be its returning multiple destinations in the generated dial string, but that they're either not a forked dial or you need to set ignore_early_media=true so that a successful bridge happens on the first phone to answer, not the first phone to ring. I suspect simply prefixing your bridge dial string with {ignore_early_media=true} will get the behaviour you desire. Sent from my iPad On 15 Dec 2012, at 20:50, Mimiko <vbvbrj@gmail.com> wrote:
Hello.
A problem. I need internal profile to listen to two IPs out of 5. As one profile can be set or on "auto" ip, or specific local IP, it is needed to create a profile for each IP. But a problem arise when one phone registers to first profile and another phone registers to the second profile with the same credentials. When calling this specific extension, only one phone rings.
How to correctly setup one profile with two different IP on multihomed server?
-- Mimiko desu.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
Why not just setup 2 profiles sharing the same domain? This allows the phones to use one set of credentials on either network... If you are having problems, then why not simply use split horizon dns so that endpoints on any of the attached networks get proper host pointers... Its beyond the scope of FreeSWITCH to tell you how to your DNS for this, but there is a pile of documentation on this. K On 12/15/12 3:19 PM, "Steven Ayre" <steveayre@gmail.com> wrote:
Impossible... One profile can only listen to a single ip:port - It needs to know an IP to put inside the SIP packets for Contact/SDP. But this isn't your problem.
Rather your problem is coming from the fact they're both registering with the same credentials.
Can you get each phone to register with its own user account?
Also see what string sofia_contact returns - it might be its returning multiple destinations in the generated dial string, but that they're either not a forked dial or you need to set ignore_early_media=true so that a successful bridge happens on the first phone to answer, not the first phone to ring.
I suspect simply prefixing your bridge dial string with {ignore_early_media=true} will get the behaviour you desire.
Sent from my iPad
On 15 Dec 2012, at 20:50, Mimiko <vbvbrj@gmail.com> wrote:
Hello.
A problem. I need internal profile to listen to two IPs out of 5. As one profile can be set or on "auto" ip, or specific local IP, it is needed to create a profile for each IP. But a problem arise when one phone registers to first profile and another phone registers to the second profile with the same credentials. When calling this specific extension, only one phone rings.
How to correctly setup one profile with two different IP on multihomed server?
-- Mimiko desu.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
-- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch
On 15.12.2012 23:32, Ken Rice wrote:
Why not just setup 2 profiles sharing the same domain?
In the wiki its not very well described about domains, especially about sharing same domain between multiple profiles.
why not simply use split horizon dns so that endpoints on any of the attached networks get proper host pointers...
It's not possible for now, as company does not have a dedicated DNS name registered at international DNS servers specifically for this, but it will be used when everything is settled down. On 15.12.2012 23:19, Steven Ayre wrote:
Rather your problem is coming from the fact they're both registering
with the same credentials.
Can you get each phone to register with its own user account?
Nope. The idea is to register multiple phone to same account and use simple contact to get phones ringing.
I suspect simply prefixing your bridge dial string with
{ignore_early_media=true} will get the behaviour you desire. I didn't try this, but finally I managed to accomplish the idea. I took sip_profiles/internal.xml and changed its name to internal_(internal_IP).xml, and in it I put rtp-ip, sip-ip, ext-rtp-ip, ext-sip-ip to internal IP of the server and listening port to 5060 UDP. Also, made a copy with name internal_(external-IP).xml for IP facing to internet and modified rtp-ip, sip-ip, ext-rtp-ip, ext-sip-ip to IP of interface facing to internet and listening on port 5060 UDP. Then in both profiles I changed <domains> <domain name="all" alias="true" parse="false"/> </domains> to <domains> <domain name="$${domain}" alias="false" parse="false"/> </domains> And now all registered phones for same account via both profiles rings. Of course in both profile is a parameter: <param name="multiple-registrations" value="contact"/> That is how I managed to get it working. -- Mimiko desu.
Hi, You can create 2 profiles for the same domain and look for the same user on both profiles. Try: <action application="bridge" data="${sofia_contact(profile1/user@domain)}:_:${sofia_contact(profile2/user@domain)}" /> Let us know if that works. Emrah On Dec 15, 2012, at 3:50 PM, Mimiko <vbvbrj@gmail.com> wrote:
Hello.
A problem. I need internal profile to listen to two IPs out of 5. As one profile can be set or on "auto" ip, or specific local IP, it is needed to create a profile for each IP. But a problem arise when one phone registers to first profile and another phone registers to the second profile with the same credentials. When calling this specific extension, only one phone rings.
How to correctly setup one profile with two different IP on multihomed server?
-- Mimiko desu.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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 (4)
-
Emrah
-
Ken Rice
-
Mimiko
-
Steven Ayre