<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16444"></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Segoe UI">
<DIV>Hi All</DIV>
<DIV> </DIV>
<DIV>Ok, so next episode in the saga of getting this monster of the ground :-)</DIV>
<DIV> </DIV>
<DIV>I've gotten the FS up and running pretty much I guess, but I'm missing something.</DIV>
<DIV>It has been set up as per the 'multi-homed' document (<A href="http://wiki.freeswitch.org/wiki/Multi_home_tutorial">http://wiki.freeswitch.org/wiki/Multi_home_tutorial</A>).</DIV>
<DIV>I want to use the webinterface in pfSense, as it is the easiest for me to manage, and gives me a better overview.</DIV>
<DIV> </DIV>
<DIV>If I do a reloadxml it gives me this output on the console:</DIV>
<DIV><A href="mailto:freeswitch@firewall.fribert.dk">freeswitch@firewall.fribert.dk</A>> reloadxml<BR>2009-12-07 21:21:40.381445 [ERR] switch_xml.c:1282 Couldnt open /usr/local/freeswitch/conf/autoload_configs/../sip_profiles/lan/*.xml (No such file or directory)<BR>Error including /usr/local/freeswitch/conf/autoload_configs/../sip_profiles/lan/*.xml (No such file or directory)<BR>2009-12-07 21:21:40.719721 [INFO] mod_enum.c:808 ENUM Reloaded<BR>2009-12-07 21:21:40.719721 [INFO] switch_time.c:661 Timezone reloaded 530 definitions<BR>API CALL [reloadxml()] output:<BR>+OK [Success]</DIV>
<DIV> </DIV>
<DIV>I'm not sure if it's a genuine problem,as I can see it, it just complains that I haven't created any sip_profiles in /lan, but is that necessary?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Looking at the status I see:</DIV>
<DIV>sofia status profile internal<BR>API CALL [sofia(status profile internal)] output:<BR>=================================================================================================<BR>Name internal<BR>Domain Name N/A<BR>DBName sofia_reg_internal<BR>Pres Hosts<BR>Dialplan XML<BR>Context public<BR>Challenge Realm auto_from<BR>RTP-IP 10.11.12.25<BR>Ext-RTP-IP 10.11.12.25<BR>SIP-IP 10.11.12.25<BR>Ext-SIP-IP 10.11.12.25<BR>URL sip:mod_sofia@10.11.12.25:5060<BR>BIND-URL sip:mod_sofia@10.11.12.25:5060<BR>HOLD-MUSIC local_stream://moh<BR>OUTBOUND-PROXY N/A<BR>CODECS <A href="mailto:G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM">G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM</A><BR>TEL-EVENT 101<BR>DTMF-MODE rfc2833<BR>CNG 13<BR>SESSION-TO 0<BR>MAX-DIALOG 0<BR>NOMEDIA false<BR>LATE-NEG false<BR>PROXY-MEDIA false<BR>AGGRESSIVENAT false<BR>STUN-ENABLED true<BR>STUN-AUTO-DISABLE false<BR>CALLS-IN 10<BR>FAILED-CALLS-IN 5<BR>CALLS-OUT 0<BR>FAILED-CALLS-OUT 0</DIV>
<DIV> </DIV>
<DIV>Registrations:<BR>=================================================================================================<BR>Call-ID: MThhODdkOWFkMGM4YTk5OWU1MTMzMjg5NmFjOGFhNWU.<BR>User: <A href="mailto:1001@10.11.12.25">1001@10.11.12.25</A><BR>Contact: "1001" <sip:1001@10.11.12.145:59650;rinstance=7c2be2513804dcea;fs_nat=yes;fs_path=sip%3A1001%4010.11.12.145%3A59650%3Brinstance%3D7c2be2513804dcea><BR>Agent: X-Lite release 1103k stamp 53621<BR>Status: Registered(UDP-NAT)(unknown) EXP(2009-12-07 23:03:40)<BR>Host: firewall.fribert.dk<BR>IP: 10.11.12.145<BR>Port: 59650<BR>Auth-User: 1001<BR>Auth-Realm: 10.11.12.25</DIV>
<DIV> </DIV>
<DIV>Call-ID: OTc2NTJkMmU3MGQ0MDNkN2NiZDgzZDFjYzQ1MzYxMDY.<BR>User: <A href="mailto:1002@10.11.12.25">1002@10.11.12.25</A><BR>Contact: "1002" <sip:1002@10.11.12.195:4117;rinstance=8c18309a2c957d6a;fs_nat=yes;fs_path=sip%3A1002%4010.11.12.195%3A4117%3Brinstance%3D8c18309a2c957d6a><BR>Agent: 3CXVoipPhone 3.1.6288.0<BR>Status: Registered(UDP-NAT)(unknown) EXP(2009-12-07 23:25:09)<BR>Host: firewall.fribert.dk<BR>IP: 10.11.12.195<BR>Port: 4117<BR>Auth-User: 1002<BR>Auth-Realm: 10.11.12.25</DIV>
<DIV> </DIV>
<DIV>=================================================================================================</DIV>
<DIV> </DIV>
<DIV>And...</DIV>
<DIV> </DIV>
<DIV>sofia status profile external<BR>API CALL [sofia(status profile external)] output:<BR>=================================================================================================<BR>Name external<BR>Domain Name N/A<BR>DBName sofia_reg_external<BR>Pres Hosts<BR>Dialplan XML<BR>Context public<BR>Challenge Realm auto_to<BR>RTP-IP 87.61.18.196<BR>Ext-RTP-IP 87.61.18.196<BR>SIP-IP 87.61.18.196<BR>Ext-SIP-IP 87.61.18.196<BR>URL sip:mod_sofia@87.61.18.196:5080<BR>BIND-URL sip:mod_sofia@87.61.18.196:5080<BR>HOLD-MUSIC local_stream://moh<BR>OUTBOUND-PROXY N/A<BR>CODECS PCMU,PCMA,GSM<BR>TEL-EVENT 101<BR>DTMF-MODE rfc2833<BR>CNG 13<BR>SESSION-TO 0<BR>MAX-DIALOG 0<BR>NOMEDIA false<BR>LATE-NEG false<BR>PROXY-MEDIA false<BR>AGGRESSIVENAT false<BR>STUN-ENABLED true<BR>STUN-AUTO-DISABLE false<BR>CALLS-IN 0<BR>FAILED-CALLS-IN 0<BR>CALLS-OUT 2<BR>FAILED-CALLS-OUT 2</DIV>
<DIV> </DIV>
<DIV>Registrations:<BR>=================================================================================================<BR>=================================================================================================</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>
<DIV>In my Dialplan I've created these two entries:</DIV>
<DIV> </DIV>
<DIV>-----</DIV>
<DIV>Extension Name musimi.dk</DIV>
<DIV>Enabled true</DIV>
<DIV>Order 001</DIV>
<DIV>Description ...</DIV>
<DIV> </DIV>
<DIV>condition ^0(.\d+)$</DIV>
<DIV>action bridge sofia/gateway/musimi.dk/$1</DIV>
<DIV>
<DIV>-----</DIV>
<DIV> </DIV></DIV>
<DIV>and</DIV>
<DIV> </DIV>
<DIV>
<DIV>-----</DIV>
<DIV>Extension Name 10.11.12.25</DIV>
<DIV>Enabled true</DIV>
<DIV>Order 002</DIV>
<DIV>Description ...</DIV>
<DIV> </DIV>
<DIV>action bridge sofia/internal/$1</DIV>
<DIV> </DIV>
<DIV>I'm not sure if the latter is correct or needed to make local calls?</DIV>
<DIV>But anyways, it doesn't seem to react as per my intentions.</DIV>
<DIV> </DIV></DIV></DIV>
<DIV>If I try and make a local call from 1001 to 1002 it says</DIV>
<DIV> 2009-12-07 21:40:02.776210 [NOTICE] switch_channel.c:602 New Channel <A href="mailto:sofia/internal/1001@10.11.12.25">sofia/internal/1001@10.11.12.25</A> [b115e2b1-70e3-de11-af59-000c29b7b4cb]<BR>2009-12-07 21:40:02.776210 [INFO] mod_dialplan_xml.c:252 Processing 1001->1002 in context default<BR>2009-12-07 21:40:02.796449 [NOTICE] switch_channel.c:602 New Channel sofia/external/$1 [aa22e3b1-70e3-de11-af59-000c29b7b4cb]<BR>2009-12-07 21:40:02.874492 [NOTICE] sofia.c:3770 Hangup sofia/external/$1 [CS_CONSUME_MEDIA] [NO_ROUTE_DESTINATION]<BR>2009-12-07 21:40:02.894599 [INFO] mod_dptools.c:2091 Originate Failed. Cause: NO_ROUTE_DESTINATION<BR>2009-12-07 21:40:02.894599 [NOTICE] mod_dptools.c:2123 Hangup <A href="mailto:sofia/internal/1001@10.11.12.25">sofia/internal/1001@10.11.12.25</A> [CS_EXECUTE] [NO_ROUTE_DESTINATION]<BR>2009-12-07 21:40:02.894599 [NOTICE] switch_core_session.c:1085 Session 15 (sofia/external/$1) Ended<BR>2009-12-07 21:40:02.894599 [NOTICE] switch_core_session.c:1087 Close Channel sofia/external/$1 [CS_DESTROY]<BR>2009-12-07 21:40:02.894599 [NOTICE] switch_core_session.c:1085 Session 14 (<A href="mailto:sofia/internal/1001@10.11.12.25">sofia/internal/1001@10.11.12.25</A>) Ended<BR>2009-12-07 21:40:02.894599 [NOTICE] switch_core_session.c:1087 Close Channel <A href="mailto:sofia/internal/1001@10.11.12.25">sofia/internal/1001@10.11.12.25</A> [CS_DESTROY]<BR></DIV>
<DIV> </DIV>
<DIV>As I read it it goes into context default, and then tries to create an external channel, which I don't understand why? And then it fails of course.</DIV>
<DIV> </DIV>
<DIV>Then if I try to do an external call (with the leading 0) it gives me:</DIV>
<DIV>2009-12-07 21:41:33.655915 [NOTICE] switch_channel.c:602 New Channel <A href="mailto:sofia/internal/1001@10.11.1.25">sofia/internal/1001@10.11.1.25</A> [25260ce8-70e3-de11-af59-000c29b7b4cb]<BR>2009-12-07 21:41:33.655915 [INFO] mod_dialplan_xml.c:252 Processing 1001->012345678 in context dfault<BR>2009-12-07 21:41:33.655915 [NOTICE] switch_channel.c:602 New Channel sofia/external/$1 [36e10ce870e3-de11-af59-000c29b7b4cb]<BR>2009-12-07 21:41:33.755921 [NOTICE] sofia.c:3770 Hangup sofia/external/$1 [CS_CONSUME_MEDIA] [NOROUTE_DESTINATION]<BR>2009-12-07 21:41:33.755921 [INFO] mod_dptools.c:2091 Originate Failed. Cause: NO_ROUTE_DESTINATON<BR>2009-12-07 21:41:33.755921 [NOTICE] mod_dptools.c:2123 Hangup <A href="mailto:sofia/internal/1001@10.11.12.25">sofia/internal/1001@10.11.12.25</A> [C_EXECUTE] [NO_ROUTE_DESTINATION]<BR>2009-12-07 21:41:33.755921 [NOTICE] switch_core_session.c:1085 Session 17 (sofia/external/$1) Ened<BR>2009-12-07 21:41:33.755921 [NOTICE] switch_core_session.c:1087 Close Channel sofia/external/$1 [S_DESTROY]<BR>2009-12-07 21:41:33.755921 [NOTICE] switch_core_session.c:1085 Session 16 (<A href="mailto:sofia/internal/1001@1.11.12.25">sofia/internal/1001@1.11.12.25</A>) Ended<BR>2009-12-07 21:41:33.755921 [NOTICE] switch_core_session.c:1087 Close Channel sofia/internal/100110.11.12.25 [CS_DESTROY]<BR></DIV>
<DIV>So for me, it looks like it never comes to the dialplan I've entered into the pfsense interface???</DIV>
<DIV>I've used the gateway value instead of the profile value in my bridge.</DIV>
<DIV>So the question is, do I go and enter the 'default.xml' for the dialplan, or what do I do? What have I missed here???</DIV>
<DIV> </DIV>
<DIV> </DIV></BODY></HTML>