Thanks João, this solved my problem. Just for the records how it works: * created a new profile "internalnat" as a copy of "internal" * modified ports 5060 and 5061 to 5065 and 5066 * added parameters external-rtp-ip and external-sip-ip with external IPs * modified the dialstring as proposed below * Phone registers, phone can dial and can be called. Freeswitch rocks! Best regards Peter João Mesquita schrieb:
I would:
{presence_id=${dialed_user}@${dialed_domain},transfer_fallback_extension=${dialed_user}}${sofia_contact(${dialed_user}@${dialed_domain}),sofia/other_profile/${dialed_user}}
You could toy with that a bit. The dialstring is really just an origination string that is generated by the user/<extension> ...
Hope that clears it up a bit.
Regards, João Mesquita
On Thu, Feb 18, 2010 at 7:41 PM, Peter P GMX <Prometheus001@gmx.net <mailto:Prometheus001@gmx.net>> wrote:
Hello Anthony,
>add on a , then another dial string to reflect the other profile too I really tried to understand this, but can you give me an example?
Best regards Peter
Anthony Minessale schrieb: > add on a , then another dial string to reflect the other profile too > > On Thu, Feb 18, 2010 at 3:14 PM, Peter P GMX <Prometheus001@gmx.net <mailto:Prometheus001@gmx.net> > <mailto:Prometheus001@gmx.net <mailto:Prometheus001@gmx.net>>> wrote: > > Any idea how to do this? > > currently I have > {presence_id=${dialed_user}@${dialed_domain},transfer_fallback_extension=${dialed_user}}${sofia_contact(${dialed_user}@${dialed_domain})} > > > Best regards > Peter > > Anthony Minessale schrieb: > > edit the dial-string for that user in the directory xml to try the > > extension on both profile at once > > > > On Thu, Feb 18, 2010 at 1:27 PM, Peter P GMX > <Prometheus001@gmx.net <mailto:Prometheus001@gmx.net> <mailto:Prometheus001@gmx.net <mailto:Prometheus001@gmx.net>> > > <mailto:Prometheus001@gmx.net <mailto:Prometheus001@gmx.net> <mailto:Prometheus001@gmx.net <mailto:Prometheus001@gmx.net>>>> > wrote: > > > > Hello, > > > > in the standard setup - if a phone is registering to port > 5060 - it is > > bound to the "internal" profile. And I can dial it via > > sofia/user/xxxx then. > > > > However due to NAT issues I would like to have to 2 seperate > profiles > > for SIP phones. For example I have a "local" profile for all > devices > > inside the LAN (e.g. Pattons und in future: local phones) > and another > > "internal" profile which allows also external phones via > > external-xxx-ip. That way I would like to ensure that local > phones > > have > > nothing to do with natted adresses and that external phones can > > register > > via external IPs. > > > > Question How do I manage that I can register a phone to the > "local" > > profile and being able to dial that phone via sofia/user/xxxxx? > > > > Or do I think too complicated and there is simply nothing > special > > to do? > > > > Best regards > > Peter > > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> > <mailto:FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org>> > > <mailto:FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> > <mailto:FreeSWITCH-users@lists.freeswitch.org <mailto: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 <mailto:MSN%3Aanthony_minessale@hotmail.com> > <mailto:MSN%3Aanthony_minessale@hotmail.com <mailto:MSN%253Aanthony_minessale@hotmail.com>> > > <mailto:MSN%3Aanthony_minessale@hotmail.com <mailto:MSN%253Aanthony_minessale@hotmail.com> > <mailto:MSN%253Aanthony_minessale@hotmail.com <mailto:MSN%25253Aanthony_minessale@hotmail.com>>> > > GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> > <mailto:PAYPAL%3Aanthony.minessale@gmail.com <mailto:PAYPAL%253Aanthony.minessale@gmail.com>> > > <mailto:PAYPAL%3Aanthony.minessale@gmail.com <mailto:PAYPAL%253Aanthony.minessale@gmail.com> > <mailto:PAYPAL%253Aanthony.minessale@gmail.com <mailto:PAYPAL%25253Aanthony.minessale@gmail.com>>> > > IRC: irc.freenode.net <http://irc.freenode.net> <http://irc.freenode.net> > <http://irc.freenode.net> #freeswitch > > > > FreeSWITCH Developer Conference > > sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> > <mailto:sip%3A888@conference.freeswitch.org <mailto:sip%253A888@conference.freeswitch.org>> > > <mailto:sip%3A888@conference.freeswitch.org <mailto:sip%253A888@conference.freeswitch.org> > <mailto:sip%253A888@conference.freeswitch.org <mailto:sip%25253A888@conference.freeswitch.org>>> > > iax:guest@conference.freeswitch.org/888 <http://iax:guest@conference.freeswitch.org/888> > <http://iax:guest@conference.freeswitch.org/888> > > <http://iax:guest@conference.freeswitch.org/888> > > googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> > <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org <mailto:googletalk%253Aconf%252B888@conference.freeswitch.org>> > > <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org <mailto:googletalk%253Aconf%252B888@conference.freeswitch.org> > <mailto:googletalk%253Aconf%252B888@conference.freeswitch.org <mailto:googletalk%25253Aconf%25252B888@conference.freeswitch.org>>> > > pstn:+19193869900 > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > FreeSWITCH-users mailing list > > FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> > <mailto:FreeSWITCH-users@lists.freeswitch.org <mailto: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 <mailto:FreeSWITCH-users@lists.freeswitch.org> > <mailto:FreeSWITCH-users@lists.freeswitch.org <mailto: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 <mailto:MSN%3Aanthony_minessale@hotmail.com> > <mailto:MSN%3Aanthony_minessale@hotmail.com <mailto:MSN%253Aanthony_minessale@hotmail.com>> > GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> > <mailto:PAYPAL%3Aanthony.minessale@gmail.com <mailto:PAYPAL%253Aanthony.minessale@gmail.com>> > IRC: irc.freenode.net <http://irc.freenode.net> <http://irc.freenode.net> #freeswitch > > FreeSWITCH Developer Conference > sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> > <mailto:sip%3A888@conference.freeswitch.org <mailto:sip%253A888@conference.freeswitch.org>> > iax:guest@conference.freeswitch.org/888 <http://iax:guest@conference.freeswitch.org/888> > <http://iax:guest@conference.freeswitch.org/888> > googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> > <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org <mailto:googletalk%253Aconf%252B888@conference.freeswitch.org>> > pstn:+19193869900 > ------------------------------------------------------------------------ > > _______________________________________________ > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org <mailto: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 <mailto: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