Dear All, in case of a multi-home setup (in my testing scenario two sofia sip profiles 192.168.0.10 & 192.168.0.20), it looks like no matter what profile the call arrives on, $${domain} is what comes out or null. switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "domain:%s\n",switch_channel_get_variable(channel,"domain")); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "domain_name:%s\n",switch_channel_get_variable(channel,"domain_name")); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "caller_domain:%s\n",switch_channel_get_variable(channel,"caller_domain")); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "sip_invite_domain:%s\n",switch_channel_get_variable(channel,"sip_invite_domain")); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "dialed_domain:%s\n\n\n",switch_channel_get_variable(channel,"dialed_domain")); However, if I add an xml attribute called "domain" to a sip profile (<profile name="local.20" domain="192.168.0.20">), I get the correct domain per profile utilizing the channel variable "sofia_profile_domain_name" switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "sofia_profile_domain_name:%s\n",switch_channel_get_variable(channel,"sofia_profile_domain_name")); My question is what's the proper call to extract the sip domain of the inbound channel? Best Regards, -------------------------------------------- On Tue, 2/14/17, Anthony Minessale <anthony.minessale@gmail.com> wrote: Subject: Re: [Freeswitch-dev] Channel Flags To: "freeswitch-dev@lists.freeswitch.org" <freeswitch-dev@lists.freeswitch.org> Date: Tuesday, February 14, 2017, 3:49 PM Hi, I think you jumped to way to many conclusions before convicting us all. Your message is tagged as spam by my gmail account and I presume the same with most other people.(see image below) Even that aside, someone not answering you in less than a week is not cause to assume everyone is evil....... CF_PROXY_MODE -- This flag is used when enabling the bypass_media=true feature as seen in confluencehttps://freeswitch.org/confluence/display/FREESWITCH/Bypass+Media+Overview CF_PROXY_MEDIA -- This flag is similar but is for proxy_media=truehttps://freeswitch.org/confluence/display/FREESWITCH/Proxy_Media CC_PROXY_MEDIA -- Not a flag but a capability marker, set by channels to indicate they are capable of doing PROXY_MEDIA On Sat, Feb 11, 2017 at 1:34 PM, Dave Greeko <davegreeko@yahoo.com> wrote: Apparently no one is willing to answer and help this little poor guy (by the way I have three kids, a wife and an 80 years old father to take care of) on his request to explain just 3 channel flags out of the tens of them in the source tree. I guess the world is rapidly changing and the sense of love/sharing and community is vanishing. It seems as if we live in a world of building walls and banning that I wish we do not reach a day where an extreme vetting will be in place when admitting a question into the community… Regards, FreeSWITCH Lover with broken heart ------------------------------ -------------- On Wed, 2/8/17, Dave Greeko <davegreeko@yahoo.com> wrote: Subject: Channel Flags To: freeswitch-dev@lists.freeswitch.org Date: Wednesday, February 8, 2017, 7:16 PM I have been looking into the freeswitch core and so far it has been a good journey. I am exploring the possibilities of integrating part of the media side of freeswitch with Intel's DPDK to process media frames at line rate bypassing the Linux kernel. In any case, Before I delve into the media related codes, I would like if someone could elaborate end explain the below three flags: (used (set/test) heavily in sofia and other places): CF_PROXY_MODE CF_PROXY_MEDIA CC_PROXY_MEDIA Best Regards, Dave ______________________________ ______________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/ mailman/listinfo/freeswitch- dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/ options/freeswitch-dev http://www.freeswitch.org -- Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬ ☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞ http://twitter.com/FreeSWITCH☞ irc.freenode.net #freeswitch ☞ http://freeswitch.org/g+ ClueCon Weekly Development Call ☎ sip:888@conference.freeswitch.org ☎ +19193869900 https://www.youtube.com/watch?v=9XXgW34t40shttps://www.youtube.com/watch?v=N... -----Inline Attachment Follows----- _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
participants (1)
-
Dave Greeko