incoming calls always goe to the default context

elsev7
Joined: Sat 04 of Feb, 2012

FIXED: incoming calls always go to the default context

Posted:Wed 08 of Feb, 2012 (20:16 UTC)
hi striker

looks much better now!

I added the :5060 in the register string and changed from type peer to friend.

Thanks a lot for your feedback.
striker
Joined: Tue 19 of Oct, 2010

Re: incoming calls always goe to the default context

Posted:Tue 07 of Feb, 2012 (17:45 UTC)
make sure your account is register with the server

sip show peers
sip show registry

also make these changes

register => username:secret@ipaddre:5060/username

and in sip.conf put type = friend instead of peer
elsev7
Joined: Sat 04 of Feb, 2012

incoming calls always goe to the default context

Posted:Sat 04 of Feb, 2012 (13:33 UTC)
Hi,

I guess I have a logical problem. Incomming calls always go to the default context, although they are marked with
context=from_provider
in the [provider] section.

Could pls. someone have a look on my sip.conf/extension.conf?

Thanks in advance

[general]
port=5060
bindaddr=0.0.0.0
context=default
useragent=Linksys/SPA942-5.1.10
nat=no

register => UUUU:XXX@sip.provider.ch/UUU

[provider]
context=from_provider
type=peer
host=sip.provider.ch
fromuser=UUUU
username=UUUU
md5secret=XXXX
fromdomain=sip.provider.ch
canreinvite=no
qualify=yes
insecure=port,invite
nat=no
dtmfmode=info
disallow=all
allow=alaw
allow=ulaw
allow=g729
allow=g726aal2
allow=gsm
allow=g726
useragent=Linksys/SPA942-5.1.10
amaflags=default
accountcode=provider

extension.conf
; default context (carbage collection)
[default]
exten => _X.,1,NoOp(incomming call from ${CALLERID(num)} for ${EXTEN})
exten => _X.,2,Busy()
exten => _X.,n,HangUp()


[from_provider]
exten => 0123456789,1,Answer()
exten => 0123456789,n,Echo()
exten => 0123456789,n,Hangup

incomming calls go to the default context, instead of [from_provider]

    -- Executing [0123456789@default:1] NoOp("SIP/62.65.137.114-0a057608", "call from xxxxxxxx for 0123456789") in new stack
    -- Executing [0123456789@default:2] Busy("SIP/62.65.137.114-0a057608", "") in new stack
  == Spawn extension (default, 0123456789, 2) exited non-zero on 'SIP/62.65.137.114-0a057608'