[Freeswitch-users] External Profile Problem

Michael Jerris mike at jerris.com
Sat Jan 30 08:19:59 PST 2010


Contexts are sets of dialplan rules.  This allows you to have different rules for different "contexts"  such as, people dialing from the outside world are in one context, your internal users are in another.

Mike

On Jan 27, 2010, at 10:48 AM, juan camilo ospina quintero wrote:

> hi thanks
> 
> sorry but i dont really understand what a context is.
> 
> so, when i put <action application="transfer" data="$0 XML default"/>
> what does it really does, what it means that transfer to new context,
> 
> 
> bye
> 
> > Date: Wed, 27 Jan 2010 05:27:38 -0800
> > From: dftoro at yahoo.com
> > To: freeswitch-users at lists.freeswitch.org
> > Subject: Re: [Freeswitch-users] External Profile Problem
> > 
> > Hi, 
> > 
> > <action application="transfer" data="$0 XML default"/>
> > 
> > You must take into account that transfer application not "transfer" a call to destination, only transfer it to a new context
> > 
> > http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_transfer
> > 
> > 
> > Diego Toro
> > http://lacarretade.blogspot.com/
> > 
> > 
> > --- On Tue, 1/26/10, juan camilo ospina quintero <camilin2212 at hotmail.com> wrote:
> > 
> > > From: juan camilo ospina quintero <camilin2212 at hotmail.com>
> > > Subject: Re: [Freeswitch-users] External Profile Problem
> > > To: "freeswitch" <freeswitch-users at lists.freeswitch.org>
> > > Date: Tuesday, January 26, 2010, 11:06 PM
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Hi
> > > 
> > > This works fine
> > > 
> > > <extension name="redirect">
> > >  <condition field="network_addr"
> > > expression="^192\.168\.2\.9$"/> 
> > > 
> > >  <condition field="destination_number"
> > > expression="^1(\d+)$">
> > >  <action application="bridge"
> > > data="sofia/external/$0 at 127.0.0.1:5070"/>
> > > </extension>
> > > 
> > > this redirects from freeswitch to sailfin (127.0.0.1:5070),
> > > and is in default.xml, in the dialplan.
> > > 
> > > the problem is this
> > > 
> > > <extension name="receive">
> > > <condition field="network_addr"
> > > expression="^127\.0\.0\.1$"/>
> > > <condition field="destination_number"
> > > expression="^1(\d+)$">
> > > <action application="transfer"
> > > data="$0 XML default"/>
> > > </condition>
> > > </extension>
> > > this doesnt work, this configuration can be found in
> > > public.xml in the dialplan, the idea of
> > > this is that when a sip invite comes from sailfin
> > > (127.0.0.1) transfer the invite to the destination number
> > > 
> > > the both configurations above are the only configuration i
> > > have change from  the default instalation of 
> > > freeswitch.
> > > 
> > > i would like to have some hep with this thanks
> > > 
> > > here is the trace log again
> > > 
> > > 2010-01-26 20:14:29.512927 [NOTICE]
> > > switch_channel.c:602 New Channel sofia/external/1000
> > > at 192.168.2.9 [5177e93a-0ae1-11df-afc9-db39c681a2f1]
> > > 2010-01-26 20:14:29.512927 [NOTICE] sofia.c:3527 Hangup
> > > sofia/external/1000
> > > at 192.168.2.9 [CS_NEW] [MANDATORY_IE_MISSING]
> > > send 632 bytes to udp/[192.168.2.9]:5070 at
> > > 01:14:29.517927:
> > > 
> > > ------------------------------------------------------------------------
> > > SIP/2.0 480 Temporarily Unavailable
> > > Via: SIP/2.0/UDP
> > > 192.168.153.1:5070;branch=z9hG4bKdaacdd64d693615c451ab9db43f9c71c2626;received=192.168.2.9
> > > From: <sip:1000
> > > at 192.168.2.9>;tag=g4xfbi12-3
> > > To: <sip:1001
> > > at 192.168.2.9:5080>;tag=4r91165pvcycB
> > > Call-Id: 192.168.153.1_3_3990383226484831353
> > > Cseq: 1 INVITE
> > > User-Agent: FreeSWITCH-mod_sofia/1.0.4-hacked
> > > Accept: application/sdp
> > > Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK,
> > > MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO
> > > Supported: timer, precondition, path, replaces
> > > Allow-Events: talk, refer
> > > Reason:
> > > Q.850;cause=96;text="MANDATORY_IE_MISSING"
> > > Content-Length: 0
> > > 
> > > 
> > > ------------------------------------------------------------------------
> > > 2010-01-26 20:14:29.525646 [NOTICE]
> > > switch_core_session.c:1086 Session 9 (sofia/external/1000
> > > at 192.168.2.9) Ended
> > > 2010-01-26 20:14:29.525646 [NOTICE]
> > > switch_core_session.c:1088 Close Channel sofia/external/1000
> > > at 192.168.2.9 [CS_DESTROY]
> > > 
> > > 
> > > 
> > > > Date: Tue, 26 Jan 2010 22:09:29 -0500
> > > > From: frank at carmickle.com
> > > > To: freeswitch-users at lists.freeswitch.org
> > > > Subject: Re: [Freeswitch-users] External Profile
> > > Problem
> > > > 
> > > > On Tue, Jan 26, juan camilo ospina quintero wrote:
> > > > > 
> > > > > Hi, 
> > > > > 
> > > > > im trying to establish a simple conference using
> > > freeswitch and sailfin, sailfin is
> > > > > and application server that works with
> > > SipSevlets.
> > > > > the all thing works as follow.
> > > > > 
> > > > > two softphone register with freeswitch, extension
> > > 1000 and 1001
> > > > > 1000 sends and invite to 1001, this invite goes
> > > to sailfin, i use this
> > > > > 
> > > > > <extension name="redirect">
> > > > > <condition
> > > field="network_addr"
> > > expression="^192\.168\.2\.9$"/> 
> > > 
> > > > > <condition
> > > field="destination_number"
> > > expression="^1(\d+)$">
> > > > > <action application="bridge"
> > > data="sofia/external/$0 at 127.0.0.1:5070"/>
> > > > 
> > > > And what is the external profile listening on? 
> > > Probably not the loopback address. Set up another profile
> > > listening on 127.0.0.1 and bridge to that.
> > > > 
> > > > I could be off base here because you haven't given
> > > us very much info about your freeswitch configurations.
> > > > 
> > > > --FC
> > > > 
> > > > _______________________________________________
> > > > 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
> > > 
> > > Windows Live: Friends
> > > get your Flickr, Yelp, and Digg updates when they e-mail
> > > you. 
> > > 
> > > -----Inline Attachment Follows-----
> > > 
> > > _______________________________________________
> > > 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
> > > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > 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
> 
> Hotmail: Trusted email with powerful SPAM protection. Sign up now. _______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100130/c52e56cd/attachment-0002.html 


More information about the FreeSWITCH-users mailing list