[Freeswitch-users] Svar: Re: pfSense with Freeswitch - so far so good, but no calls going through
mailinglist
mailinglist at fribert.dk
Wed Dec 9 13:46:00 PST 2009
Hi Michael
Thankyou for the excellent wiki article, yes, I did follow your guide there, all the way except to 'dialplan' and it seems that's the problem at the moment.
I would very much like to create the dialplan in the webinterface, and not in the public.xml file.
But at the moment it only uses the public.xml file :-(
Great writeup you made, and it has brought me a long way.
BR
Fribert
>>> 09-12-2009 kl. 16:16 skrev Michael Gende <mgende at gendesign.com> i meddelelsen <a87d43fd0912090716m689f6690m105264b874f12afa at mail.gmail.com>:
Hey There,
I came in not seeing any former posts of yours, so if this one is unhelpful, just delete.
I did my FS install using PFsense as well. Its been working famously for a few months now. Very happy.
I wrote what I discovered for FS on PFsense in this wiki: http://wiki.freeswitch.org/wiki/Multi_home_tutorial
I assume since you're using PFsense that your computer is functioning as a firewall AND a phone system (a dual homed host, in other words). That's what the wiki attempt above is aimed at.
If you follow those instructions, you'll send and receive calls (as we were and are able to). It is working for us, at least.
One problem in your case: I didn't really like using the PFsense Web interface when configuring FS (except for installing FS and setting some system parameters. Its great for PFsense, though).
It helped me more to get in with ssh and vi and make FS work. Having done that successfully, you'll be more likely to effectively use the PFsense web interface for FS, as it's really just a "short cut" for someone that understands the FS file system, in my opinion.
Good luck,
Mike G.
On Tue, Dec 8, 2009 at 1:20 PM, mailinglist <mailinglist at fribert.dk> wrote:
Hi All
Ok, after reading a bit more I think I see what I've done wrong, but I don't know how to fix it properly.
Looking in the Dialplan directory I see the following:
default (dir)
default.xml
features.xml
public (dir)
public.xml
Under the default dir the webinterface has created the 001_musimi.dk.xml file that I've created.
But as I understand it, it doesn't use it.
How do I make it use it, I would very much like to keep the webinterface editor, and not have to do it via ssh and vi all the time.
>>> 08-12-2009 kl. 07:05 skrev "mailinglist" <mailinglist at fribert.dk> i meddelelsen <4B1DFABC020000E1000002C2 at mail.fribert.dk>:
Hi Mark
Ok, thanks.
Yes I have a gateway placed in external called musimi.dk (or should it be in public?), and I'll just create the empty XML's in lan to get rid of that error.
I'll remove the second part of the dialplan, my idea was that it was needed for calls between sip phones hooked up to the freeswitch.
Now the remaining problem:
When I call ext 1002 from ext 1001 I see this message and get an error, the same goes for dialing 0XXXXXXXX to get an external number:
2009-12-08 07:02:20.522883 [NOTICE] switch_channel.c:602 New Channel sofia/internal/1001 at 10.11.12.25 [b2b1253f-bfe3-de11-af59-000c29b7b4cb]
2009-12-08 07:02:20.522883 [INFO] mod_dialplan_xml.c:252 Processing 1001->1002 in context default
2009-12-08 07:02:20.522883 [NOTICE] switch_channel.c:602 New Channel sofia/external/$1 [199e263f-bfe3-de11-af59-000c29b7b4cb]
2009-12-08 07:02:20.642371 [NOTICE] sofia.c:3770 Hangup sofia/external/$1 [CS_CONSUME_MEDIA] [NO_ROUTE_DESTINATION]
2009-12-08 07:02:20.642371 [INFO] mod_dptools.c:2091 Originate Failed. Cause: NO_ROUTE_DESTINATION
2009-12-08 07:02:20.642371 [NOTICE] mod_dptools.c:2123 Hangup sofia/internal/1001 at 10.11.12.25 [CS_EXECUTE] [NO_ROUTE_DESTINATION]
2009-12-08 07:02:20.663502 [NOTICE] switch_core_session.c:1085 Session 2 (sofia/external/$1) Ended
2009-12-08 07:02:20.663502 [NOTICE] switch_core_session.c:1087 Close Channel sofia/external/$1 [CS_DESTROY]
2009-12-08 07:02:20.663502 [NOTICE] switch_core_session.c:1085 Session 1 (sofia/internal/1001 at 10.11.12.25) Ended
2009-12-08 07:02:20.663502 [NOTICE] switch_core_session.c:1087 Close Channel sofia/internal/1001 at 10.11.12.25 [CS_DESTROY]
I don't see any mention of the statements in the Dialplan, so for me it looks like it haven't registered the Dialplan?
Best regards
Kenneth
>>> 08-12-2009 kl. 03:05 skrev Mark Crane <mctch at yahoo.com> i meddelelsen 659603.29094.qm at web56408.mail.re3.yahoo.com:
Question ----------------------------------------------
If I do a reloadxml it gives me this output on the console:
freeswitch at firewall.fribert.dk ( http://us.mc564.mail.yahoo.com/mc/compose?to=freeswitch@firewall.fribert.dk )> reloadxml
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)
Error including /usr/local/freeswitch/conf/autoload_configs/../sip_profiles/lan/*.xml (No such file or directory)
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?
Response: ----------------------------------------------
This isn't really a problem. To get rid of the error simply put a blank xml file into each folder as in the internal and external directories. Dump the lan directory and lan profile as mentioned earlier.
Question ----------------------------------------------
Extension Name musimi.dk
Enabled true
Order 001
Description ...
condition ^0(.\d+)$
action bridge sofia/gateway/musimi.dk/$1
Response: ----------------------------------------------
This is correct as long as you have a gateway that is registered called musimi.dk
Question ----------------------------------------------
Extension Name 10.11.12.25
Enabled true
Order 002
Description ...
action bridge sofia/internal/$
Response: ----------------------------------------------
No idea what this is for its not needed as far as I can tell.
Now please summarize what you still need help on.
Mark J Crane
http://fusionpbx.com
pfSense FreeSWITCH package developer
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091209/32371c67/attachment-0002.html
More information about the FreeSWITCH-users
mailing list