[Asterisk-Users] RE: Problem connecting to ASkterisk Server

Andrew Thompson asteriskuser at aktzero.com
Sun Feb 29 20:21:54 MST 2004


Abraham Lincoln wrote:
> Hey Andrew,
>    Hi! Thanks for the info! your sample config works with my iax.conf
> im getting the following response whenever my 2 client windows
> machine adds an account  
> 
> -- Registered '711' (AUTHENTICATED) at 192.168.1.2:4569
> -- Registered '712' (AUTHENTICATED) at 192.168.1.3:4569
> 
> But im getting this problem when i try to call the other machine on
> my lan with IAXClient on both side or both windows machine. 
> 
>   in IAXclient when i put 712 in extension then dial it dials but the
> client on the other machine is not seeing anything like "Calling or
> something"  
> 
>    but IAXClient when i put 712 in the Extension then i Choose "711"
> in Account section w/c is the one registered to the client im getting
> a "Call Rejected" response from the client when i click "DIAL"  
> 
>    this is my Config in my extensions.conf
> [711]
> exten => _1711XXXX,1,SetCallerID(${CALLERIDNUM})
> exten => _1711XXXX,2,Macro(oneline,IAX2/${EXTEN:1})
> 
> [712]
> exten => _1712XXXX,1,SetCallerID(${CALLERIDNUM})
> exten => _1712XXXX,2,Macro(oneline,IAX2/${EXTEN:1})


The only way the extensions you included could be called is if you had
dialed 1711 plus 4 more digits.

> 
>    Are you familiar with this problem and how to fix it?  this is m
> first 
> time to setup a voip server and using iax protocol...
> 
>     Thank You...
> 
> Abraham

When first getting set up, it's a good idea to try the simplest thing
that could work. Without seeing the rest of your extensions.conf, I
can't be too sure what's wrong. I'm going to make a few assumptions and
give you a sample that should work.

extensions.conf:

[macro-ext]
exten => s,1,Dial(${ARG2},90)

[default] 
; use either default, or some other context where
; you can group your common extensions together
exten => 711,1,Macro(ext,711,IAX2/711)
exten => 712,1,Macro(ext,712,IAX2/712)


OK, here's what we've got. (I clipped this from my config, but it's not
been tested as is.)

The first is a definiton of a simple macro to dial whatever device is
passed to it.

The second is a list of extensions that are valid to be dialed by a
caller that's in the default context.

I'm copying this back to the list, if any other questions follow you'll
find people more qualified to answer them there.

-----
Andrew Thompson
http://aktzero.com/ 





More information about the asterisk-users mailing list