I’m at the end of my wits…
I simply can’t seem to get Asterisk to register to my router/modem.
I have a modem/router at home that also handles the voip traffic. It’s from my ISP and I can’t really do anything with it. The provider won’t disclose the sip settings so replacing it for a better piece of hardware is not possible either…
However, I can register softphones to that thing, and it’s pretty easy too.
So I thought I’d let Asterisk register itself to that router and let it answer calls, like some fancy answering machine (to start with).
I’ve been busy for 2 weeks now read every page google threw at me about the errors I get (even some russian ones, gotta love google translate) but no luck.
I’ve tried every possible combination I could find of the "register => " string but the thing refuses to register…
I don’t get it anymore… all I can find about it on the internet in combination with my hardware is that it no longer works but I refuse to believe that. If a softphone works then asterisk should be able to work with it too, right? But if Asterisk can’t register then it can never answer calls… well, not coming from the router…
I’m not even trying to let asterisk answer the calls… I just want it to register so it ‘can’ answer them once I edit the extensions.conf…
this is the registering part of my sip.conf. The way I understand it, this should be enough to at least let it show up in the router as a registered phone even though it can’t do anything yet… correct me if I’m wrong plz.
[general]
context=default
srvlookup=no
bindport=5060
bindaddr=192.168.2.100
;disallow=all
allow=alaw
canreinvite=no
localnet=192.168.2.0/255.255.255.0
defaultexpirey=3600
insecure=port,invite
register => *105@192.168.2.254:pass:*105@192.168.2.254/*105
Every combination of the register string I’ve tried but no luck…
the following errors show up:
[Nov 6 22:50:01] NOTICE[22488]: chan_sip.c:13273 sip_reg_timeout: -- Registration for '*105@192.168.2.254' timed out, trying again (Attempt #5)
[Nov 6 22:50:01] NOTICE[22488]: chan_sip.c:20830 handle_response_register: Failed to authenticate on REGISTER to '*105@192.168.2.254' (Tries 3)
[Nov 6 22:50:21] NOTICE[22488]: chan_sip.c:13273 sip_reg_timeout: -- Registration for '*105@192.168.2.254' timed out, trying again (Attempt #9)
[Nov 6 22:50:21] NOTICE[22488]: chan_sip.c:20830 handle_response_register: Failed to authenticate on REGISTER to '*105@192.168.2.254' (Tries 3)
[Nov 6 22:50:41] NOTICE[22488]: chan_sip.c:13273 sip_reg_timeout: -- Registration for '*105@192.168.2.254' timed out, trying again (Attempt #13)
[Nov 6 22:50:41] NOTICE[22488]: chan_sip.c:20830 handle_response_register: Failed to authenticate on REGISTER to '*105@192.168.2.254' (Tries 3)
[Nov 6 22:51:01] NOTICE[22488]: chan_sip.c:13273 sip_reg_timeout: -- Registration for '*105@192.168.2.254' timed out, trying again (Attempt #17)
[Nov 6 22:51:01] WARNING[22488]: chan_sip.c:21345 handle_response: Remote host can't match request REGISTER to call '74671de231704c9c2d3967bd010ce6a0@192.168.2.100'. Giving up.
[Nov 6 22:51:21] NOTICE[22488]: chan_sip.c:13273 sip_reg_timeout: -- Registration for '*105@192.168.2.254' timed out, trying again (Attempt #18)
[Nov 6 22:51:21] WARNING[22488]: chan_sip.c:21345 handle_response: Remote host can't match request REGISTER to call '74671de231704c9c2d3967bd010ce6a0@192.168.2.100'. Giving up.
And all the router says is:
11/06/2012 22:52:11 [VoIP] SIP account 10 register fail(481)
11/06/2012 22:52:11 [VoIP] SIP account 9 register fail(481)
11/06/2012 22:51:41 [VoIP] SIP account 10 register fail(481)
11/06/2012 22:51:41 [VoIP] SIP account 9 register fail(481)
11/06/2012 22:51:11 [VoIP] SIP account 10 register fail(481)
11/06/2012 22:51:11 [VoIP] SIP account 9 register fail(481)
I checked the SIP rfc but I don’t understand a word about the explanation…
I tried a nonexisting username and the errors change, so the username is parsed correctly. I tried escape characters for the * just in case but that didn’t help either. Changing the password didn’t change anything in the error messages but that password works when I use it with a softphone.
This forum is my last hope. I’m a newbie. figuring stuff out by myself has always been a great way to learn a lot in a very short time but this simply seems impossible…
I hope somebody here can tell me what to try next.