Updating g1 phone
Our phones have their own context, and people calling us, from the outside, have their own context, with more restrictions. Now that we have added the definition of our trunk, we can use it in our dialplan, and make it possible for us to dial out, and for others to dial in.
Before that will happen, we need to add a new context to the dialplan, and the simplest form of call handling, to start with.
) associated with the trunk, for others to be able to dial your phones, through your Asterisk PBX.
A SIP trunk is often defined using many buzz- and marketing words throughout the web, but, what it basically is, is a two-way connection to a VOIP-provider, that routes the calls you send to it, out on the PSTN for you, and charges you for the calls you make.
The Log() application writes to Asterisk’s logfile (with the specified syslog level), and Asterisk’s console.
This is nice when testing and debugging the dialplan.
This contrasts with a locked phone, which is bound to a specific cell phone service provider (or carrier) network with software settings, and is typically offered with a contract when someone starts mobile service.
Phone number – 04224200286 Tondiarpet : 94451 90004 Royapuram: 94451 90005, Kodambakkam: 94451 90010, Thiru-Vi-Ka Nagar: 94451 90006, Teynampet: 94451 90009, Anna Nagar: 94451 90008, Ambattur: 94451 90010, Adyar: 94451 90213 and Sholinganallur: 94451 90015.It is VERY IMPORTANT to always have a Hangup() at the end of every extension! Add the following in the context that our telephones are placed in: There are a couple of things that might need explanation in the above.We use the Dial() application again, to dial the number we entered in our phone, but “$” uses the entered number, after the first digit, that is the meaning of “:1”.The Dial() application then dials extension 1000, our first telephone.The Hangup() application ends the call, if the caller hangs up, Asterisk then needs to hangup the call internally aswell, and that is what happens on the last line in this extension. To make it possible for our telephones to dial out through the trunk, we need to catch the dialed phone numbers, and strip off the dialout extension number that we will use, then pass the real phone number to our provider, and let them route the call to its destination in the PSTN (or maybe we dial a SIP address, it is all handled in the same way, if your provider has configured their end correctly).