<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Try adding "userscontext = numberplan-custom-1" to the [general]
section of extensions.conf to see if that helps<br>
<br>
regards,<br>
<br>
Drew<br>
<br>
dima wrote:
<blockquote cite="mid1176882406.5499.18.camel@localhost" type="cite">
<pre wrap="">Tnaks for your answer. Sorry, if I'm missing something obvious here.
Yes, it's asterisk 1.4. I've configured a user entry in users.conf. One
of the lines is "context = numberplan-custom-1". I suppose that should
make that user use the dialplan context [numberplan-custom-1]. I have
[numberplan-custom-1] configured in extensions.conf. However the user
uses [default].
users.conf
.......
[951XXXXXX]
callwaiting = yes
cid_number = 951XXXXXX
context = numberplan-custom-1
email =
fullname = New User
group =
hasagent = no
hasdirectory = no
hasiax = no
hasmanager = no
hassip = yes
hasvoicemail = yes
host = dynamic
mailbox = 951XXXXXX
secret = 000000
threewaycalling = yes
vmsecret = 1234
zapchan =
registeriax = no
registersip = yes
extensions.conf
.....
[default]
exten = _X.,1,NoOp("This is default")
[numberplan-custom-1]
exten = _X.,1,NoOp("This is numberplan-custom-1")
Output of >sip show peer 951XXXXXX
CLI> sip show peer 951XXXXXX
* Name : 951XXXXXX
Secret : <Set>
MD5Secret : <Not set>
Context : numberplan-custom-1
Subscr.Cont. : <Not set>
Language :
AMA flags : Unknown
Transfer mode: open
CallingPres : Presentation Allowed, Not Screened
Callgroup : 1
Pickupgroup : 1
Mailbox : 951XXXXXX
VM Extension : asterisk
LastMsgsSent : 0/0
Call limit : 0
Dynamic : Yes
Callerid : "New User" <951XXXXXX>
MaxCallBR : 384 kbps
Expire : 26
Insecure : no
Nat : RFC3581
ACL : No
T38 pt UDPTL : No
CanReinvite : Yes
PromiscRedir : No
User=Phone : No
Video Support: No
Trust RPID : No
Send RPID : No
Subscriptions: Yes
Overlap dial : No
DTMFmode : rfc2833
LastMsg : 0
ToHost :
Addr->IP : X.X.X.X Port 5060
Defaddr->IP : 0.0.0.0 Port 5060
Def. Username: 951XXXXXX
SIP Options : (none)
Codecs : 0x8000e (gsm|ulaw|alaw|h263)
Codec Order : (none)
Auto-Framing: No
Status : Unmonitored
Useragent : Sipura/SPA3000-2.0.11(GWg)
Reg. Contact : <a class="moz-txt-link-freetext" href="sip:951XXXXXX@X.X.X.X:5060">sip:951XXXXXX@X.X.X.X:5060</a>
</pre>
<blockquote type="cite">
<pre wrap="">Is this Asterisk 1.4.x?
from samples/extensions.conf...
;
; User context is where entries from users.conf are registered. The
; default value is 'default'
;
;userscontext=default
;
Is this any help?
regards,
Drew
dima wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello, everyone.
Today I've installed an asterisk svn trunk (r61667). The problem I'm
having is no matter what context I set in the config file for that peer,
"default" is always being used.
The output of "sip show peers" shows the context correctly, but when I
try to make a call, using that peer, I can only dial the numbers set in
the "default" context.
Please, could anyone help me resolve this.
Thanks in advance.
This is a part of users.conf
[951XXXXXX]
callwaiting = yes
cid_number = 951XXXXXX
context = numberplan-custom-1
email =
fullname = New User
group =
hasagent = no
hasdirectory = no
hasiax = no
hasmanager = no
hassip = yes
hasvoicemail = yes
host = dynamic
mailbox = 951XXXXXX
secret = 000000
threewaycalling = yes
vmsecret = 1234
zapchan =
registeriax = no
registersip = yes
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Drew Gibson
Systems Administrator
OANDA Corporation
<a class="moz-txt-link-abbreviated" href="http://www.oanda.com">www.oanda.com</a>
</pre>
</body>
</html>