I notice that pa call sip:nnnn@host fails if the host in question only has an IPv6 address (i.e., an AAAA record in DNS). The logs show that FreeSWITCH is trying to use the internal profile, and failing. If I write a dialplan extension that accesses the same address using the internal-ipv6 profile, it succeeds. In the supplied default.xml dial plan, the SIP URI is processed thus: <extension name="sip_uri"> <condition field="destination_number" expression="^sip:(.*)$"> <action application="bridge" data="sofia/${use_profile}/$1"/> </condition> </extension> I can't find any documentation of use_profile on the wiki, but clearly it takes the value "internal" in this case. What would be the best way to fix this so that it will work regardless of whether the host is reachable over IPv4 or IPv6, or both? I could rewrite the extension to try multiple SIP profiles, but there could be a better way - hence the question.
Just make sure you send the call out an ipv6 profile and it'll work. /b On Feb 19, 2009, at 8:52 PM, Jason White wrote:
<extension name="sip_uri"> <condition field="destination_number" expression="^sip:(.*)$"> <action application="bridge" data="sofia/${use_profile}/$1"/> </condition> </extension>
I have it working now. The relevant changes were as follows. <action application="set" data="hangup_after_bridge=true"/> <action application="set" data="continue_on_fail=true"/> <action application="bridge" data="sofia/internal-ipv6/$1"/> <action application="bridge" data="sofia/internal/$1"/> </condition>
On Feb 19, 2009, at 7:53 PM, Jason White <jason@jasonjgw.net> wrote:
I have it working now. The relevant changes were as follows.
<action application="set" data="hangup_after_bridge=true"/> <action application="set" data="continue_on_fail=true"/> <action application="bridge" data="sofia/internal-ipv6/$1"/> <action application="bridge" data="sofia/internal/$1"/> </condition>
Jason, I like this approach. Good use of the many Dialplan tools. -MC
another way would be to make the original condition have no actions then use another condition under that with an ip6 specific regex and use action and anti-action to differentiate On Fri, Feb 20, 2009 at 12:22 AM, Michael S Collins <msc@freeswitch.org>wrote:
On Feb 19, 2009, at 7:53 PM, Jason White <jason@jasonjgw.net> wrote:
I have it working now. The relevant changes were as follows.
<action application="set" data="hangup_after_bridge=true"/> <action application="set" data="continue_on_fail=true"/> <action application="bridge" data="sofia/internal-ipv6/$1"/> <action application="bridge" data="sofia/internal/$1"/> </condition>
Jason,
I like this approach. Good use of the many Dialplan tools.
-MC
_______________________________________________ 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/ 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
participants (4)
-
Anthony Minessale
-
Brian West
-
Jason White
-
Michael S Collins