Issue adding a SIP Gateway
Hello all, Having an issue adding a gateway, and hoping someone can help. Please forgive me... still new to Freeswitch and XML, but I've exhausted all that I know, so I need to reach out. Running Ubuntu, and I installed Freeswitch following the wiki guide. Didn't appear to have any issues installing, didn't get any noticeable errors during the setup anyways. Been following the Freeswitch 1.0.6 book to add a gateway (using iptel) I've created the iptel.org.xml in both /opt/freeswitch/conf/sip_profiles/external and /usr/src/freeswitch/conf/sip_profiles/external However I am unable to get the gateway to load in fs_cli Looking at all the log data, it only gives notice regarding the example.com gateway... does not appear to mention iptel at all, and no err log shows regarding iptel I attempted to manually unregister/register iptel, but I get the following error when I try sofia profile external unregister iptel (same error with register iptel) Invalid gateway! Any ideas? Thanks Ryan Watkins Ryan Watkins Networking & Customer Support OCENS 19655 1st AVE S. #203 Seattle, WA 98148 Satellite Systems and Services: Iridium, Inmarsat, Globalstar, KVH ________________________________________________________ www.ocens.com<http://www.ocens.com/> | support.ocens.com<http://support.ocens.com/> Office: (206) 878-8270 | Cell: (360) 521-7334 | Fax: (206) 878-8314
Did you issue reloadxml? On Thursday 15 December 2011 19:25:38 Ryan Watkins wrote:
Hello all,
Having an issue adding a gateway, and hoping someone can help. Please forgive me... still new to Freeswitch and XML, but I've exhausted all that I know, so I need to reach out.
Running Ubuntu, and I installed Freeswitch following the wiki guide. Didn't appear to have any issues installing, didn't get any noticeable errors during the setup anyways. Been following the Freeswitch 1.0.6 book to add a gateway (using iptel)
I've created the iptel.org.xml in both /opt/freeswitch/conf/sip_profiles/external and /usr/src/freeswitch/conf/sip_profiles/external
However I am unable to get the gateway to load in fs_cli Looking at all the log data, it only gives notice regarding the example.com gateway... does not appear to mention iptel at all, and no err log shows regarding iptel
I attempted to manually unregister/register iptel, but I get the following error when I try sofia profile external unregister iptel (same error with register iptel)
Invalid gateway!
Any ideas?
Thanks Ryan Watkins
Ryan Watkins Networking & Customer Support
OCENS 19655 1st AVE S. #203 Seattle, WA 98148
Satellite Systems and Services: Iridium, Inmarsat, Globalstar, KVH ________________________________________________________ www.ocens.com<http://www.ocens.com/> | support.ocens.com<http://support.ocens.com/> Office: (206) 878-8270 | Cell: (360) 521-7334 | Fax: (206) 878-8314
I did run the" sofia profile external restart reloadxml" command.... It didn't load the new gateway, so that's why I tried registering the gateway specifically. From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Rob Hutton Sent: Thursday, December 15, 2011 4:54 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Issue adding a SIP Gateway Did you issue reloadxml? On Thursday 15 December 2011 19:25:38 Ryan Watkins wrote:
Hello all,
Having an issue adding a gateway, and hoping someone can help. Please forgive me... still new to Freeswitch and XML, but I've exhausted all that I know, so I need to reach out.
Running Ubuntu, and I installed Freeswitch following the wiki guide. Didn't appear to have any issues installing, didn't get any noticeable errors during the setup anyways. Been following the Freeswitch 1.0.6 book to add a gateway (using iptel)
I've created the iptel.org.xml in both /opt/freeswitch/conf/sip_profiles/external and /usr/src/freeswitch/conf/sip_profiles/external
However I am unable to get the gateway to load in fs_cli
Looking at all the log data, it only gives notice regarding the example.com gateway... does not appear to mention iptel at all, and no err log shows regarding iptel
I attempted to manually unregister/register iptel, but I get the following error when I try sofia profile external unregister iptel (same error with register iptel)
Invalid gateway!
Any ideas?
Thanks
Ryan Watkins
Ryan Watkins
Networking & Customer Support
OCENS
19655 1st AVE S. #203
Seattle, WA 98148
Satellite Systems and Services: Iridium, Inmarsat, Globalstar, KVH
________________________________________________________
www.ocens.com<http://www.ocens.com/<http://www.ocens.com%3chttp:/www.ocens.com/>> | support.ocens.com<http://support.ocens.com/>
Office: (206) 878-8270 | Cell: (360) 521-7334 | Fax: (206) 878-8314
Hi, try 'sofia profile external rescan restart reloadxml' But I'm not sure if you have to restart Freeswitch or 'reload mod_sofia' (dropping calls!) because you made changes in 'switch.conf.xml' with adding a gateway like mentioned here: http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files#Reloading greets. I did run the" sofia profile external restart reloadxml" command.... It didn't load the new gateway, so that's why I tried registering the gateway specifically. Did you issue reloadxml? On Thursday 15 December 2011 19:25:38 Ryan Watkins wrote:
Hello all,
Having an issue adding a gateway, and hoping someone can help. Please forgive me... still new to Freeswitch and XML, but I've exhausted all that I know, so I need to reach out.
Running Ubuntu, and I installed Freeswitch following the wiki guide. Didn't appear to have any issues installing, didn't get any noticeable errors during the setup anyways. Been following the Freeswitch 1.0.6 book to add a gateway (using iptel)
I've created the iptel.org.xml in both /opt/freeswitch/conf/sip_profiles/external and /usr/src/freeswitch/conf/sip_profiles/external
However I am unable to get the gateway to load in fs_cli
Looking at all the log data, it only gives notice regarding the example.com gateway... does not appear to mention iptel at all, and no err log shows regarding iptel
I attempted to manually unregister/register iptel, but I get the following error when I try sofia profile external unregister iptel (same error with register iptel)
Invalid gateway!
Any ideas?
Thanks
Ryan Watkins
Ryan Watkins
Networking & Customer Support
OCENS
19655 1st AVE S. #203
Seattle, WA 98148
Satellite Systems and Services: Iridium, Inmarsat, Globalstar, KVH
________________________________________________________
www.ocens.com<http://www.ocens.com/<http://www.ocens.com%3chttp:/www.ocens.com/>> | support.ocens.com<http://support.ocens.com/>
Office: (206) 878-8270 | Cell: (360) 521-7334 | Fax: (206) 878-8314
On 16/12/11 01:05, Ryan Watkins wrote:
I did run the" sofia profile external restart reloadxml" command.... It didn't load the new gateway, so that's why I tried registering the gateway specifically.
* *Ryan,* *Did you follow this example: http://wiki.freeswitch.org/wiki/Provider_Configuration:_iptel and replace the usename and password with your own? Check that the permissions on the new XML file allow it to be read by the user freeswitch is running as. Also double-check your closing tags on the file. This can cause your gateway to be skipped, hence the "invalid gateway" when you try to use it. Cheers Alex -- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately. "Transact" is operated by Integrated Financial Arrangements plc Domain House, 5-7 Singer Street, London EC2A 4BQ Tel: (020) 7608 4900 Fax: (020) 7608 5300 (Registered office: as above; Registered in England and Wales under number: 3727592) Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)
Thanks for the reply Alex, I followed the example in the FreeSWITCH 1.0.6 book for iptel, which is as follows: <include> <gateway name="iptel"> <param name="username" value="username"/> (yes, I supplied my iptel username in this line) <param name="password" value="password"/> (again, I supplied my iptel password on this line) <param name="realm" value="iptel.org"/> <!--iptel.org requires a 'proxy' parameter --> <param name="proxy" value="sip.iptel.org"/> </gateway> </include> I've checked the file permissions and changed them so that all users have rwx for the iptel.org.xml file; as well as every folder up to /external for both /usr/src/freeswitch and the /opt/freeswitch paths I've also changed the iptel.org.xml files in those paths to the example that you linked from the wiki However, I'm still getting the same result.... Any other suggestions? Thanks again! From: Alex Crow [mailto:acrow@integrafin.co.uk] Sent: Sunday, December 18, 2011 2:09 AM To: FreeSWITCH Users Help Cc: Ryan Watkins Subject: Re: [Freeswitch-users] Issue adding a SIP Gateway On 16/12/11 01:05, Ryan Watkins wrote: I did run the" sofia profile external restart reloadxml" command.... It didn't load the new gateway, so that's why I tried registering the gateway specifically. Ryan, Did you follow this example: http://wiki.freeswitch.org/wiki/Provider_Configuration:_iptel and replace the usename and password with your own? Check that the permissions on the new XML file allow it to be read by the user freeswitch is running as. Also double-check your closing tags on the file. This can cause your gateway to be skipped, hence the "invalid gateway" when you try to use it. Cheers Alex -- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately. "Transact" is operated by Integrated Financial Arrangements plc Domain House, 5-7 Singer Street, London EC2A 4BQ Tel: (020) 7608 4900 Fax: (020) 7608 5300 (Registered office: as above; Registered in England and Wales under number: 3727592) Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)
OK, As long as those "funny quotes" in your last post aren't present in your XML file I can't see what is the problem. I had an issue copying dialplans from the web with these, had to go through and change them all by hand. If you shut down freeswitch, clear your logfile, and start it again, can you post the contents of /opt/freeswitch/log/freeswitch.log to the list (or to pastebin etc and link here). There must be something in the logs. BTW you should not need to change things in /usr/src/*, once you've installed that doesn't make any difference. Cheers Alex On 19/12/11 18:36, Ryan Watkins wrote:
Thanks for the reply Alex,
I followed the example in the FreeSWITCH 1.0.6 book for iptel, which is as follows:
<include>
<gateway name="iptel">
<param name="username" value="username"/> (yes, I supplied my iptel username in this line)
<param name="password" value="password"/> (again, I supplied my iptel password on this line)
<param name="realm" value="iptel.org"/>
<!--iptel.org requires a 'proxy' parameter -->
<param name="proxy" value="sip.iptel.org"/>
</gateway>
</include>
I've checked the file permissions and changed them so that all users have rwx for the iptel.org.xml file; as well as every folder up to /external for both /usr/src/freeswitch and the /opt/freeswitch paths
I've also changed the iptel.org.xml files in those paths to the example that you linked from the wiki
However, I'm still getting the same result.... Any other suggestions?
Thanks again!
*From:*Alex Crow [mailto:acrow@integrafin.co.uk] *Sent:* Sunday, December 18, 2011 2:09 AM *To:* FreeSWITCH Users Help *Cc:* Ryan Watkins *Subject:* Re: [Freeswitch-users] Issue adding a SIP Gateway
On 16/12/11 01:05, Ryan Watkins wrote:
I did run the" sofia profile external restart reloadxml" command.... It didn't load the new gateway, so that's why I tried registering the gateway specifically.
* *Ryan,*
*Did you follow this example: http://wiki.freeswitch.org/wiki/Provider_Configuration:_iptel and replace the usename and password with your own?
Check that the permissions on the new XML file allow it to be read by the user freeswitch is running as.
Also double-check your closing tags on the file. This can cause your gateway to be skipped, hence the "invalid gateway" when you try to use it.
Cheers
Alex
-- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately.
"Transact" is operated by Integrated Financial Arrangements plc Domain House, 5-7 Singer Street, London EC2A 4BQ Tel: (020) 7608 4900 Fax: (020) 7608 5300 (Registered office: as above; Registered in England and Wales under number: 3727592) Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)
-- This message has been scanned for viruses and dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is believed to be clean.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Here's the log file... thanks again Alex and all From: Alex Crow [mailto:acrow@integrafin.co.uk] Sent: Monday, December 19, 2011 11:22 AM To: FreeSWITCH Users Help Cc: Ryan Watkins Subject: Re: [Freeswitch-users] Issue adding a SIP Gateway OK, As long as those "funny quotes" in your last post aren't present in your XML file I can't see what is the problem. I had an issue copying dialplans from the web with these, had to go through and change them all by hand. If you shut down freeswitch, clear your logfile, and start it again, can you post the contents of /opt/freeswitch/log/freeswitch.log to the list (or to pastebin etc and link here). There must be something in the logs. BTW you should not need to change things in /usr/src/*, once you've installed that doesn't make any difference. Cheers Alex On 19/12/11 18:36, Ryan Watkins wrote: Thanks for the reply Alex, I followed the example in the FreeSWITCH 1.0.6 book for iptel, which is as follows: <include> <gateway name="iptel"> <param name="username" value="username"/> (yes, I supplied my iptel username in this line) <param name="password" value="password"/> (again, I supplied my iptel password on this line) <param name="realm" value="iptel.org"/> <!--iptel.org requires a 'proxy' parameter --> <param name="proxy" value="sip.iptel.org"/> </gateway> </include> I've checked the file permissions and changed them so that all users have rwx for the iptel.org.xml file; as well as every folder up to /external for both /usr/src/freeswitch and the /opt/freeswitch paths I've also changed the iptel.org.xml files in those paths to the example that you linked from the wiki However, I'm still getting the same result.... Any other suggestions? Thanks again! From: Alex Crow [mailto:acrow@integrafin.co.uk] Sent: Sunday, December 18, 2011 2:09 AM To: FreeSWITCH Users Help Cc: Ryan Watkins Subject: Re: [Freeswitch-users] Issue adding a SIP Gateway On 16/12/11 01:05, Ryan Watkins wrote: I did run the" sofia profile external restart reloadxml" command.... It didn't load the new gateway, so that's why I tried registering the gateway specifically. Ryan, Did you follow this example: http://wiki.freeswitch.org/wiki/Provider_Configuration:_iptel and replace the usename and password with your own? Check that the permissions on the new XML file allow it to be read by the user freeswitch is running as. Also double-check your closing tags on the file. This can cause your gateway to be skipped, hence the "invalid gateway" when you try to use it. Cheers Alex -- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately. "Transact" is operated by Integrated Financial Arrangements plc Domain House, 5-7 Singer Street, London EC2A 4BQ Tel: (020) 7608 4900 Fax: (020) 7608 5300 (Registered office: as above; Registered in England and Wales under number: 3727592) Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856) -- This message has been scanned for viruses and dangerous content by MailScanner<http://www.mailscanner.info/>, and is believed to be clean. _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Ryan, I see this: 2011-12-19 12:28:30.388149 [DEBUG] sofia.c:1736 Launching worker thread for external 2011-12-19 12:28:30.388202 [ERR] sofia.c:2490 ERROR: password param is REQUIRED! This could actually be from your "example.com" gateway, it is indeed an error relating to gateway defs. I suggest you delete that gateway or move it to example.com.noload (or the like). It could be stopping your proper gateway from loading. I'm sure you don't need it anyway. Also check, if you've edited your external.xml file that you haven't got messed up tags before the include of external/*.xml. Cheers Alex On 19/12/11 20:38, Ryan Watkins wrote:
Here's the log file... thanks again Alex and all
*From:*Alex Crow [mailto:acrow@integrafin.co.uk] *Sent:* Monday, December 19, 2011 11:22 AM *To:* FreeSWITCH Users Help *Cc:* Ryan Watkins *Subject:* Re: [Freeswitch-users] Issue adding a SIP Gateway
OK,
As long as those "funny quotes" in your last post aren't present in your XML file I can't see what is the problem. I had an issue copying dialplans from the web with these, had to go through and change them all by hand.
If you shut down freeswitch, clear your logfile, and start it again, can you post the contents of /opt/freeswitch/log/freeswitch.log to the list (or to pastebin etc and link here).
There must be something in the logs.
BTW you should not need to change things in /usr/src/*, once you've installed that doesn't make any difference.
Cheers
Alex
On 19/12/11 18:36, Ryan Watkins wrote:
Thanks for the reply Alex,
I followed the example in the FreeSWITCH 1.0.6 book for iptel, which is as follows:
<include>
<gateway name="iptel">
<param name="username" value="username"/> (yes, I supplied my iptel username in this line)
<param name="password" value="password"/> (again, I supplied my iptel password on this line)
<param name="realm" value="iptel.org"/>
<!--iptel.org requires a 'proxy' parameter -->
<param name="proxy" value="sip.iptel.org"/>
</gateway>
</include>
I've checked the file permissions and changed them so that all users have rwx for the iptel.org.xml file; as well as every folder up to /external for both /usr/src/freeswitch and the /opt/freeswitch paths
I've also changed the iptel.org.xml files in those paths to the example that you linked from the wiki
However, I'm still getting the same result.... Any other suggestions?
Thanks again!
*From:*Alex Crow [mailto:acrow@integrafin.co.uk] *Sent:* Sunday, December 18, 2011 2:09 AM *To:* FreeSWITCH Users Help *Cc:* Ryan Watkins *Subject:* Re: [Freeswitch-users] Issue adding a SIP Gateway
On 16/12/11 01:05, Ryan Watkins wrote:
I did run the" sofia profile external restart reloadxml" command.... It didn't load the new gateway, so that's why I tried registering the gateway specifically.
* *Ryan,*
*Did you follow this example: http://wiki.freeswitch.org/wiki/Provider_Configuration:_iptel and replace the usename and password with your own?
Check that the permissions on the new XML file allow it to be read by the user freeswitch is running as.
Also double-check your closing tags on the file. This can cause your gateway to be skipped, hence the "invalid gateway" when you try to use it.
Cheers
Alex
-- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately.
"Transact" is operated by Integrated Financial Arrangements plc Domain House, 5-7 Singer Street, London EC2A 4BQ Tel: (020) 7608 4900 Fax: (020) 7608 5300 (Registered office: as above; Registered in England and Wales under number: 3727592) Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)
-- This message has been scanned for viruses and dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is believed to be clean.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- This message has been scanned for viruses and dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is believed to be clean.
Alex, I've seen that as well... but where I figured it was part of the example.xml gateway I didn't pay much mind. I have, however, renamed the example.xml to example.xml.noload, stopped and started the daemon, and attempted to reload the external profile within freeswitch... and it's STILL loading the example gateway... and will not load iptel, I haven't ever touched the external.xml, but I'm wondering if maybe it needed to be edited? Or perhaps the freeswitch install put yet another location in that this setup that it might be looking to?? Really lost at this point... don't know how it's loading the example gateway when it's been renamed (even renamed the example.xml in /usr/src/freeswitch* for S&Gs) From: Alex Crow [mailto:acrow@integrafin.co.uk] Sent: Monday, December 19, 2011 12:51 PM To: Ryan Watkins Cc: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Issue adding a SIP Gateway Ryan, I see this: 2011-12-19 12:28:30.388149 [DEBUG] sofia.c:1736 Launching worker thread for external 2011-12-19 12:28:30.388202 [ERR] sofia.c:2490 ERROR: password param is REQUIRED! This could actually be from your "example.com" gateway, it is indeed an error relating to gateway defs. I suggest you delete that gateway or move it to example.com.noload (or the like). It could be stopping your proper gateway from loading. I'm sure you don't need it anyway. Also check, if you've edited your external.xml file that you haven't got messed up tags before the include of external/*.xml. Cheers Alex On 19/12/11 20:38, Ryan Watkins wrote: Here's the log file... thanks again Alex and all From: Alex Crow [mailto:acrow@integrafin.co.uk] Sent: Monday, December 19, 2011 11:22 AM To: FreeSWITCH Users Help Cc: Ryan Watkins Subject: Re: [Freeswitch-users] Issue adding a SIP Gateway OK, As long as those "funny quotes" in your last post aren't present in your XML file I can't see what is the problem. I had an issue copying dialplans from the web with these, had to go through and change them all by hand. If you shut down freeswitch, clear your logfile, and start it again, can you post the contents of /opt/freeswitch/log/freeswitch.log to the list (or to pastebin etc and link here). There must be something in the logs. BTW you should not need to change things in /usr/src/*, once you've installed that doesn't make any difference. Cheers Alex On 19/12/11 18:36, Ryan Watkins wrote: Thanks for the reply Alex, I followed the example in the FreeSWITCH 1.0.6 book for iptel, which is as follows: <include> <gateway name="iptel"> <param name="username" value="username"/> (yes, I supplied my iptel username in this line) <param name="password" value="password"/> (again, I supplied my iptel password on this line) <param name="realm" value="iptel.org"/> <!--iptel.org requires a 'proxy' parameter --> <param name="proxy" value="sip.iptel.org"/> </gateway> </include> I've checked the file permissions and changed them so that all users have rwx for the iptel.org.xml file; as well as every folder up to /external for both /usr/src/freeswitch and the /opt/freeswitch paths I've also changed the iptel.org.xml files in those paths to the example that you linked from the wiki However, I'm still getting the same result.... Any other suggestions? Thanks again! From: Alex Crow [mailto:acrow@integrafin.co.uk] Sent: Sunday, December 18, 2011 2:09 AM To: FreeSWITCH Users Help Cc: Ryan Watkins Subject: Re: [Freeswitch-users] Issue adding a SIP Gateway On 16/12/11 01:05, Ryan Watkins wrote: I did run the" sofia profile external restart reloadxml" command.... It didn't load the new gateway, so that's why I tried registering the gateway specifically. Ryan, Did you follow this example: http://wiki.freeswitch.org/wiki/Provider_Configuration:_iptel and replace the usename and password with your own? Check that the permissions on the new XML file allow it to be read by the user freeswitch is running as. Also double-check your closing tags on the file. This can cause your gateway to be skipped, hence the "invalid gateway" when you try to use it. Cheers Alex -- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately. "Transact" is operated by Integrated Financial Arrangements plc Domain House, 5-7 Singer Street, London EC2A 4BQ Tel: (020) 7608 4900 Fax: (020) 7608 5300 (Registered office: as above; Registered in England and Wales under number: 3727592) Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856) -- This message has been scanned for viruses and dangerous content by MailScanner<http://www.mailscanner.info/>, and is believed to be clean. _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- This message has been scanned for viruses and dangerous content by MailScanner<http://www.mailscanner.info/>, and is believed to be clean.
On 19/12/11 21:05, Ryan Watkins wrote:
Alex,
I've seen that as well... but where I figured it was part of the example.xml gateway I didn't pay much mind. I have, however, renamed the example.xml to example.xml.noload, stopped and started the daemon, and attempted to reload the external profile within freeswitch... and it's STILL loading the example gateway... and will not load iptel,
I haven't ever touched the external.xml, but I'm wondering if maybe it needed to be edited? Or perhaps the freeswitch install put yet another location in that this setup that it might be looking to?? Really lost at this point... don't know how it's loading the example gateway when it's been renamed (even renamed the example.xml in /usr/src/freeswitch* for S&Gs)
Ryan, Do you have exactly this at the top of /opt/freeswitch/conf/sip_profiles/external.xml? <profile name="external"> <!-- http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files --> <!-- This profile is only for outbound registrations to providers --> <gateways> <X-PRE-PROCESS cmd="include" data="external/*.xml"/> </gateways> If you do, and it's still not loading, I am stumped too. Can you post your entire external.xml? Cheers Alex
*From:*Alex Crow [mailto:acrow@integrafin.co.uk] *Sent:* Monday, December 19, 2011 12:51 PM *To:* Ryan Watkins *Cc:* FreeSWITCH Users Help *Subject:* Re: [Freeswitch-users] Issue adding a SIP Gateway
Ryan,
I see this:
2011-12-19 12:28:30.388149 [DEBUG] sofia.c:1736 Launching worker thread for external 2011-12-19 12:28:30.388202 [ERR] sofia.c:2490 ERROR: password param is REQUIRED!
This could actually be from your "example.com" gateway, it is indeed an error relating to gateway defs.
I suggest you delete that gateway or move it to example.com.noload (or the like). It could be stopping your proper gateway from loading. I'm sure you don't need it anyway.
Also check, if you've edited your external.xml file that you haven't got messed up tags before the include of external/*.xml.
Cheers
Alex
On 19/12/11 20:38, Ryan Watkins wrote:
Here's the log file... thanks again Alex and all
*From:*Alex Crow [mailto:acrow@integrafin.co.uk] *Sent:* Monday, December 19, 2011 11:22 AM *To:* FreeSWITCH Users Help *Cc:* Ryan Watkins *Subject:* Re: [Freeswitch-users] Issue adding a SIP Gateway
OK,
As long as those "funny quotes" in your last post aren't present in your XML file I can't see what is the problem. I had an issue copying dialplans from the web with these, had to go through and change them all by hand.
If you shut down freeswitch, clear your logfile, and start it again, can you post the contents of /opt/freeswitch/log/freeswitch.log to the list (or to pastebin etc and link here).
There must be something in the logs.
BTW you should not need to change things in /usr/src/*, once you've installed that doesn't make any difference.
Cheers
Alex
On 19/12/11 18:36, Ryan Watkins wrote:
Thanks for the reply Alex,
I followed the example in the FreeSWITCH 1.0.6 book for iptel, which is as follows:
<include>
<gateway name="iptel">
<param name="username" value="username"/> (yes, I supplied my iptel username in this line)
<param name="password" value="password"/> (again, I supplied my iptel password on this line)
<param name="realm" value="iptel.org"/>
<!--iptel.org requires a 'proxy' parameter -->
<param name="proxy" value="sip.iptel.org"/>
</gateway>
</include>
I've checked the file permissions and changed them so that all users have rwx for the iptel.org.xml file; as well as every folder up to /external for both /usr/src/freeswitch and the /opt/freeswitch paths
I've also changed the iptel.org.xml files in those paths to the example that you linked from the wiki
However, I'm still getting the same result.... Any other suggestions?
Thanks again!
*From:*Alex Crow [mailto:acrow@integrafin.co.uk] *Sent:* Sunday, December 18, 2011 2:09 AM *To:* FreeSWITCH Users Help *Cc:* Ryan Watkins *Subject:* Re: [Freeswitch-users] Issue adding a SIP Gateway
On 16/12/11 01:05, Ryan Watkins wrote:
I did run the" sofia profile external restart reloadxml" command.... It didn't load the new gateway, so that's why I tried registering the gateway specifically.
* *Ryan,*
*Did you follow this example: http://wiki.freeswitch.org/wiki/Provider_Configuration:_iptel and replace the usename and password with your own?
Check that the permissions on the new XML file allow it to be read by the user freeswitch is running as.
Also double-check your closing tags on the file. This can cause your gateway to be skipped, hence the "invalid gateway" when you try to use it.
Cheers
Alex
-- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately.
"Transact" is operated by Integrated Financial Arrangements plc Domain House, 5-7 Singer Street, London EC2A 4BQ Tel: (020) 7608 4900 Fax: (020) 7608 5300 (Registered office: as above; Registered in England and Wales under number: 3727592) Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)
-- This message has been scanned for viruses and dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is believed to be clean.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- This message has been scanned for viruses and dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is believed to be clean.
-- This message has been scanned for viruses and dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is believed to be clean.
Alex, I rebuild my virtual server... love virtual servers for dev work :p It appears that, after the rebuild and reinstall of FreeSWITCH that I'm now able to register an external gateway.... So it must have been something that didn't install correctly on the last go. Thank you for your help... able to at least make outgoing calls, incoming are still an issue :P but I'm learning and working through it. Ryan From: Alex Crow [mailto:acrow@integrafin.co.uk] Sent: Tuesday, December 20, 2011 1:41 AM To: Ryan Watkins Cc: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Issue adding a SIP Gateway On 19/12/11 21:05, Ryan Watkins wrote: Alex, I've seen that as well... but where I figured it was part of the example.xml gateway I didn't pay much mind. I have, however, renamed the example.xml to example.xml.noload, stopped and started the daemon, and attempted to reload the external profile within freeswitch... and it's STILL loading the example gateway... and will not load iptel, I haven't ever touched the external.xml, but I'm wondering if maybe it needed to be edited? Or perhaps the freeswitch install put yet another location in that this setup that it might be looking to?? Really lost at this point... don't know how it's loading the example gateway when it's been renamed (even renamed the example.xml in /usr/src/freeswitch* for S&Gs) Ryan, Do you have exactly this at the top of /opt/freeswitch/conf/sip_profiles/external.xml? <profile name="external"> <!-- http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files --> <!-- This profile is only for outbound registrations to providers --> <gateways> <X-PRE-PROCESS cmd="include" data="external/*.xml"/> </gateways> If you do, and it's still not loading, I am stumped too. Can you post your entire external.xml? Cheers Alex From: Alex Crow [mailto:acrow@integrafin.co.uk] Sent: Monday, December 19, 2011 12:51 PM To: Ryan Watkins Cc: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Issue adding a SIP Gateway Ryan, I see this: 2011-12-19 12:28:30.388149 [DEBUG] sofia.c:1736 Launching worker thread for external 2011-12-19 12:28:30.388202 [ERR] sofia.c:2490 ERROR: password param is REQUIRED! This could actually be from your "example.com" gateway, it is indeed an error relating to gateway defs. I suggest you delete that gateway or move it to example.com.noload (or the like). It could be stopping your proper gateway from loading. I'm sure you don't need it anyway. Also check, if you've edited your external.xml file that you haven't got messed up tags before the include of external/*.xml. Cheers Alex On 19/12/11 20:38, Ryan Watkins wrote: Here's the log file... thanks again Alex and all From: Alex Crow [mailto:acrow@integrafin.co.uk] Sent: Monday, December 19, 2011 11:22 AM To: FreeSWITCH Users Help Cc: Ryan Watkins Subject: Re: [Freeswitch-users] Issue adding a SIP Gateway OK, As long as those "funny quotes" in your last post aren't present in your XML file I can't see what is the problem. I had an issue copying dialplans from the web with these, had to go through and change them all by hand. If you shut down freeswitch, clear your logfile, and start it again, can you post the contents of /opt/freeswitch/log/freeswitch.log to the list (or to pastebin etc and link here). There must be something in the logs. BTW you should not need to change things in /usr/src/*, once you've installed that doesn't make any difference. Cheers Alex On 19/12/11 18:36, Ryan Watkins wrote: Thanks for the reply Alex, I followed the example in the FreeSWITCH 1.0.6 book for iptel, which is as follows: <include> <gateway name="iptel"> <param name="username" value="username"/> (yes, I supplied my iptel username in this line) <param name="password" value="password"/> (again, I supplied my iptel password on this line) <param name="realm" value="iptel.org"/> <!--iptel.org requires a 'proxy' parameter --> <param name="proxy" value="sip.iptel.org"/> </gateway> </include> I've checked the file permissions and changed them so that all users have rwx for the iptel.org.xml file; as well as every folder up to /external for both /usr/src/freeswitch and the /opt/freeswitch paths I've also changed the iptel.org.xml files in those paths to the example that you linked from the wiki However, I'm still getting the same result.... Any other suggestions? Thanks again! From: Alex Crow [mailto:acrow@integrafin.co.uk] Sent: Sunday, December 18, 2011 2:09 AM To: FreeSWITCH Users Help Cc: Ryan Watkins Subject: Re: [Freeswitch-users] Issue adding a SIP Gateway On 16/12/11 01:05, Ryan Watkins wrote: I did run the" sofia profile external restart reloadxml" command.... It didn't load the new gateway, so that's why I tried registering the gateway specifically. Ryan, Did you follow this example: http://wiki.freeswitch.org/wiki/Provider_Configuration:_iptel and replace the usename and password with your own? Check that the permissions on the new XML file allow it to be read by the user freeswitch is running as. Also double-check your closing tags on the file. This can cause your gateway to be skipped, hence the "invalid gateway" when you try to use it. Cheers Alex -- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately. "Transact" is operated by Integrated Financial Arrangements plc Domain House, 5-7 Singer Street, London EC2A 4BQ Tel: (020) 7608 4900 Fax: (020) 7608 5300 (Registered office: as above; Registered in England and Wales under number: 3727592) Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856) -- This message has been scanned for viruses and dangerous content by MailScanner<http://www.mailscanner.info/>, and is believed to be clean. _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- This message has been scanned for viruses and dangerous content by MailScanner<http://www.mailscanner.info/>, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner<http://www.mailscanner.info/>, and is believed to be clean.
participants (4)
-
Alex Crow
-
B.Tietz@pinguin.ag
-
Rob Hutton
-
Ryan Watkins