[Freeswitch-users] more than 1 profile for sofia/user ?

Peter P GMX Prometheus001 at gmx.net
Sat Feb 20 16:44:22 PST 2010


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 at gmx.net
> <mailto:Prometheus001 at 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 at gmx.net <mailto:Prometheus001 at gmx.net>
>     > <mailto:Prometheus001 at gmx.net <mailto:Prometheus001 at 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 at gmx.net <mailto:Prometheus001 at gmx.net>
>     <mailto:Prometheus001 at gmx.net <mailto:Prometheus001 at gmx.net>>
>     >     > <mailto:Prometheus001 at gmx.net
>     <mailto:Prometheus001 at gmx.net> <mailto:Prometheus001 at gmx.net
>     <mailto:Prometheus001 at 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 at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at lists.freeswitch.org>
>     >     <mailto:FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at lists.freeswitch.org>>
>     >     >     <mailto:FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at lists.freeswitch.org>
>     >     <mailto:FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at 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 at hotmail.com
>     <mailto:MSN%3Aanthony_minessale at hotmail.com>
>     >     <mailto:MSN%3Aanthony_minessale at hotmail.com
>     <mailto:MSN%253Aanthony_minessale at hotmail.com>>
>     >     > <mailto:MSN%3Aanthony_minessale at hotmail.com
>     <mailto:MSN%253Aanthony_minessale at hotmail.com>
>     >     <mailto:MSN%253Aanthony_minessale at hotmail.com
>     <mailto:MSN%25253Aanthony_minessale at hotmail.com>>>
>     >     > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>     <mailto:PAYPAL%3Aanthony.minessale at gmail.com>
>     >     <mailto:PAYPAL%3Aanthony.minessale at gmail.com
>     <mailto:PAYPAL%253Aanthony.minessale at gmail.com>>
>     >     > <mailto:PAYPAL%3Aanthony.minessale at gmail.com
>     <mailto:PAYPAL%253Aanthony.minessale at gmail.com>
>     >     <mailto:PAYPAL%253Aanthony.minessale at gmail.com
>     <mailto:PAYPAL%25253Aanthony.minessale at gmail.com>>>
>     >     > IRC: irc.freenode.net <http://irc.freenode.net>
>     <http://irc.freenode.net>
>     >     <http://irc.freenode.net> #freeswitch
>     >     >
>     >     > FreeSWITCH Developer Conference
>     >     > sip:888 at conference.freeswitch.org
>     <mailto:sip%3A888 at conference.freeswitch.org>
>     >     <mailto:sip%3A888 at conference.freeswitch.org
>     <mailto:sip%253A888 at conference.freeswitch.org>>
>     >     > <mailto:sip%3A888 at conference.freeswitch.org
>     <mailto:sip%253A888 at conference.freeswitch.org>
>     >     <mailto:sip%253A888 at conference.freeswitch.org
>     <mailto:sip%25253A888 at conference.freeswitch.org>>>
>     >     > iax:guest at 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 at conference.freeswitch.org
>     <mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org>
>     >     <mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org
>     <mailto:googletalk%253Aconf%252B888 at conference.freeswitch.org>>
>     >     > <mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org
>     <mailto:googletalk%253Aconf%252B888 at conference.freeswitch.org>
>     >    
>     <mailto:googletalk%253Aconf%252B888 at conference.freeswitch.org
>     <mailto:googletalk%25253Aconf%25252B888 at conference.freeswitch.org>>>
>     >     > pstn:+19193869900
>     >     >
>     >    
>     ------------------------------------------------------------------------
>     >     >
>     >     > _______________________________________________
>     >     > FreeSWITCH-users mailing list
>     >     > FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at lists.freeswitch.org>
>     >     <mailto:FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at 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 at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at lists.freeswitch.org>
>     >     <mailto:FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at 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 at hotmail.com
>     <mailto:MSN%3Aanthony_minessale at hotmail.com>
>     > <mailto:MSN%3Aanthony_minessale at hotmail.com
>     <mailto:MSN%253Aanthony_minessale at hotmail.com>>
>     > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>     <mailto:PAYPAL%3Aanthony.minessale at gmail.com>
>     > <mailto:PAYPAL%3Aanthony.minessale at gmail.com
>     <mailto:PAYPAL%253Aanthony.minessale at gmail.com>>
>     > IRC: irc.freenode.net <http://irc.freenode.net>
>     <http://irc.freenode.net> #freeswitch
>     >
>     > FreeSWITCH Developer Conference
>     > sip:888 at conference.freeswitch.org
>     <mailto:sip%3A888 at conference.freeswitch.org>
>     > <mailto:sip%3A888 at conference.freeswitch.org
>     <mailto:sip%253A888 at conference.freeswitch.org>>
>     > iax:guest at conference.freeswitch.org/888
>     <http://iax:guest@conference.freeswitch.org/888>
>     > <http://iax:guest@conference.freeswitch.org/888>
>     > googletalk:conf+888 at conference.freeswitch.org
>     <mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org>
>     > <mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org
>     <mailto:googletalk%253Aconf%252B888 at conference.freeswitch.org>>
>     > pstn:+19193869900
>     >
>     ------------------------------------------------------------------------
>     >
>     > _______________________________________________
>     > FreeSWITCH-users mailing list
>     > FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at 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 at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>   




More information about the FreeSWITCH-users mailing list