[asterisk-users] no special context for sip peer
Yuan LIU
yliu11 at hotmail.com
Mon Mar 19 10:42:58 MST 2007
>From: Christophorus Laube <bob at SemanticEdge.de>
>Date: Mon, 19 Mar 2007 13:23:34 +0100
>
>Hi list,
>
>I want to set up special contexts for every sip user. But a context=XYZ
>does not help in the perr definition as I have to provide a context in the
>general section of sip.conf. This is my sip.conf:
>
>[general]
>port=5060
>bindaddr=192.168.0.75
>disallow=all allow=ulaw allow=alaw context=SIP
>maxexprirey=3600
>defaultexpirey=120
>language=de
>pritrustusercid=yes callerid=asreceived
>
>[bob]
>type=peer
A peer can only receive calls from your Asterisk, so there is no way to
really "invoke" that context. A user or friend will use the context to call
others through your Asterisk, therefore needs a context.
Yuan Liu
>username=bob
>host=dynamic
>secret=nothing
>context=BOB_SIP
>qualify=yes
>canreinvite=yes
>callingpres=allowed_passed_screen
>
>So what am I doing wrong? What do I have to change in order to get my
>BOB_SIP extensions to work when I am doing a call from this peer? Now *
>always takes the "default" context SIP.
>Regards, Christophorus
More information about the asterisk-users
mailing list