[Help] sip.conf parameter


#1

Hi
I am using asterisk 1.2.0 with the Xlite softphone over linux system
I am able to build the connection and the phone are able to hear and talk

I have certain issues with some of the sip.conf file parameters
shown below is one of my context in sip.conf
[1231]
type=friend
regexten=2345
username=rama2
callerid=“rama2” <2347>
host=dynamic
nat=no
canreinvite=no ; always go through Asterisk
disallow=all
allow=gsm ; add whatever other codecs we fancy
allow=ulaw
allow=alaw
context=BaseTest
secret=password
mailbox=1101@local

Q1)for this context i can only dial to this phone using digits 1231
so what is the use of the parameter “regexten=2345”


#2

If you read the sample sip.conf that comes with 1.2, you’ll find out! It’s explained in that file.


#3

Dang! I am not going to switch to 1.2 for a while, but I was curious too.

I understand why you sent him RTFM, but consider the poor lurkers reading the forum for random bits of wisdom :wink:


#4

Oh, ok. I was just trying to discourage laziness, but seeing as you’ve got a reasonable (but not very convincing :wink: ) excuse, here you are. These are the relevant bits:

; If regcontext is specified, Asterisk will dynamically
; create and destroy a NoOp priority 1 extension for a given
; peer who registers or unregisters with us. The actual extension
; is the ‘regexten’ parameter of the registering peer or its
; name if ‘regexten’ is not provided. More than one regexten may be supplied
; if they are separated by ‘&’. Patterns may be used in regexten.
;
;regcontext=sipregistrations

;[xlite1]
; Turn off silence suppression in X-Lite (“Transmit Silence”=YES)!
; Note that Xlite sends NAT keep-alive packets, so qualify=yes is not needed
;type=friend
[color=red];regexten=1234 ; When they register, create extension 1234[/color]
;callerid=“Jane Smith” <5678>
;host=dynamic ; This device needs to register
;nat=yes ; X-Lite is behind a NAT router
;canreinvite=no ; Typically set to NO if behind NAT
;disallow=all
;allow=gsm ; GSM consumes far less bandwidth than ulaw
;allow=ulaw
;allow=alaw