[Asterisk-Users] why asterisk is replying 404 Not Found

Rich Adamson radamson at routers.com
Thu Feb 10 02:14:13 MST 2005


> [3000]
> type=friend
> dtmfmode=INFO
> insecure=yes
> canreinvite=no
> auth=plaintext
> host=dynamic
> allow=ulaw
>                                                       
>                                           
> [2000]
> type=friend
> dtmfmode=INFO
> insecure=yes
> canreinvite=no
> auth=plaintext
> host=dynamic
> allow=ulaw
> 
> i have declared these two users 3000 and 2000. they
> are registering successfully.
> 
> problem is that when i am clling for 3000 to 2000. it
> is replying me 404 Not found and printing (found user
> '3000' looking for 2000 in default). and when i am
> calling from 2000 to 3000. it is replying me 404 not
> found and printing (found user '2000' looking for 3000
> in default).

It may help you a lot to add "context=from-sip" in each of the
two above. Then in your extensions.conf define this context with
the appropriate "exten => ..." entries for your dialplan.

It would appear you are getting caught with not understanding the
use of contexts, and your existing sip.conf entries are defaulting
to the "default" context and you don't see/know that.

So, given the above, your extensions.conf would have something
like this in in:

[from-sip]
exten => 3000,1,Dial(SIP/3000,15,r)
exten => 3000,2,Voicemail(u3000)
exten => 3000,102,Voicemail(b3000)
exten => 3000,103,Hangup

exten => 2000,1,Dial(SIP/2000,15,r)
exten => 2000,2,Voicemail(u2000)
exten => 2000,102,Voicemail(b2000)
exten => 2000,103,Hangup

Hope that helps...





More information about the asterisk-users mailing list