[Freeswitch-users] Easy question, I hope just need to proxy port 5060 to 5080

David Ponzone david.ponzone at ipeva.fr
Wed Aug 25 16:27:49 PDT 2010


What you need to add is the provider context.
For instance, add in dialplan/ a file called provider.xml with the  
following content:

<include>
   <context name="provider">
	<extension name="default">
		<condition field="destination_number" expression="^(3015551212)$">
			<action application="bridge" data="sofia/gateway/sipxecs/$1"/>
		</condition>
	</extension>
   </context>
</include>

David Ponzone  Direction Technique
email: david.ponzone at ipeva.fr
tel:      01 74 03 18 97
gsm:   06 66 98 76 34

Service Client IPeva
tel:      0811 46 26 26
www.ipeva.fr  -   www.ipeva-studio.com

Ce message et toutes les pièces jointes sont confidentiels et établis  
à l'intention exclusive de ses destinataires. Toute utilisation ou  
diffusion non autorisée est interdite. Tout message électronique est  
susceptible d'altération. IPeva décline toute responsabilité au titre  
de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes  
pas destinataire de ce message, merci de le détruire immédiatement et  
d'avertir l'expéditeur.




Le 25/08/2010 à 21:17, Michael Scheidell a écrit :

>
>
> On 8/24/10 9:43 PM, David Ponzone wrote:
>>
>> Michael,
>>
>> what you want to achieve is pretty simple to do with FreeSWITCH,  
>> and is quite close from what I do.
>>
> Thanks for the reply
> (simple once I know where everything goes.. :-)
> I just loaded this last night.  nothing like the Mitel SX50's (bit  
> mapped options, digital pbx), 3com nbx (not really VOIP. was vo  
> layer2 multicast), and more powerful then sipxecs..
>
>> Or you do like me: you split calls coming into public to a specific  
>> contex, based on source IP with such extensions in public.xml:
>>
>>   <extension name="from_provider">
>>     <condition field="network_addr" expression="X.X.X.X"/>
>>     <condition field="destination_number" expression="^(.*)$">
>>       <action application="transfer" data="$1 XML provider"/>
>>     </condition>
>>   </extension>
>>
> is above right? from_provider, then $1 XML provider? (assuming  
> _{provider} is the friendly name)
>>   <extension name="from_sipxecs">
>>     <condition field="network_addr" expression="Y.Y.Y.Y"/>
>>     <condition field="destination_number" expression="^(.*)$">
>>       <action application="transfer" data="$1 XML sipxecs"/>
>>     </condition>
>>   </extension>
>>
>> And you just have to add the right extensions in those dialplans to  
>> bridge calls to the other side.
>> That's the easy part.
>>
> famous last words.  where caller is 561-555-1212 and destination is  
> 301-555-1212. I see it coming from provider in public context:(i hope)
> close:
> Dialplan: sofia/external/5615551212 at 68.100.226.97 parsing [public- 
> >from_provider] continue=false
> Dialplan: sofia/external/5615551212 at 68.100.226.97 Regex (PASS)  
> [from_provider] network_addr(68.233.226.97) =~ /68.233.226.97/  
> break=on-false
> Dialplan: sofia/external/5615551212 at 68.100.226.97 Regex (PASS)  
> [from_provider] destination_number(3015551212) =~ /^(.*)$/ break=on- 
> false
> Dialplan: sofia/external/5615551212 at 68.100.226.97 Action  
> transfer(3015551212 XML provider)
> [snip]
> 2010-08-25 10:52:16.276232 [DEBUG] mod_dptools.c:748 sofia/external/5615551212 at 68.100.226.97 
>  SET [outside_call]=[true]
> [snip] gets this far:
> 2010-08-25 10:52:16.278237 [INFO] mod_dialplan_xml.c:315 Processing  
> 5615551212->3015551212 in context provider
> 2010-08-25 10:52:16.278237 [WARNING] mod_dialplan_xml.c:345 Context  
> provider not found
>
> I guess I don't understand.
> as a test, PSTN number is 3015551212, coming from provider to  
> sipxecs, do I put something like this in dialplan/provider.xml?
> dialplan/public/provider.xml?
>
> (I just want the call send to sipxecs.  I don't care about ringback,  
> timeouts.. I guess.. maybe I do for safety)
> so if a call come in to 3015551212, and its handled by sipxecs, and,  
> MAYBE, I think I want it to fall back to a cell phone if sipxecs is  
> down
> (say a 120 second timeout?)
> what do I put here? (what do I per where?)
>
> or this?
>
> <extension name="provider">
>   <condition field="destination_number" expression="^(3015551212)$">
>     <action application="bridge" data="sofia/gateway/sipxecs/$1"/>
>   </condition>
> </extension>
> (with 'bridge' I get 'so far', but still get
> 2010-08-25 15:14:15.590404 [INFO] mod_dialplan_xml.c:315 Processing  
> 5615551212->3015551212 in context provider
> 2010-08-25 15:14:15.590404 [WARNING] mod_dialplan_xml.c:345 Context  
> provider not found
> 2010-08-25 15:14:15.590404 [INFO] switch_core_state_machine.c:136 No  
> Route, Aborting
>
> -- 
> Michael Scheidell, CTO
> o: 561-999-5000
> d: 561-948-2259
> ISN: 1259*1300 sip:michael.scheidell at secnap.com
>
> > | SECNAP Network Security Corporation
> Certified SNORT Integrator
> 2008-9 Hot Company Award Winner, World Executive Alliance
> Five-Star Partner Program 2009, VARBusiness
> Best in Email Security,2010: Network Products Guide
> King of Spam Filters, SC Magazine 2008
>
> This email has been scanned and certified safe by SpammerTrap®.
> For Information please see http://www.secnap.com/products/spammertrap/
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100826/caee7fe4/attachment-0001.html 


More information about the FreeSWITCH-users mailing list