<html><head><base href="x-msg://56/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Ben<div><br></div><div>I do it as follows.</div><div><br></div><div>Go to File Editor -> dialplan -> default.xml</div><div><br></div><div>Look for <extension name="to-sip"></div><div><br></div><div>At the very end of the extension there is a part that already shows you how to route to IP.</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">                        </span><!-- uncomment this if you want to dial to a fixed IP addr --></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span><!-- <action application="bridge" data="sofia/internal/${destnumber}@192.168.1.1"/> --></div></div><div><br></div><div><br></div><div>So you could have something like this.</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">                        </span><action application="set" data="sip_contact_user_replacement=${destnumber}"/><span class="Apple-tab-span" style="white-space:pre">                        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span><action application="set" data="hangup_after_bridge=yes"/></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span><action application="bridge" data="sofia/internal/${destnumber}@192.168.1.1"/></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span><action application="hangup" data="${originate_disposition}"/></div><div><span class="Apple-tab-span" style="white-space:pre">                </span></div></div><div>If you need to setup a DID then you could do something like this.</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span><extension name="to-switchboard" ></div><div><span class="Apple-tab-span" style="white-space:pre">                </span> <condition field="destination_number" expression="xxxxxxxx"> ( REPLACE xxxxxx with the number dialled on the PSTN)</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span><action application="set" data="span=${sip_h_X-FreeTDM-SpanName}"/></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span><action application="log" data="INFO Incoming CALL for switchboard on span=${span}"/></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span><action application="set" data="hangup_after_bridge=yes"/></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span><action application="bridge" data="sofia/internal/yyyyyyyyy@192.168.1.1"/> (REPLACE yyyyyy with the destination number of the SIP Phone this call needs to go to)</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span><action application="hangup" data="${originate_disposition}"/></div><div><span class="Apple-tab-span" style="white-space:pre">                </span> </condition></div><div><span class="Apple-tab-span" style="white-space:pre">        </span></extension></div></div><div><br></div><div><br></div><div>If your calls need to be routed through the WAN to branch locations etc and you don't want to use the default ulaw/alaw then you could force the codec on the B-Leg of the call to what ever codec you prefer. This will depend on what codecs is supported on the end devices as well as if your card supports transcoding.</div><div><br></div><div>It could look something like this:</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span><extension name="to-switchboard" ></div><div><span class="Apple-tab-span" style="white-space: pre; ">                </span> <condition field="destination_number" expression="xxxxxxxx"><span class="Apple-tab-span" style="white-space: pre; ">                </span></div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span><action application="set" data="span=${sip_h_X-FreeTDM-SpanName}"/></div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span><action application="log" data="INFO Incoming CALL for switchboard on span=${span}"/></div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span><action application="set" data="hangup_after_bridge=yes"/></div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span><action application="bridge" data="sofia/internal/yyyyyyyyy@192.168.1.1"/></div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span><action application="hangup" data="{absolute_codec_string=GSM} ${originate_disposition}"/></div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span><action application="hangup" data="${originate_disposition}"/></div><div><span class="Apple-tab-span" style="white-space: pre; ">                </span> </condition></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span></extension></div></div><div><br></div><div><br></div><div>These are just simple examples you can use.</div><div><br></div><div>Hope this is helpful.</div><div><br></div><div><br></div><div>Regards</div><div>Deon</div><div><br></div><div><br><div><div>On Aug 17, 2011, at 5:32 PM, Ben Naylor wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="EN-GB" link="blue" vlink="purple"><div class="WordSection1" style="page: WordSection1; "><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Hello<o:p></o:p></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Apologies if this is in the wrong place, I am a complete beginner at Freeswitch!<o:p></o:p></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Has anyone had much joy with using the above to route calls from ISDN to a SIP provider? I have setup the SMG which is a stripped down version of Freeswitch, but am struggling to work out what to configure to get this working.<o:p></o:p></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">So far I have tried to set up an external gateway to my provider, but this hasn’t appeared in the SMG Web-gui as a SIP profile. My provider doesn’t required auth by the way, they have just given me an IP to connect to.<o:p></o:p></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Any help is greatly appreciated<o:p></o:p></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Kind regards<o:p></o:p></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Ben<o:p></o:p></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div></div><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" style="color: blue; text-decoration: underline; ">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" style="color: blue; text-decoration: underline; ">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" style="color: blue; text-decoration: underline; ">http://www.freeswitch.org</a><br></div></blockquote></div><br></div></body></html>