I am trying to send calls from (telx-NY17S) to (telx-nyc) via an IAX2
channel. However the call is being rejected on the (telx-nyc) server.
See error below copied from telx-nyc CLI>
Apr 22 13:56:57 NOTICE[147465]: chan_iax2.c:5390 socket_read:
Rejected
connect attempt from 192.168.0.251
I have icluded the following conf files
1. extensions.conf (telx-nyc)
2. iax.conf (telx-nyc)
3. extensions.conf (telx-NY17S)
4. iax.conf (telx-NY17S)
1. extensions.conf (telx-nyc)
[general]
static=yes
writeprotect=yes
[globals]
EMERGENCY=0
LINEOUT=Zap/1 ; Line to use in emergency
#include "extensions.conf.macro"
#include "extensions.conf.telx"
[from-telx-atl]
include => internal
include => ext-external-from-atl
[from-telx-NY17S]
include => internal
include => ext-internal
[from-jnctn]
include => aa-main
exten => _NXXNXXXXXX,1,Goto(aa-main,s,1)
[from-swifttel]
exten => _NXXNXXXXXX,1,NoOp("Context is from-swifttel") exten =>
_NXXNXXXXXX,2,Goto(aa-main,s,1)
[default]
include => aa-main
exten => _NXXNXXXXXX,1,NoOp("Context is default") exten =>
_NXXNXXXXXX,2,Goto(aa-main,s,1)
[internal]
include => ext-local
include => ext-internal
[ext-local]
exten => 7000,1,Goto(aa-main,s,1)
[ext-internal]
exten => _2XXX,1,Dial(${TELX-MICS2}/${EXTEN:${TELX-MICS2-MSD}})
exten => _2XXX,2,Congestion
exten => _3XXX,1,Dial(${TELX-MICS1}/${EXTEN:${TELX-MICS1-MSD}})
exten => _3XXX,2,Congestion
exten => _71XX,1,Dial(IAX2/telx-NY17S/${EXTEN})
exten => _71XX,2,Congestion
exten => _7XXX,1,Dial(IAX2/telx-atl/${EXTEN})
exten => _7XXX,2,Congestion
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2. iax.conf (telx-nyc)
[general]
allow=all
jitterbuffer=no
tos=lowdelay
bindaddr=0.0.0.0
; Registration to Junction Networks
;register => telx:E3fiw84j@207.251.118.1
; Guest sections for unauthenticated connection attempts.
[guest]
type=user
context=default
callerid="Guest IAX User"
; from Junction Networks
[jnctn]
type=user
context=from-jnctn
auth=rsa
inkeys=jnctn
; telx-atl-asterisk - Incoming
[telx-atl] ; name remote end will use to connect
type=user ; they will send calls to us
secret=telx-atl ; their password
context=from-telx-atl ; context for calling in
disallow=all
allow=ulaw
; telx-atl-asterisk - Outgoing
[telx-atl]
type=peer
username=telx-nyc ; our username
secret=telx-nyc ; our password
host=192.168.22.7 ; host to connect to
;qualify=yes
;trunk=yes ; use trunking
; telx-NY17S - Incoming
[telx-NY17S]
type=peer
secret=telx-NY17S
context=from-telx-NY17S
disallow=all
allow=ulaw
; telx-NY17S - Outgoing
[telx-NY17S]
type=peer
username=telx-nyc ; our username
secret=telx-nyc ; our password
host=192.168.0.251 ; host to connect to
;qualify=yes
;trunk=yes ; use trunking
[stealth]
type=friend
host=dynamic
auth=md5
secret=telxvoip
context=from-jnctn
permit=206.252.192.70/255.255.255.255
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3. Extensions.conf (telx-NY17S)
[general]
static=yes
writeprotect=yes
[bogon-calls]
exten => _.,1,Congestion
[from-sip]
exten => 7101,1,Dial(SIP/7101,20)
exten => 7101,2,Voicemail(u7101)
exten => 7101,102,Voicemail(b7101)
exten => 7101,103,Hangup
exten => 7102,1,Dial(SIP/7102,20)
exten => 7102,2,Voicemail(u7102)
exten => 7102,102,Voicemail(b7102)
exten => 7102,103,Hangup
;Extentions at telx-nyc
exten => _7XXX,1,Dial(IAX2/telx-nyc/${EXTEN})
exten => _7XXX,2,Congestion
exten => _2XXX,1,Dial(IAX2/telx-nyc/${EXTEN})
exten => _2XXX,2,Congestion
exten => _3XXX,1,Dial(IAX2/telx-nyc/${EXTEN})
exten => _3XXX,2,Congestion
exten => 7199,1,VoicemailMain(${CALLERIDNUM})
[from-telx-nyc]
exten => _7XXX,1,Dial(SIP/7101,20)
exten => _7XXX,2,Voicemail(u7101)
exten => _7XXX,102,Voicemail(b7101)
exten => _7XXX,103,Hangup
[macro-telx-nyc]
exten => s,1,Noop()
exten => s,2,Dial(IAX2/telx-nyc/${ARG1})
[outgoing]
;ingnorepat => 9
exten => _9NXXNXXXXXX,1,Noop()
exten => _9NXXNXXXXXX,2,Macro(telx-nyc,${EXTEN})
exten => _9NXXNXXXXXX,3,Playback(invalid) exten => _9NXXNXXXXXX.4,Hangup
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4. iax.conf (telx-nys17s)
cat iax.conf
[general]
allow=all
jitterbuffer=no
tos=lowdelay
[guest]
type=user
context=guest
callerid="Gust NY17S IAX User"
; telx-nyc-asterisk - Incoming -
;
[telx-nyc]
type=user
secret=telx-nyc
context=from-telx-nyc
disallow=all
allow=ulaw
; telx-nyc-asterisk - Outgoing
;
[telx-nyc]
type=peer
username=telx-NY17S ; our username
secret=telx-NY17S ; our password
host=192.168.11.30 ; host to connect to
;qualify=yes
;trunk=yes ; use trunking
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
On 23/04/05, Michael DiMartino <mdm@bigmtnskier.com> wrote:> 3. Extensions.conf (telx-NY17S)> ;Extentions at telx-nyc> exten => _7XXX,1,Dial(IAX2/telx-nyc/${EXTEN})exten => _7XXX,1,Dial(IAX2/username:password@telx-nyx/${EXTEN}) where username:password is the credientials you need to authenticate with the other server. The username/secret in iax2.conf is for inbound, not for outbound calls. Peter -- Peter Bowyer Email: peter@bowyer.org Tel: +44 1296 768003 VoIP: sip:peter@bowyer.org
If you look at your iax.conf lines as under, you will notice that the
two contexts are illegal as they both have same name:
[telx-nyc]
type=user
secret=telx-nyc
context=from-telx-nyc
disallow=all
allow=ulaw
; telx-nyc-asterisk - Outgoing
;
[telx-nyc]
type=peer
username=telx-NY17S ; our username
secret=telx-NY17S ; our password
host=192.168.11.30 ; host to connect to
;qualify=yes
;trunk=yes ; use trunking
Make that into one and change type to type=friend
This is a starting point. You have defined a macro also with similar
name and that is confusing. Why don't you name it differently as that
may also be one of the causes for the problem you are seeing.
Seshu
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Michael
DiMartino
Sent: Friday, April 22, 2005 8:10 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] IAX help
I am trying to send calls from (telx-NY17S) to (telx-nyc) via an IAX2
channel. However the call is being rejected on the (telx-nyc) server.
See error below copied from telx-nyc CLI>
Apr 22 13:56:57 NOTICE[147465]: chan_iax2.c:5390 socket_read:
Rejected
connect attempt from 192.168.0.251
I have icluded the following conf files
1. extensions.conf (telx-nyc)
2. iax.conf (telx-nyc)
3. extensions.conf (telx-NY17S)
4. iax.conf (telx-NY17S)
1. extensions.conf (telx-nyc)
[general]
static=yes
writeprotect=yes
[globals]
EMERGENCY=0
LINEOUT=Zap/1 ; Line to use in emergency
#include "extensions.conf.macro"
#include "extensions.conf.telx"
[from-telx-atl]
include => internal
include => ext-external-from-atl
[from-telx-NY17S]
include => internal
include => ext-internal
[from-jnctn]
include => aa-main
exten => _NXXNXXXXXX,1,Goto(aa-main,s,1)
[from-swifttel]
exten => _NXXNXXXXXX,1,NoOp("Context is from-swifttel") exten =>
_NXXNXXXXXX,2,Goto(aa-main,s,1)
[default]
include => aa-main
exten => _NXXNXXXXXX,1,NoOp("Context is default") exten =>
_NXXNXXXXXX,2,Goto(aa-main,s,1)
[internal]
include => ext-local
include => ext-internal
[ext-local]
exten => 7000,1,Goto(aa-main,s,1)
[ext-internal]
exten => _2XXX,1,Dial(${TELX-MICS2}/${EXTEN:${TELX-MICS2-MSD}})
exten => _2XXX,2,Congestion
exten => _3XXX,1,Dial(${TELX-MICS1}/${EXTEN:${TELX-MICS1-MSD}})
exten => _3XXX,2,Congestion
exten => _71XX,1,Dial(IAX2/telx-NY17S/${EXTEN})
exten => _71XX,2,Congestion
exten => _7XXX,1,Dial(IAX2/telx-atl/${EXTEN})
exten => _7XXX,2,Congestion
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~
2. iax.conf (telx-nyc)
[general]
allow=all
jitterbuffer=no
tos=lowdelay
bindaddr=0.0.0.0
; Registration to Junction Networks
;register => telx:E3fiw84j@207.251.118.1
; Guest sections for unauthenticated connection attempts.
[guest]
type=user
context=default
callerid="Guest IAX User"
; from Junction Networks
[jnctn]
type=user
context=from-jnctn
auth=rsa
inkeys=jnctn
; telx-atl-asterisk - Incoming
[telx-atl] ; name remote end will use to connect
type=user ; they will send calls to us
secret=telx-atl ; their password
context=from-telx-atl ; context for calling in
disallow=all
allow=ulaw
; telx-atl-asterisk - Outgoing
[telx-atl]
type=peer
username=telx-nyc ; our username
secret=telx-nyc ; our password
host=192.168.22.7 ; host to connect to
;qualify=yes
;trunk=yes ; use trunking
; telx-NY17S - Incoming
[telx-NY17S]
type=peer
secret=telx-NY17S
context=from-telx-NY17S
disallow=all
allow=ulaw
; telx-NY17S - Outgoing
[telx-NY17S]
type=peer
username=telx-nyc ; our username
secret=telx-nyc ; our password
host=192.168.0.251 ; host to connect to
;qualify=yes
;trunk=yes ; use trunking
[stealth]
type=friend
host=dynamic
auth=md5
secret=telxvoip
context=from-jnctn
permit=206.252.192.70/255.255.255.255
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~
3. Extensions.conf (telx-NY17S)
[general]
static=yes
writeprotect=yes
[bogon-calls]
exten => _.,1,Congestion
[from-sip]
exten => 7101,1,Dial(SIP/7101,20)
exten => 7101,2,Voicemail(u7101)
exten => 7101,102,Voicemail(b7101)
exten => 7101,103,Hangup
exten => 7102,1,Dial(SIP/7102,20)
exten => 7102,2,Voicemail(u7102)
exten => 7102,102,Voicemail(b7102)
exten => 7102,103,Hangup
;Extentions at telx-nyc
exten => _7XXX,1,Dial(IAX2/telx-nyc/${EXTEN})
exten => _7XXX,2,Congestion
exten => _2XXX,1,Dial(IAX2/telx-nyc/${EXTEN})
exten => _2XXX,2,Congestion
exten => _3XXX,1,Dial(IAX2/telx-nyc/${EXTEN})
exten => _3XXX,2,Congestion
exten => 7199,1,VoicemailMain(${CALLERIDNUM})
[from-telx-nyc]
exten => _7XXX,1,Dial(SIP/7101,20)
exten => _7XXX,2,Voicemail(u7101)
exten => _7XXX,102,Voicemail(b7101)
exten => _7XXX,103,Hangup
[macro-telx-nyc]
exten => s,1,Noop()
exten => s,2,Dial(IAX2/telx-nyc/${ARG1})
[outgoing]
;ingnorepat => 9
exten => _9NXXNXXXXXX,1,Noop()
exten => _9NXXNXXXXXX,2,Macro(telx-nyc,${EXTEN})
exten => _9NXXNXXXXXX,3,Playback(invalid) exten => _9NXXNXXXXXX.4,Hangup
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4. iax.conf (telx-nys17s)
cat iax.conf
[general]
allow=all
jitterbuffer=no
tos=lowdelay
[guest]
type=user
context=guest
callerid="Gust NY17S IAX User"
; telx-nyc-asterisk - Incoming -
;
[telx-nyc]
type=user
secret=telx-nyc
context=from-telx-nyc
disallow=all
allow=ulaw
; telx-nyc-asterisk - Outgoing
;
[telx-nyc]
type=peer
username=telx-NY17S ; our username
secret=telx-NY17S ; our password
host=192.168.11.30 ; host to connect to
;qualify=yes
;trunk=yes ; use trunking
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not
waive confidentiality or privilege, and use is prohibited.
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 12468 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20051008/6b19cd36/attachment.jpeg
Dear All;
Hope you are fine. I am developing an application for IAX
using C#, and I have a problem sending frames to the server, I don't know
how exactly I can send the frames. I have saw this site
http://splurge.peoples-wireless.com/iax/ but I couldn't understand how can
combine the frames. This is the code I have written
Public void send(string message)
{
UdpClient udpClient = new UdpClient();
try{
udpClient.Connect("82.201.196.147", 4569);
Byte[] sendBytes = Encoding.ASCII.GetBytes(message);
udpClient.Send(sendBytes, sendBytes.Length);
}
}
Then I call send method and give it the frame to send like for example
(0x0d) but I always get this from the server
1696.476346 82.201.205.17 -> 82.201.196.147 IAX2 Mini packet, source call#
17969, timestamp 8297ms, unknown (0x00)
OR
82.201.205.17 -> 82.201.196.147 IAX2 Mini packet, source call# 24930,
timestamp 25444ms, empty frame
If anyone can help sending an example of what I can put in the message
variable that the server can understand and how can I combine the frames
described in the link below will be great.
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20051008/c7295586/attachment.htm
Hello. This is d Asterisk users list. ~Madhawa Youssef Sayed wrote:> *Dear All;* > > * * > >* Hope you are fine. I am developing an application for IAX using C#, and I have a problem sending frames to the server, I don?t know how exactly I can send the frames. I have saw this site http://splurge.peoples-wireless.com/iax/ but I couldn?t understand how can combine the frames. This is the code I have written* > > > >Public void send(string message) > >{ > >UdpClient udpClient = new UdpClient(); > > try{ > > udpClient.Connect("82.201.196.147", 4569); > > > > Byte[] sendBytes = Encoding.ASCII.GetBytes(message); > > > > udpClient.Send(sendBytes, sendBytes.Length); > > } > >} > > *Then I call **send** **method and give it the frame to send like for > example (**0x0d**) but I always get this from the server* > > * * > > *1696.476346 82.201.205.17 -> 82.201.196.147 IAX2 Mini packet, source > call# 17969, timestamp 8297ms, unknown (0x00)* > > * * > > *OR* > > * * > > *82.201.205.17 -> 82.201.196.147 IAX2 Mini packet, source call# 24930, > timestamp 25444ms, empty frame* > > * * > > *If anyone can help sending an example of what I can put in the > message variable that the server can understand and how can I combine > the frames described in the link below will be great.* > > * * > > Thank you. > >------------------------------------------------------------------------ > >_______________________________________________ >--Bandwidth and Colocation sponsored by Easynews.com -- > >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >