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