Please check the code why isnt working

sip.conf[code][general]
bindarrd=0.0.0.0
port=5060
context=bogon-calls
realm=entropy

basic-options
dtmfmode=rfc2833
type=friend
mobile-phone
host=dynamic
nat=yes
canreinvite=no
disallow=all
allow=g729
allow=ulaw
allow=alaw

201
username=201
secret=secretpass
callerid=(“Kosh @ Mobile” <201>)
context=bogon-calls
mailbox=201@default

200
username=200
secret=pass
callerid=(“softphone” <200>)
context=bogon-calls
mailbox=200@default[/code]

extensions.conf [code] [bogon-calls]
exten => _.,1,Congestion
exten => s,1,Congestion

[mobile-except]
include => ext-sip
exten => _X.,1,Dial(IAX2/122220/${EXTEN})

[ext-sip]
exten => 200,1,Macro(stdexten,200,SIP/200)
exten => 201,1,Macro(stdexten,201,SIP/201)[/code]

This code is not working error is shown blow

I’m not certain if this is the cause but “bindaddr” is misspelled in the 2nd line of your sip.conf.

your extensions context in sip.conf is “bogon-calls” but you defined 200 and 201 extension in “ext-sip” context . you should add include ext-sip in bogon-calls context .

I think bogon-calls is intended to be a honeypot for unauthorised accesses, although I don’t know why just failing as “unknown” isn’t good enoogh.

Yes, but it still should hit congestion in bogon-calls. I’d use the i context in ext-sip instead, but I can’t see why it wouldn’t route to bogon-calls based on what I see here.