<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#333333">
Hi<br>
<br>
If you want to exchange call between two server I will do the following<br>
<br>
iax svr1<br>
<br>
register => <a class="moz-txt-link-abbreviated" href="mailto:svr2:12345@192.168.0.20">svr2:12345@192.168.0.20</a><br>
Hi<br>
<br>
You need to have a user section that authenticate svr1 on svr2 and svr2
on svr1<br>
<br>
<br>
Phibee Network Operation Center a écrit :
<blockquote cite="mid:4B079395.90804@phibee.net" type="cite">
<pre wrap="">Hi
My first post get no answer :=<, i post new with new elements.
I have two Asterisk server, running on Asterisk 1.6:
SRV1 = 192.168.0.5 on Asterisk 1.6.1.4
SRV2 = 192.168.0.20 on Asterisk 1.6.1.8
I want create a link for exchange call.
on Srv1:
iax.conf:
[general]
bindport=4569
bindaddr=0.0.0.0
language=fr
bandwidth=low
jitterbuffer=no
forcejitterbuffer=no
autokill=yes
calltokenoptional=192.168.0.20
[Srv2]
type=peer
host=192.168.0.20
qualify=yes
trunk=no
encryption=aes128
disallow=all
allow=alaw
allow=g729
context=Incoming
peercontext=Incoming
extension.conf:
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
[globals]
CONSOLE=Console/dsp ; Console interface for demo
[Incoming]
exten => _X.,1,Playback(demo-thanks)
exten => _X.,2,Hangup
[Out]
exten => _201X.,1,Dial(IAX2/Srv2/${EXTEN:3},90,r)
exten => _201X.,2,Congestion
==
Srv1*CLI> iax2 show peers
Name/Username Host Mask Port Status
Srv2 192.168.0.20 (S) 255.255.255.255 4569 (E) OK (39 ms)
1 iax2 peers [1 online, 0 offline, 0 unmonitored]
On Srv2
iax.conf
[general]
bindport=4569
bindaddr=0.0.0.0
language=fr
bandwidth=low
jitterbuffer=no
forcejitterbuffer=no
autokill=yes
calltokenoptional=192.168.0.5
bandwidth=low
[Srv1]
type=peer
host=192.168.0.5
qualify=yes
trunk=no
encryption=aes128
disallow=all
allow=alaw
allow=g729
context=Incoming
peercontect=Incoming
extensions.conf:
[Incoming]
exten => _X.,1,Playback(demo-thanks)
exten => _X.,2,Hangup
[Out]
exten => _202X.,1,Dial(IAX2/Srv1/${EXTEN:3},90,r)
exten => _202X.,2,Congestion
===
trader-voip*CLI> iax2 show peers
Name/Username Host Mask Port Status
Srv1 192.168.0.5 (S) 255.255.255.255 4569 (E) OK (28 ms)
1 iax2 peers [1 online, 0 offline, 0 unmonitored]
===
All SIP Poste are connected and have in context in: Out
Now, when i call from a post connected on Srv1, i have this error on Srv1:
[Nov 21 08:09:44] WARNING[6407]: chan_iax2.c:9018 socket_process: Call
rejected by 192.168.0.20: No authority found
and on Srv2:
[Nov 21 08:09:44] NOTICE[9089]: chan_iax2.c:9785 socket_process:
Rejected connect attempt from 192.168.0.5, who was trying to reach
'125@Incoming'
125 are the number called (201125)
Dialplan on Srv2
Srv2*CLI> dialplan show Incoming
[ Context 'Incoming' created by 'pbx_config' ]
'_X.' => 1. Playback(demo-thanks)
[pbx_config]
2. Hangup()
[pbx_config]
-= 1 extension (2 priorities) in 1 context. =-
Anyone can help me for know where is my error ?
thanks
Jerome
_______________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<title> </title>
<br>
<table>
<tbody>
<tr>
<td> <font color="#4f4e4f" face="arial"> <small> <b>Sylvain
MEYNELLY <br>
NEWTEK <br>
BP 1496 Port-Gentil <br>
GABON <br>
Cell : +241 05 08 20 20 </b></small>
<b> </b></font><b> </b></td>
<td> <img alt="newtek"
src="cid:part1.04060407.00080009@newtek-ga.net"> </td>
</tr>
</tbody>
</table>
</div>
</body>
</html>