harry R
2009-Aug-05 12:32 UTC
[asterisk-users] sip.conf parameter and sip msg between server <-> client
Hello I have few questions : - what's the difference between a subscribe request et a register request ? - in asterisk 1.6 allowguest=yes or no param does it work ? if yes, please someone could explain how doest it work because I think i'm a little bit confuse. - if I configure a sip terminal in sip.conf like this [john] type=friend username=JOHN secret=mypassword host=dynamic context=default these affirmations are right or wrong : a) 'john' and 'mypassword' are variables which are used when I want to "connect" my softphone or phone to Asterisk server (register request) AND when I initiate a call (invite request)? b) 'dynamic' mean that [john] will be automatically registred to Asterisk server and 'qualify=yes' parameter may not be necessary ? c) in your softphone setting (here i use xlite), parameter 'username' must be the same as parameter 'username' in sip.conf ? d) in you softphone setting (here i use xlite), parameter 'Authorization username' must be the same as parameter [john] in sip.conf ? e) instead of using 'dynamic' for parameter 'host', if I use @IP or a hostname or FQDN, parameter qualify must set to' yes' or to '2000' in order to Asterisk server can know when [john] is reachable ? regards H. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090805/14dbe916/attachment.htm
Patrick Plattes
2009-Aug-05 14:16 UTC
[asterisk-users] sip.conf parameter and sip msg between server <-> client
Hello, well let me explain one part of your question, the host parameter. if you want to restrict the access to one ip you can say it here. "host=192.168.2.13" means, that you can only use this account from 192.168.0.13, eg. for security reasons. i recommend so set it to "dynamic" at the moment and if it works you can change if you wish. aot of information about the sip.conf you can find here: http://www.voip-info.org/wiki/index.php?page=Asterisk+config+sip.conf On Wed, Aug 5, 2009 at 2:32 PM, harry R<rhm.noa101 at gmail.com> wrote:> Hello > > I have few questions : > - what's the difference between a subscribe request et a register request ? > - in asterisk 1.6 allowguest=yes or no param does it work ? if yes, please > someone could explain how doest it work because I think i'm a little bit > confuse. > > - if I configure a sip terminal in sip.conf like this > [john] > type=friend > username=JOHN > secret=mypassword > host=dynamic > context=default > > these affirmations are right or wrong : > a) 'john' and 'mypassword' are variables which are used when I want to > "connect" my softphone or phone to Asterisk server (register request) AND > when I initiate a call (invite request)? > b) 'dynamic' mean that [john] will be automatically registred to Asterisk > server and 'qualify=yes' parameter may not be necessary ? > c) in your softphone setting (here i use xlite), parameter 'username' must > be the same as parameter 'username' in sip.conf ? > d) in you softphone setting (here i use xlite), parameter 'Authorization > username' must be the same as parameter [john] in sip.conf ? > e) instead of using 'dynamic' for parameter 'host', if I use @IP or a > hostname or FQDN, parameter qualify must set to' yes' or to '2000' in order > to Asterisk server can know when [john] is reachable ? > > regards > > H. > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2009 - October 13 - 15 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > ? http://lists.digium.com/mailman/listinfo/asterisk-users >-- Niemann + Frey GmbH Bischofstra?e 80 47809 Krefeld Gesch?ftsf?hrer: Gerd Frey Sitz und Registergericht: Krefeld HRB 10851
Jared Smith
2009-Aug-05 19:22 UTC
[asterisk-users] sip.conf parameter and sip msg between server <-> client
On Wed, 2009-08-05 at 14:32 +0200, harry R wrote:> - what's the difference between a subscribe request et a register > request ?A subscription in the SIP protocol is saying "Hey, I'd like to be notified when something happens." This is most often used when a phone wants to subscribe to the state of another extension, or to the status of a voicemail box. A registration is where one SIP device tells another "Hey, I'm over here. If you get any calls for me, send them to me at this IP address and port." -- Jared Smith Training Manager Digium, Inc.