[Asterisk-Users] Connecting two servers - dial string

Joseph syscon at interbaun.com
Sun Jul 3 19:01:01 MST 2005


On Mon, 2005-07-04 at 01:09 +0200, Roland Zagler wrote:
> Hi Joseph,
> 
> here is how i did it:
> 
> iax.conf of server1:
> 
> [server2]
> type=friend
> auth=md5
> username=server1
> secret=<secret>
> context=default
> host=dynamic
> defaultip=<public ip of server2>
> deny=0.0.0.0/0.0.0.0
> permit=<public ip of server2>/255.255.255.255
> disallow=all
> allow=g729,gsm
> 
> 
> iax.conf of server2:
> 
> [server1]
> type=friend
> auth=md5
> username=server2
> secret=<secret>
> context=default
> host=dynamic
> defaultip=<public ip of server1>
> deny=0.0.0.0/0.0.0.0
> permit=<public ip of server1>/255.255.255.255
> disallow=all
> allow=g729,gsm
> 
> 
> extensions.conf of server1:
> 
> exten => _2X.,1,Dial(IAX2/server2/${EXTEN:1},30)
> 
> 
> extensions.conf of server2:
> 
> exten => _1X.,1,Dial(IAX2/server1/${EXTEN:1},30)

That worked for a while but it seems to me I can not transfer the call to any extension.

I have a context "incoming" in extension.conf in incoming server2
[incoming]
exten => 888,1,Goto......

And I dial from server1:
exten => 888,1,Dial(IAX2/server2/${EXTEN,1},30,r)

It keeps telling on the server2 (that accept the call) that  "request
'@incoming" doesn't exist.

When I try without any extension 
exten => 888,1,Dial(IAX2/server2,30,r)
and forward the call to context that start with "s"  for example
'office-open'
it keeps telling me that "request 's at office-open' doesn't exist.

I'm using asterisk 1.0.7.  
Why the extension is not being passed to the dialing server?

-- 
#Joseph



More information about the asterisk-users mailing list