Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Calling an IPv6 host with a SIP URI from portAudio


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
jason at jasonjgw.net
Guest





PostPosted: Thu Feb 19, 2009 10:02 pm    Post subject: [Freeswitch-users] Calling an IPv6 host with a SIP URI from Reply with quote

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.


_______________________________________________
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
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Feb 19, 2009 10:04 pm    Post subject: [Freeswitch-users] Calling an IPv6 host with a SIP URI from Reply with quote

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:
Quote:
<extension name="sip_uri">
<condition field="destination_number" expression="^[url=sip:(.*)$]sip:(.*)$[/url]">
<action application="bridge" data="sofia/${use_profile}/$1"/>
</condition>
</extension>
Back to top
msc at freeswitch.org
Guest





PostPosted: Fri Feb 20, 2009 1:32 am    Post subject: [Freeswitch-users] Calling an IPv6 host with a SIP URI from Reply with quote

On Feb 19, 2009, at 7:53 PM, Jason White <jason@jasonjgw.net> wrote:

Quote:
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
Back to top
anthony.minessale at g...
Guest





PostPosted: Fri Feb 20, 2009 9:30 am    Post subject: [Freeswitch-users] Calling an IPv6 host with a SIP URI from Reply with quote

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 (msc@freeswitch.org)> wrote:
Quote:

On Feb 19, 2009, at 7:53 PM, Jason White <jason@jasonjgw.net (jason@jasonjgw.net)> wrote:

Quote:
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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services