[asterisk-users] Auto Dial problem!
Michel
michelthink at gmail.com
Fri Oct 27 01:54:08 MST 2006
Hello list,
I try to configure auto dial from asterisk (called server B) to another
asterisk (server A) using SIP but I have a strange problem !
(Softphone connected to server B calling clients of server A works)
On server B, I have :
sip.conf :
[to_serverA]
type=peer
username=from_serverB
fromdomain=domainB
fromuser=from_serverB
host=server_A_IP
secret=xxxx
insecure=very
nat=no
test.call
Channel: SIP/to_serverA/99123456
WaitTime: 30
RetryTime: 2
MaxRetries: 2
Context:autodial
Extension:99123456
Priority:1
In plain words, I want to call server A using channel to_serverB.
Server A conf:
sip.conf
[from_serverB]
type=friend
secret=xxxx
host=dynamic
insecure=very
context=autodial
nat=no
extensions.conf
[autodial]
exten => s,1,Answer()
exten => s,2,Playback(dir-intro)
exten => s,3,Playback(vm-goodbye)
exten => s,4,Hangup()
;and tried also to substitute s by _99XXXXXX
The problem :
Logs on server A show that extension autodial is called and everything
seems to work!
However, logs on server B says :
"autodial,99123456,1 failed so falling back to exten 's'
sent into invalid extension 's' in context 'default', but no invalid
handler"
In my opinion, the call really failed because it lasted 0 sec!!! ;-)
What is my problem??
I admit that, for an auto dial, it is useless to "Playback" something!
It can be replaced by a temporisation !!
If you have a suggestion, help me !
Thank you!
More information about the asterisk-users
mailing list