Re: [Asterisk-Users] IAX Help

2005-10-08 Thread Tzafrir Cohen
On Sat, Oct 08, 2005 at 11:56:40AM +0200, Youssef Sayed wrote:
 Dear All;
 
  
 
Hope you are fine. I am developing an application for IAX
 using C#, 

Any reason for not using iaxclient?

-- 
Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il |   | a Mutt's  
[EMAIL PROTECTED] |   |  best
ICQ# 16849755 |   | friend
___
--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


Re: [Asterisk-Users] IAX Help

2005-10-08 Thread [EMAIL PROTECTED]

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




___
--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


Re: [Asterisk-Users] IAX help

2005-04-26 Thread Brian Capouch
Kanuri, Seshu (Company IT) wrote:
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:
I don't believe that part of your advice is correct.
I have a number of such entries in my iax.conf and they seem to work 
without problem.  It is actually recommended by some providers that it 
be done that way.

I'll stand corrected on this, but for sure I am using separate peer/user 
entries without problem.

B.
___
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


RE: [Asterisk-Users] IAX help

2005-04-25 Thread Kanuri, Seshu (Company IT)
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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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 = _NXXNXX,1,Goto(aa-main,s,1)

[from-swifttel]
exten = _NXXNXX,1,NoOp(Context is from-swifttel) exten =
_NXXNXX,2,Goto(aa-main,s,1)

[default]
include = aa-main
exten = _NXXNXX,1,NoOp(Context is default) exten =
_NXXNXX,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:[EMAIL PROTECTED]

; 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 = _9NXXNXX,1,Noop()
exten = _9NXXNXX,2,Macro(telx-nyc,${EXTEN})
exten = _9NXXNXX,3,Playback(invalid) exten = 

Re: [Asterisk-Users] IAX help

2005-04-23 Thread Peter Bowyer
On 23/04/05, Michael DiMartino [EMAIL PROTECTED] wrote:

 3. Extensions.conf  (telx-NY17S)


 ;Extentions at telx-nyc


 exten = _7XXX,1,Dial(IAX2/telx-nyc/${EXTEN})

exten = _7XXX,1,Dial(IAX2/username:[EMAIL PROTECTED]/${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: [EMAIL PROTECTED]
Tel: +44 1296 768003
VoIP: sip:[EMAIL PROTECTED]
___
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