After some more experiments I have a working replacement for the asterisk box we were using before, which is great. I had problems getting incoming calls to work. Changing the entry in acl.conf.xml from: <list name="domains" default="deny"> <node type="allow" domain="$${domain}"/> </list> to: <list name="domains" default="allow"> <node type="allow" domain="$${domain}"/> </list> and reloading xml works but this gets reverted every time FS starts up. I've scanned the wiki docs and can't see anything pertaining to that. Why/where is this happening and how do I make it the default? Actually, the question should probably be is it sensible to do that? - the box is out on the internet and I really only want to take incoming calls from voiptalk.org, but I can't find a list of IPs on their site which I could create an acl from... Second question: I have tried this example for an answer machine (mainly because it looked the shortest and simplest of the examples listed): http://wiki.freeswitch.org/wiki/Examples_answermachine I get this error: 2010-02-06 19:01:26.799118 [ERR] answermachine.js:135 ReferenceError: email is not defined Which is relating to this line: email(eMailFrom, eMailTo, "Subject: " + tmp_eMailSubject, eMailBody, tmp_Filename); The script says it requires mod_spidermonkey_etpan, but I can't find any reference to that anywhere (I'm using svn trunk). Where is it? Thanks, Matt - roughly 1% up the FreeSWITCH learning curve and climbing... PS: a nice FreeSWITCH 'cookbook' which starts out at the most simple example and goes on to add more juicy, *working* features would get my money any day. Hint, hint! :-)
On Sun, Feb 07, Matthew Law wrote:
After some more experiments I have a working replacement for the asterisk box we were using before, which is great.
I had problems getting incoming calls to work. Changing the entry in acl.conf.xml from:
<list name="domains" default="deny"> <node type="allow" domain="$${domain}"/> </list>
to:
<list name="domains" default="allow"> <node type="allow" domain="$${domain}"/> </list>
and reloading xml works but this gets reverted every time FS starts up. I've scanned the wiki docs and can't see anything pertaining to that. Why/where is this happening and how do I make it the default? Actually, the question should probably be is it sensible to do that? - the box is out on the internet and I really only want to take incoming calls from voiptalk.org, but I can't find a list of IPs on their site which I could create an acl from...
This is what gateway definitions are for in sofia.
Second question: I have tried this example for an answer machine (mainly because it looked the shortest and simplest of the examples listed):
Is voicemail not what your looking for? I understand the frustration of trying to get things working first run. I found reading rereading and rereading the wiki to be most helpful. You start to get a sense for how things work. There are usually 100 ways to accomplish the same task in fs. Over time you'll start to figure which ones work best for your setup. You should jump in the weekly conf call. Lots of people there can give you a hand. --FC
On Sun, February 7, 2010 2:59 pm, Frank Carmickle wrote:
This is what gateway definitions are for in sofia.
Second question: I have tried this example for an answer machine (mainly because it looked the shortest and simplest of the examples listed):
Is voicemail not what your looking for?
I understand the frustration of trying to get things working first run. I found reading rereading and rereading the wiki to be most helpful. You start to get a sense for how things work. There are usually 100 ways to accomplish the same task in fs. Over time you'll start to figure which ones work best for your setup. You should jump in the weekly conf call. Lots of people there can give you a hand.
I'll read the wiki again :-) What I would like to do for the moment is route all calls to extension 200 if it is logged in, ring for 20 seconds then go to the answermachine. If 200 is not logged in, then go straight to answermachine. Answermachine in the current context could, I suppose, be a custom voicemail message for 200, but I do need it to be emailed to our group address. Eventually I want several extensions in a group called 'support'. Each one with their own voicemail so they can receive messages from other extensions but I want external callers to go to the 'answermachine' voicemail as before. What would be really cool is if I could wire that to RT so that it raises a support ticket with the message attached if the caller ID was recognised as one of our customers. If not, it should just get emailed to our group email address to be picked up by someone as per usual. Yes, I am finding FS difficult mainly because all of the information is there somewhere, it is just difficult to piece it all together. One thing is becoming clear: it is very powerful indeed and like many things in Unix land, it is the way you can chain each individual component together that makes it so capable. Thanks, Matt.
On Sun, February 7, 2010 2:59 pm, Frank Carmickle wrote:
On Sun, Feb 07, Matthew Law wrote:
After some more experiments I have a working replacement for the asterisk box we were using before, which is great.
I had problems getting incoming calls to work. Changing the entry in acl.conf.xml from:
<list name="domains" default="deny"> <node type="allow" domain="$${domain}"/> </list>
to:
<list name="domains" default="allow"> <node type="allow" domain="$${domain}"/> </list>
and reloading xml works but this gets reverted every time FS starts up. I've scanned the wiki docs and can't see anything pertaining to that. Why/where is this happening and how do I make it the default? Actually, the question should probably be is it sensible to do that? - the box is out on the internet and I really only want to take incoming calls from voiptalk.org, but I can't find a list of IPs on their site which I could create an acl from...
This is what gateway definitions are for in sofia.
I'm still struggling with this. How where do I tell sofia to allow incoming connections from this gateway? Here's my sip_profiles/external/voiptalk.org.xml with the sensitive stuff removed: <include> <gateway name="voiptalk"> <param name="username" value="XXXXXXX" /> <param name="realm" value="voiptalk.org" /> <param name="from-user" value="XXXXXXX"/> <param name="from-domain" value="voiptalk.org"/> <param name="password" value="XXXXXXX" /> <param name="extension" value="voiptalk-incoming"/> <param name="proxy" value="voiptalk.org"/> <param name="register-proxy" value="voiptalk.org"/> <param name="expire-seconds" value="600"/> <param name="register" value="true"/> <param name="ping" value="25"/> </gateway> </include> Do I need to add something to this file or maybe sofia.conf.xml to allow connections from this domain? Most everything else is working now, just banging my head on this. Thanks, Matt.
On Tue, Feb 9, 2010 at 1:53 AM, Matthew Law <matt@webcontracts.co.uk> wrote:
On Sun, February 7, 2010 2:59 pm, Frank Carmickle wrote:
On Sun, Feb 07, Matthew Law wrote:
After some more experiments I have a working replacement for the asterisk box we were using before, which is great.
I had problems getting incoming calls to work. Changing the entry in acl.conf.xml from:
<list name="domains" default="deny"> <node type="allow" domain="$${domain}"/> </list>
to:
<list name="domains" default="allow"> <node type="allow" domain="$${domain}"/> </list>
and reloading xml works but this gets reverted every time FS starts up. I've scanned the wiki docs and can't see anything pertaining to that. Why/where is this happening and how do I make it the default? Actually, the question should probably be is it sensible to do that? - the box is out on the internet and I really only want to take incoming calls from voiptalk.org, but I can't find a list of IPs on their site which I could create an acl from...
This is what gateway definitions are for in sofia.
I'm still struggling with this. How where do I tell sofia to allow incoming connections from this gateway?
Here's my sip_profiles/external/voiptalk.org.xml with the sensitive stuff removed:
<include> <gateway name="voiptalk"> <param name="username" value="XXXXXXX" /> <param name="realm" value="voiptalk.org" /> <param name="from-user" value="XXXXXXX"/> <param name="from-domain" value="voiptalk.org"/> <param name="password" value="XXXXXXX" /> <param name="extension" value="voiptalk-incoming"/> <param name="proxy" value="voiptalk.org"/> <param name="register-proxy" value="voiptalk.org"/> <param name="expire-seconds" value="600"/> <param name="register" value="true"/> <param name="ping" value="25"/> </gateway> </include>
Do I need to add something to this file or maybe sofia.conf.xml to allow connections from this domain? Most everything else is working now, just banging my head on this.
Matt,
Are you trying to let calls in from voiptalk.org? Do you want to auth all inbound calls or do you just want to blanket allow them and handle them in the dialplan? If you just want to allow calls in from the voiptalk.org IP address then you need to use the cidr tag in acl.conf.xml: <list name="domains" default="deny"> <node type="allow" domain="$${domain}"/> <node type="allow" cidr="1.2.3.4/32"/> </list> -MC
On Tue, February 9, 2010 3:45 pm, Michael Collins wrote:
Are you trying to let calls in from voiptalk.org? Do you want to auth all inbound calls or do you just want to blanket allow them and handle them in the dialplan? If you just want to allow calls in from the voiptalk.org IP address then you need to use the cidr tag in acl.conf.xml: <list name="domains" default="deny"> <node type="allow" domain="$${domain}"/> <node type="allow" cidr="1.2.3.4/32"/> </list>
AFAIK, they don't publish their IP addresses (I see incoming calls from lots of different IPs in various subnets). So at the moment I just want to allow all and filter in the dialplan (which I think I am doing now). I just need a config that will survive a reboot and changing acl.conf.xml doesn't at the moment. Thanks, Matt.
On Tue, Feb 09, Matthew Law wrote:
On Sun, February 7, 2010 2:59 pm, Frank Carmickle wrote:
On Sun, Feb 07, Matthew Law wrote:
After some more experiments I have a working replacement for the asterisk box we were using before, which is great.
I had problems getting incoming calls to work. Changing the entry in acl.conf.xml from:
<list name="domains" default="deny"> <node type="allow" domain="$${domain}"/> </list>
to:
<list name="domains" default="allow"> <node type="allow" domain="$${domain}"/> </list>
and reloading xml works but this gets reverted every time FS starts up. I've scanned the wiki docs and can't see anything pertaining to that. Why/where is this happening and how do I make it the default? Actually, the question should probably be is it sensible to do that? - the box is out on the internet and I really only want to take incoming calls from voiptalk.org, but I can't find a list of IPs on their site which I could create an acl from...
This is what gateway definitions are for in sofia.
I'm still struggling with this. How where do I tell sofia to allow incoming connections from this gateway?
Here's my sip_profiles/external/voiptalk.org.xml with the sensitive stuff removed:
<include> <gateway name="voiptalk"> <param name="username" value="XXXXXXX" /> <param name="realm" value="voiptalk.org" /> <param name="from-user" value="XXXXXXX"/> <param name="from-domain" value="voiptalk.org"/> <param name="password" value="XXXXXXX" /> <param name="extension" value="voiptalk-incoming"/> <param name="proxy" value="voiptalk.org"/> <param name="register-proxy" value="voiptalk.org"/> <param name="expire-seconds" value="600"/> <param name="register" value="true"/> <param name="ping" value="25"/> </gateway> </include>
Do I need to add something to this file or maybe sofia.conf.xml to allow connections from this domain? Most everything else is working now, just banging my head on this.
After doing a sofia profile $profile rescan reloadxml it still doesn't work? Are you sure it isn't hitting the dialplan and failing? I have never used <param name="extension" value="voiptalk-incoming"/> I usually leave it commented and then match on the destination in the dialplan. <condition field="destination_number" expression="^(4124134655|4128484655|19734226137)$"> HTH --FC
On Wed, February 10, 2010 2:46 am, Frank Carmickle wrote:
After doing a sofia profile $profile rescan reloadxml
it still doesn't work? Are you sure it isn't hitting the dialplan and failing? I have never used
<param name="extension" value="voiptalk-incoming"/>
I usually leave it commented and then match on the destination in the dialplan.
<condition field="destination_number" expression="^(4124134655|4128484655|19734226137)$">
HTH --FC
It was working (there was another issue but that is now fixed too). I was not reloading the sofia config properly. You live and learn. Thanks, Matt.
participants (3)
-
Frank Carmickle
-
Matthew Law
-
Michael Collins