Hello, Please see highlighted lines - why on B-leg From trashed? Is my misconfiguration? Log http://pastebin.freeswitch.org/15937 Configs http://pastebin.freeswitch.org/15941 http://pastebin.freeswitch.org/15939 http://pastebin.freeswitch.org/15940 -- wbr, Serge
FreeSWITCH is a B2BUA, not a proxy. The aleg and bleg are 2 different separate calls, and FS joins the signalling media on the 2. The From etc headers have to have the address of FS because that's what's making the call. -Steve On 31 March 2011 13:45, Serge S. Yuriev <me@nevian.org> wrote:
Hello,
Please see highlighted lines - why on B-leg From trashed? Is my misconfiguration?
Log http://pastebin.freeswitch.org/15937
Configs http://pastebin.freeswitch.org/15941 http://pastebin.freeswitch.org/15939 http://pastebin.freeswitch.org/15940
-- wbr, Serge
_______________________________________________ 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
2011/3/31 Steven Ayre <steveayre@gmail.com>:
The aleg and bleg are 2 different separate calls, and FS joins the signalling media on the 2.
The From etc headers have to have the address of FS because that's what's making the call.
A B2BUA could handle different domains (local domains). It's common in a multidomain IP environment. Doesn't FS allow it? A SIP user is identified by a complete AoR (user and domain, like in mail world), does FS assume that just the username part is the identifier so alice@domainA.org is the same as alice@domainB.org for FS? -- Iñaki Baz Castillo <ibc@aliax.net>
2011/4/1 Iñaki Baz Castillo <ibc@aliax.net>:
A B2BUA could handle different domains (local domains). It's common in a multidomain IP environment. Doesn't FS allow it? A SIP user is identified by a complete AoR (user and domain, like in mail world), does FS assume that just the username part is the identifier so alice@domainA.org is the same as alice@domainB.org for FS?
In my case I've a SIP proxy that manages different local domains, and I plan to put some FS boxes behind it to offer PBX services. But for that I need that FS understands that alice@domainA.org is a different user than alice@domainB.org, and when it routes back a call to the SIP proxy/registrar it must keep the original From URI (also the domain). This is: alice@domainA.org ----> Proxy/Registrar -----> FS ----> same Proxy/Registrar ----> alice@domainB.org When alice@domainB.org receives the call, she must see alice@domainA.org in the From header. Does FS allow it? -- Iñaki Baz Castillo <ibc@aliax.net>
On 04/01/2011 08:24 AM, Iñaki Baz Castillo wrote:
2011/4/1 Iñaki Baz Castillo<ibc@aliax.net>:
A B2BUA could handle different domains (local domains). It's common in a multidomain IP environment. Doesn't FS allow it? A SIP user is identified by a complete AoR (user and domain, like in mail world), does FS assume that just the username part is the identifier so alice@domainA.org is the same as alice@domainB.org for FS? In my case I've a SIP proxy that manages different local domains, and I plan to put some FS boxes behind it to offer PBX services. But for that I need that FS understands that alice@domainA.org is a different user than alice@domainB.org, and when it routes back a call to the SIP proxy/registrar it must keep the original From URI (also the domain).
This is:
alice@domainA.org ----> Proxy/Registrar -----> FS ----> same Proxy/Registrar ----> alice@domainB.org
When alice@domainB.org receives the call, she must see alice@domainA.org in the From header.
Does FS allow it?
This might be what you need - http://wiki.freeswitch.org/wiki/Channel_Variables#sip_invite_domain
2011/4/1 Joegen E. Baclor <joegen@opensipstack.org>:
This is:
alice@domainA.org ----> Proxy/Registrar -----> FS ----> same Proxy/Registrar ----> alice@domainB.org
When alice@domainB.org receives the call, she must see alice@domainA.org in the From header.
Does FS allow it?
This might be what you need - http://wiki.freeswitch.org/wiki/Channel_Variables#sip_invite_domain
That's good, thanks for pointing out it. However I would prefer some option like "trust_from_domain" or something static in the profile configuration rather than the dialplan. Thanks. -- Iñaki Baz Castillo <ibc@aliax.net>
Hello 01.04.2011, 12:02, "Iñaki Baz Castillo" <ibc@aliax.net>;:
2011/4/1 Joegen E. Baclor <joegen@opensipstack.org>;;:
This is:
alice@domainA.org ----> Proxy/Registrar -----> FS ----> same Proxy/Registrar ----> alice@domainB.org
When alice@domainB.org receives the call, she must see alice@domainA.org in the From header.
Does FS allow it? This might be what you need - http://wiki.freeswitch.org/wiki/Channel_Variables#sip_invite_domain That's good, thanks for pointing out it.
Yes that's good.. as a workaround I used for my and only domain but using this for every domain in config is not pretty ;)
However I would prefer some option like "trust_from_domain" or something static in the profile configuration rather than the dialplan.
I'm with you and even more I wanna this to be default and have some tools in dialplan for hiding.. -- wbr, Serge
2011/4/1 Serge S. Yuriev <me@nevian.org>:
http://wiki.freeswitch.org/wiki/Channel_Variables#sip_invite_domain That's good, thanks for pointing out it.
Yes that's good.. as a workaround I used for my and only domain but using this for every domain in config is not pretty ;)
However I would prefer some option like "trust_from_domain" or something static in the profile configuration rather than the dialplan.
I'm with you and even more I wanna this to be default and have some tools in dialplan for hiding..
True. Doing that in the dialplan is a bit "hack". IMHO it should be possible FS to entirely bypass the From URI (including port and URI params if present). -- Iñaki Baz Castillo <ibc@aliax.net>
Everyone wants the way they want it to work in their specific single use case to be the default. It's not a hack, it's the way you want it solved by a documented config option and its not any more ugly than a cisco dial-plan is it? FreeSWITCH can be mostly anything you want it to be, besides a proxy. It's your job to configure it how you would like. For your connivence, latest git has a new option you can specify in the from-domain param on a gateway xml to "auto-aleg" indicating you want this behavior that in now way should be the default....... On Fri, Apr 1, 2011 at 10:37 AM, Iñaki Baz Castillo <ibc@aliax.net> wrote:
2011/4/1 Serge S. Yuriev <me@nevian.org>:
http://wiki.freeswitch.org/wiki/Channel_Variables#sip_invite_domain That's good, thanks for pointing out it.
Yes that's good.. as a workaround I used for my and only domain but using this for every domain in config is not pretty ;)
However I would prefer some option like "trust_from_domain" or something static in the profile configuration rather than the dialplan.
I'm with you and even more I wanna this to be default and have some tools in dialplan for hiding..
True. Doing that in the dialplan is a bit "hack". IMHO it should be possible FS to entirely bypass the From URI (including port and URI params if present).
-- Iñaki Baz Castillo <ibc@aliax.net>
_______________________________________________ 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/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
2011/4/1 Anthony Minessale <anthony.minessale@gmail.com>:
Everyone wants the way they want it to work in their specific single use case to be the default.
It's not a hack, it's the way you want it solved by a documented config option and its not any more ugly than a cisco dial-plan is it?
FreeSWITCH can be mostly anything you want it to be, besides a proxy. It's your job to configure it how you would like.
For your connivence, latest git has a new option you can specify in the from-domain param on a gateway xml to "auto-aleg" indicating you want this behavior that in now way should be the default.......
So, in case FS receives an INVITE with "From: sip:alice@example.org;custom-param=abc" and the sofia profile has "auto-aleg"="yes", would FS keep the original From URI in the outbound leg? If so, that's really good :) Thanks a lot. -- Iñaki Baz Castillo <ibc@aliax.net>
Hello Yes, this is the point! It's a must for multi-tenancy 01.04.2011, 04:19, "Iñaki Baz Castillo" <ibc@aliax.net>;:
2011/3/31 Steven Ayre <steveayre@gmail.com>;;:
The aleg and bleg are 2 different separate calls, and FS joins the signalling media on the 2.
The From etc headers have to have the address of FS because that's what's making the call. A B2BUA could handle different domains (local domains). It's common in a multidomain IP environment. Doesn't FS allow it? A SIP user is identified by a complete AoR (user and domain, like in mail world), does FS assume that just the username part is the identifier so alice@domainA.org is the same as alice@domainB.org for FS?
-- Iñaki Baz Castillo <ibc@aliax.net>;;
_______________________________________________ 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 -- wbr, Serge
participants (5)
-
Anthony Minessale
-
Iñaki Baz Castillo
-
Joegen E. Baclor
-
Serge S. Yuriev
-
Steven Ayre