bilal ghayyad
2007-Aug-02 15:11 UTC
[asterisk-users] Receiving SIP calls without registeration and dynamic IP address
Hi List; How can I configure asterisk to receive a call from SIP end point without being registered at asterisk and its IP address is dynamic, and authentication to be based on the username and password or any other string? I know that if I place the host with static IP then no need to register, but what if the voip gateway was having dynamic IP and I do not need to register on asterisk, but I need to send the call directly and asterisk authenticate the device based on the username and password or any possible string? Regards, ----------- ITS IP Telephony and Contact Center Engineer Eng. Bilal Ghayad Mobile: 00965 9849460 ____________________________________________________________________________________ Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/
Jared Smith
2007-Aug-02 15:30 UTC
[asterisk-users] Receiving SIP calls without registeration and dynamic IP address
On Thu, 2007-08-02 at 08:11 -0700, bilal ghayyad wrote:> How can I configure asterisk to receive a call from > SIP end point without being registered at asterisk and > its IP address is dynamic, and authentication to be > based on the username and password or any other > string?I think you're confused here... registration has nothing to do with a SIP device being able to send calls to Asterisk. A SIP devices registers with Asterisk so that Asterisk knows where to send calls going *to* the device. For calls coming into Asterisk, the SIP channel driver first looks at all the users in sip.conf (you know, everything set with type=user or type=friend). It matches on the name in square brackets as the SIP username, and the password on the "secret=" line. If the device authenticates correctly, the call gets sent to the dialplan in the context specified by the "context=" line. As an example, let's say we had the following in sip.conf: [test] type=user secret=abc123 context=hamburger If any SIP device were to come along and authenticate with the username "test" and the password "abc123", Asterisk would accept the call and send the call to the [hamburger] context in the dialplan. Asterisk would do this *whether or not* the device had registered. Now, as I understand it, if Asterisk can't find any users (or friends) that match, it then goes looking through the list of peers, trying to match the "host=" field to the IP address of the device that's sending the call to Asterisk. Hopefully that clarifies things for you. -- Jared Smith Community Relations Manager Digium, Inc.
Alex Balashov
2007-Aug-02 15:42 UTC
[asterisk-users] Receiving SIP calls without registeration and dynamic IP address
Bilal, The purpose of registration is to establish a contactability/reachability URI information in the registrar dynamically. If you have a static IP on both ends you can nail up an IP-trusted peer session / SIP trunk. If not, some form of registration will be required. Registration does not necessarily require a username and password; in fact, it is rarely sent with the registration anyway. Instead it is usually sent as a response to a 407 proxy challenge in subsequent requests, unless the REGISTER message is interrogated with that prior to being accepted, which depends on how you have the UAS configured. Other than that, not quite sure what you're asking precisely... -- Alex On Thu, 2 Aug 2007, bilal ghayyad wrote:> Hi List; > > How can I configure asterisk to receive a call from > SIP end point without being registered at asterisk and > its IP address is dynamic, and authentication to be > based on the username and password or any other > string? > > I know that if I place the host with static IP then no > need to register, but what if the voip gateway was > having dynamic IP and I do not need to register on > asterisk, but I need to send the call directly and > asterisk authenticate the device based on the username > and password or any possible string? > > Regards, > ----------- > ITS > IP Telephony and Contact Center Engineer > Eng. Bilal Ghayad > Mobile: 00965 9849460 > > > > ____________________________________________________________________________________ > Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. > http://sims.yahoo.com/ > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Alex Balashov Evariste Systems Web : http://www.evaristesys.com/ Tel : +1-678-954-0670 Direct : +1-678-954-0671
bilal ghayyad
2007-Aug-02 17:56 UTC
[asterisk-users] Receiving SIP calls without registeration and dynamic IP address
Hi Alex; Kindly find my answers below preceeded by ( * ). Bilal, The purpose of registration is to establish a contactability/reachability URI information in the registrar dynamically. * What is the URI? If you have a static IP on both ends you can nail up an IP-trusted peer session / SIP trunk. If not, some form of registration will be required. Registration does not necessarily require a username and password; in fact, it is rarely sent with the registration anyway. Instead it is usually sent as a response to a 407 proxy challenge in subsequent requests, * Who send the 407 proxy challenge and what is that 407 proxy challenge? unless the REGISTER message is interrogated with that prior to being accepted, which depends on how you have the UAS configured. * What is the UAS, also I did not get u in this paragraph. Other than that, not quite sure what you're asking precisely... * I was asking if the endpoint send a call, and it has a username and password typical to that configured in SIP.conf file, then should this end point being registered or not? Regards Bilal ____________________________________________________________________________________ Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=list&sid=396545433
William Moore
2007-Aug-02 18:22 UTC
[asterisk-users] Receiving SIP calls without registeration and dynamic IP address
> * I was asking if the endpoint send a call, and it has > a username and password typical to that configured in > SIP.conf file, then should this end point being > registered or not?If you are only *SENDING* calls to asterisk and not receiving, you do not need to send a registration. You only need to send a registration if you want to *RECEIVE* calls from asterisk.