On Nov 5, 2007, at 3:47 AM, Andrea Lanza wrote:


Hi Andrea,

I tried a lot of things to cure the problem. What i did to
get the grandstream 386 ATA to work was as follows:

1. Set the grandstream to NOT register for both extensions 2.
Set the sip.conf entry for the grandstream to use a host=IP address:

[grandstream11]
type=friend
secret=grandstream11
context=from-internal-sip       ; the internal context controls what
we can do  (or sip?)
qualify=yes                     ; Qualify peer is no more
than 2000 ms away
nat=no                          ; This phone is not natted
;host=dynamic                   ; This device registers with us
;defaultip=192.168.1.227        ; is fixed IP -- but not
using host since
callweaver complained
host=192.168.1.227
port=5060
canreinvite=no                  ; don't allow RTP voice
traffic to bypass CallWeaver
dtmfmode=info                   ; or RFC2833 or inband for
disallow=all
allow=ulaw
dial=SIP/grandstream11

Now there is always a dial tone when i pick up the analog
phone attached to the ATA and when a call comes trough it
rings the phone instead of going directly to voicemail. What
didn't make a difference was moving to callweaver-1.1.99-RC.20071031.

I guess as much as i have tried to understand the "host" sip
setting (IP or dynamic), "defaultip" and "registering" in
regards to callweaver, i still don't have a clear picture.
Where is someone supposed to go to read about these and other
settings other than the installed conf files?

Peace,
Dan

If assigning a fixed ip to a peer it works, and assigning a dynamic ip
doesn't,
you could check if when it is in dynamic mode it succesfully registers to
the callweaver box.
If it registers, which is the ip shown using sip show peers ? is it the
correct one ?

Yes, when dynamic (host=dynamic & defaultip=192.168.1.227), the ata registers at the correct IP and port pair since there are two analog lines in the 386 ata.

are these devices (ata and cw) onthe same net ? is there any
firewall/router/nat between them ?

No firewall nor router nor nat between them. ATA and cw are on the same gigabit LAN.


As far as I know, there shouldn't be any difference registering a dynamic
peer or defining a fixed ip peer:

Right. I would tend to agree with that with the knowledge i am slowly accumulating as i learn by doing.

if differences actually are, then probably
are networking / firewall issues

But since i have not nat, no router, no firewall, and both are on same gigabit LAN, then it must be something else.


Regarding your question about documentation.... I think the answer is
searching the net.
you  can also have a  look here:
http://www.voip-info.org/wiki/index.php?page=Asterisk+config+sip.conf

Thanks. I do search the net and rely on asterisk config info for most things. But things are changing in CW, like use of "," instead of "|" on some config options strings, etc. It seems to me that at some point the CW documentation should be upgraded to include and explain the configuration lines possible in each config file with more than the line as in the link you mention above. If you know VoIP and asterisk, moving to CW is no problem. If you are jumping in, like me, having more definitions are great. Of course, since i mentioned it, i should offer to help, but i don't know much and so probably would only make it harder and get in the way. I do have a SystemStarter package for Mac OS X to give back. Someone else has already provided something that works so maybe it is not needed.

Adrea, thanks for all your help while i plugged away at trying different things.

Peace,
Dan

_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users

Reply via email to