SearchSearch  Log in to check your private messagesLog in to check your private messages  recent posts Recent Posts
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
black1eOffline



Joined: Dec 05, 2007
Posts: 5

Status: Offline
Posted: Mar 11, 2008 - 09:37 PM Reply with quote Back to top
Hi
I used the Safari book Asterisk the future of telephony to trunk to asterisk servers together. It worked ok but I have no idea how the extensions.confs work. The explanation in the book wasn't that good. Can someone take me through it in laymans terms as I am still fairly new to asterisk

Toronto extensions.conf:
[globals]
[general]
autofallthrough=yes
[default]
[incoming_calls]
[phones]
include => internal
include => remote
[internal]
exten => _2XXX,1,NoOp()
exten => _2XXX,n,Dial(SIP/${EXTEN},30)
exten => _2XXX,n,Playback(the-party-you-are-calling&is-curntly-unavail)
exten => _2XXX,n,Hangup()
[remote]
exten => _1XXX,1,NoOp()
exten => _1XXX,n,Dial(SIP/osaka/${EXTEN})
exten => _1XXX,n,Hangup()
[osaka_incoming]
include => internal


Thanks in advance for your help
View user's profile Send private message
x-consoleOffline
Site Admin


Joined: Aug 01, 2006
Posts: 1503
Location: Leeds UK
Status: Offline
Posted: Mar 12, 2008 - 12:46 PM Reply with quote Back to top
i think the idea is that your registered subscribers are given the default context of 'phones', which includes the local and remote contexts. A single digit prefix is then used to route the call out on the apropriate channel, where internal calls are delivered locally via SIP, and remote calls are sent out on the osaka entity defined in your sip.conf (also using SIP)
View user's profile Send private message Yahoo Messenger
black1eOffline



Joined: Dec 05, 2007
Posts: 5

Status: Offline
Posted: Mar 20, 2008 - 09:34 PM Reply with quote Back to top
Thanks for the esponse what I am having a problem is with the following lines
exten => _2XXX,1,NoOp()
exten => _2XXX,n,Dial(SIP/${EXTEN},30)

I don't understand what they mean ?
H
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 3011
Location: Bath UK
Status: Offline
Posted: Mar 20, 2008 - 10:14 PM Reply with quote Back to top
OK

exten => _2XXX,1,NoOp()
Means when you dial a 4 digit number starting with a 2 then first do a NoOp ie no operation but NoOp(Hello World) would show hello world on the asterisk cli

exten => _2XXX,n,Dial(SIP/${EXTEN},30)
Now dial the sip peer that is the number you dialed so for example if you dialed 2122 then it SIP/2122 will be called for 30 seconds then ! go to the timeout extension or if thats missing it will hangup.

Hope that helps
View user's profile Send private message
black1eOffline



Joined: Dec 05, 2007
Posts: 5

Status: Offline
Posted: Mar 28, 2008 - 03:38 PM Reply with quote Back to top
Thanks that did help enough for me to expalin it in my project.
View user's profile Send private message


View previous topic Printable version Log in to check your private messages View next topic

Post new topic   Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2008 VoIP User Limited.

VoIP User Limited is incorporated in England and Wales under Company Number 6694577.

No part of this site may be reproduced without our prior consent.