I'm running asterisk 1.6.2.6 and freepbx-2.7.0
My trunk is configured as follows:
Outgoing Settings
Trunk name: GoTalk
Peer Details:
host=sip.gotalk.com
username=09xxxxxx
secret=YNxxxxxx
type=peer
fromuser=09xxxxxx
fromdomain=sip.gotalk.com
canreinvite=no
insecure=very
Incoming Settings
User Context: 09xxxxx
User Details:
username=09xxxxx
fromuser=09xxxxx
type=peer
secret=YNxxxxx
insecure=very
host=dynamic
fromdomain=sip.gotalk.com
context=from-pstn
Register String:
09xxxxxx:YNxxxxxxx#sip.gotalk.com/09xxxxxx
I have an inbound route called Incoming with DID 09xxxxxx
diverted to local extension 200
When I do a sip trace and dial my telephone number 0741xxxxx I just get failure beeps. I never see any SIP traffic from GoTalk to my asterisk server trying to connect the call.
Seems I'm not registering correctly for incoming calls because GoTalk aren't sending them to me. I am correct in using the GoTalk username 09xxxxxx as the DID, aren't I ? I've tried using my phone number but it makes no difference.
It's solved
GoTalk need the more convoluted Register String:
09xxxxxxxx:YNyyyyyy:09xxxxxxx#sip.gotalk.com:5060/09xxxxxx
Put that in and it registered and received calls fine
Related
Good morning.
I have started working from home. My office has an elastix server and I have access to my extension from outside (ext: 126 ... BIG secret). i also have an elastix server at home, and so I do NOT want to setup this second configuration on every phone in the house. Is it possible to setup the extension the office pbx is offering me (126) as a TRUNK on my elastix, so I can just use an outbound route to access office extensions simply by prepending a "6" ..(i.e 6111 on HOME machine calls ext 111 on office machine)? I have setup the outbound route correctly (I think) as : () + 6 | [ZXX] (NO prepend, t as prefix and ZXX as match pattern), But I cant get the trunk to work. currently I have set it up as:
trunk name: office-126
username=126
secret=******
type=peer
qualify=yes
insecure=invite
host={office server external ip}
fromdomain={office server external ip}
disallow=all
allow=g729
context=from-trunk
fromuser=126
User context: 126
username=126
secret=****
type=friend
nat=yes
host={office server external ip}
fromdomain={office server external ip}
context=from-internal
disallow=all
allow=g729
dtmfmode=rfc2833
insecure=invite
Sure it is posible. Most providers offer sip extensions, not trunk.
You have add registration string
register=>username:password#ip
For more info see manual about sip.conf
I have installed and configure asterisk on my server, everything is working fine, but the problem is when user connected first time following message appears on sip debug :
[May 27 22:13:25] WARNING[20193]: chan_sip.c:3727 __sip_xmit: sip_xmit of 0x7f16b400bdb0 (len 646) to 192.168.0.150:61709 returned -1: No such file or directory
Scheduling destruction of SIP dialog '32729691-cce2-c278-d528-924721cfddca' in 32000 ms (Method: REGISTER)
but on refreshing page sip peer is reachable.
Seems like communication is one way only. The asterisk receives, but cannot send. Check firewalls, NATs, routing.
I have solved the problem, I have an error in my sip.conf file, changing sip.conf solves the problem
I've just setup FreePBX on my VPS. Everything is OK there are no notices. There hasn't been any errors in the installation. When I create my extension from the FreePBX create new SIP extension and try to connect afterwards I get Forbidden on my SIP client. The extension and the password are the same as I setup in the PBX.
This is the message from the log:
[2014-11-25 23:53:49] NOTICE[9209] chan_sip.c: Registration from '<sip:777#$$SERVER_IP$$>' failed for '$$MY_IP$$:59096' - Wrong password
The strange thing is that when I create an extension from the sip_custom.conf I connect to the server successfuly.
Any ideas :?
You have do apply changes(red button) after each change
You also have ensure your nat settings setuped correctly
You can check that device added in sip_additional.conf file and in asterisk via
asterisk -rx "sip show users"
Again, if you use nat=no and your device after nat, it will not work. Same can be if you use nat=yes and you have no nat.
I am a newbie for Asterisk, so please be patient.
I would like to perform phone call originating by my application via Asterisk. I was recommended to use skype connection to terminate the call.
So, I installed AsteriskNow on VM with CentOs, created Skype Business account, got SIP ID and configured sip.conf and extensions.conf and explained here
http://forum.skype.com/index.php?showtopic=487451
Then I restarted asterisk service and checked log file. I did not see any error messages, so I hope that the configuration is accepted.
Now the question is: what do I have to do now? I want Asterisk to dial some phone number. It should arrive to skype that should forward the call to phone via VoIP gateway.
How can I do this?
Have a look at my answer: Asterisk click to call
You can do similar thing. At first do test with your local VoIP clients. You can probably install 2 SIP soft phones, configure them in sip.conf and using CallFile test if you can make connection between them. If this work, then instead of using Extension: SIP/test1 change it to valid dialable Skype for SIP "number".
I'm trying to configure a dedicated server that runs ASP.NET to send mail through the local IIS SMTP server but mail is getting stuck in the Queue folder and doesn't get delivered.
I'm using this code in an .aspx page to test:
<%# Page Language="C#" AutoEventWireup="true" %>
<% new System.Net.Mail.SmtpClient("localhost").Send("info#thedomain.com",
"jcarrascal#gmail.com", "testing...", "Hello, world.com"); %>
Then, I added the following to the Web.config file:
<system.net>
<mailSettings>
<smtp>
<network host="localhost"/>
</smtp>
</mailSettings>
</system.net>
In the IIS Manager I've changed the following in the properties of the "Default SMTP Virtual Server".
General: [X] Enable Logging
Access / Authentication: [X] Windows Integrated Authentication
Access / Relay Restrictions: (o) Only the list below, Granted 127.0.0.1
Delivery / Advanced: Fully qualified domain name = thedomain.com
Finally, I run the SMTPDiag.exe tool like this:
C:\>smtpdiag.exe info#thedomain.com jcarrascal#gmail.com
Searching for Exchange external DNS settings.
Computer name is THEDOMAIN.
Failed to connect to the domain controller. Error: 8007054b
Checking SOA for gmail.com.
Checking external DNS servers.
Checking internal DNS servers.
SOA serial number match: Passed.
Checking local domain records.
Checking MX records using TCP: thedomain.com.
Checking MX records using UDP: thedomain.com.
Both TCP and UDP queries succeeded. Local DNS test passed.
Checking remote domain records.
Checking MX records using TCP: gmail.com.
Checking MX records using UDP: gmail.com.
Both TCP and UDP queries succeeded. Remote DNS test passed.
Checking MX servers listed for jcarrascal#gmail.com.
Connecting to gmail-smtp-in.l.google.com [209.85.199.27] on port 25.
Connecting to the server failed. Error: 10060
Failed to submit mail to gmail-smtp-in.l.google.com.
Connecting to gmail-smtp-in.l.google.com [209.85.199.114] on port 25.
Connecting to the server failed. Error: 10060
Failed to submit mail to gmail-smtp-in.l.google.com.
Connecting to alt2.gmail-smtp-in.l.google.com [209.85.135.27] on port 25.
Connecting to the server failed. Error: 10060
Failed to submit mail to alt2.gmail-smtp-in.l.google.com.
Connecting to alt2.gmail-smtp-in.l.google.com [209.85.135.114] on port 25.
Connecting to the server failed. Error: 10060
Failed to submit mail to alt2.gmail-smtp-in.l.google.com.
Connecting to alt1.gmail-smtp-in.l.google.com [209.85.133.27] on port 25.
Connecting to the server failed. Error: 10060
Failed to submit mail to alt1.gmail-smtp-in.l.google.com.
Connecting to alt2.gmail-smtp-in.l.google.com [74.125.79.27] on port 25.
Connecting to the server failed. Error: 10060
Failed to submit mail to alt2.gmail-smtp-in.l.google.com.
Connecting to alt2.gmail-smtp-in.l.google.com [74.125.79.114] on port 25.
Connecting to the server failed. Error: 10060
Failed to submit mail to alt2.gmail-smtp-in.l.google.com.
Connecting to alt1.gmail-smtp-in.l.google.com [209.85.133.114] on port 25.
Connecting to the server failed. Error: 10060
Failed to submit mail to alt1.gmail-smtp-in.l.google.com.
Connecting to gsmtp183.google.com [64.233.183.27] on port 25.
Connecting to the server failed. Error: 10060
Failed to submit mail to gsmtp183.google.com.
Connecting to gsmtp147.google.com [209.85.147.27] on port 25.
Connecting to the server failed. Error: 10051
Failed to submit mail to gsmtp147.google.com.
I'm using ASP.NET 2.0, Windows 2003 Server and the IIS that comes with it.
Can you tell me what else to change to fix the problem?
Thanks
#mattlant
This is a dedicated server that's why I'm installing the SMTP manually.
EDIT: I use exchange so its a little
different, but its called a smart host
in exchange, but in plain SMTP service
config i think its called something
else. Cant remember exactly the
setting name.
Thank you for pointing me at the Smart host field. Mail is getting delivered now.
In the Default SMTP Virtual Server properties, the Delivery tab, click Advanced and fill the "Smart host" field with the address that your provider gives you. In my case (GoDaddy) it was k2smtpout.secureserver.net.
More info here: http://help.godaddy.com/article/1283
I find the best thing usually depending on how much email there is, is to just forward the mail through your ISP's SMTP server. Less headaches. Looks like that's where you are having issues, from your SMTP to external servers, not asp.net to your SMTP.
Just have your SMTP server set to send it to your ISP, or you can configure asp.net to send to it.
EDIT: I use exchange so it's a little different, but it's called a smart host in exchange, but in plain SMTP service config I think it's called something else.
I can't remember exactly the setting name.
By the looks of things your firewall isn't letting SMTP (TCP port 25) out of your network.
two really obvious questions (just in case they haven't been covered)
1. has windows firewall been disabled?
2. do you have a personal/company firewall that is preventing your mail from being sent?