[Asterisk-Users] IConnectHere: Outbound working, Inbound not working....
Eric Wieling
eric at fnords.org
Sun Feb 16 13:00:16 MST 2003
Thanks to a response to my earlier post I have outbound calling
working from a SIP Softphone to numbers on the PSTN via
iconnecthere.
Now I'm trying to get inbound calling working. It seems that
when a call comes into Asterisk via iconnecthere it always falls
into the "s" extention. I have two phone numbers with
iconnecthere and want to route calls to each of the numbers
differently. Can this be done? If so, how?
Basically I want callers to 1813342XXXX to be routed to 2102 and
calls to 1202454XXXX to be routed to 2103
Thanks in advance for any help!
Here are my config files:
;
; SIP Configuration for Asterisk
;
[general]
port = 5060 ; Port to bind to
bindaddr = 0.0.0.0 ; Address to bind to
context = default ; Default for incoming calls
register=1813342XXXX:XXXXXX at sipauth.deltathree.com
register=1202454XXXX:XXXXXX at sipauth.deltathree.com
[iconnecthere]
type=friend
username=XXXXXX
secret=XXXXXX
host=sipauth.deltathree.com
context=default
[2102]
type=friend
secret=XXXXXX
host=dynamic
context=default
[2103]
type=friend
secret=XXXXXX
host=dynamic
context=default
;
; Extention Configuration for Asterisk
;
[default]
exten => 2102,1,Dial,SIP/2102 at 2102
exten => 2102,2,Voicemail(2102)
exten => 2103,1,Dial,SIP/2103 at 2103
exten => 2103,2,Voicemail(2103)
exten => _91XXXXXXXXXX,1,Dial,SIP/${EXTEN-1}@iconnecthere
exten => _91XXXXXXXXXX,2,Congestion
exten => s,1,Wait,1 ; Wait a second, just for fun
exten => s,2,Answer ; Answer the line
exten => s,3,DigitTimeout,5 ; Set Digit Timeout to 5 seconds
exten => s,4,ResponseTimeout,10 ; Set Response Timeout to 10 seconds
exten => s,5,Directory,default
exten => t,1,Goto(#,1) ; If they take too long, give up
exten => i,1,Playback(invalid) ; "That's not valid, try again"
More information about the asterisk-users
mailing list