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