Maybe you should start reading here:
http://www.voip-info.org/wiki-Asterisk+introduction to get basic
knowledges of Asterisk
Ronald Wiplinger schrieb:
BetaTeilchen wrote:
Ronald Wiplinger schrieb:
Thanks for helping me, but it still does not work.
[sipgate.de]
type=friend
username=5552220
secret=my_password3
host=sipgate.de
fromuser=5552220
fromdomain=sipgate.net
should be "fromdomain=sipgate.de"
nat=yes
context=incomingsipgate
canreinvite=no
[sipgate.co.uk]
type=friend
username=4782156
secret=my_password4
host=sipgate.co.uk
fromuser=4782156
fromdomain=sipgate.net
should be "fromdomain=sipgate.co.uk"
nat=yes
context=incomingsipgate
canreinvite=no
extensions.conf:
===========
[general]
static=yes
writeprotect=no
[globals]
CONSOLE=Console/dsp ; Console interface for demo
[incomingsipgate]
exten => h,1,Hangup
exten => 800XXXX,1,Dial(SIP/internestelefon,20,tr)
should be
[incomingsipgate]
exten => 5552220,1,Dial(SIP/internestelefon,20,r)
exten => 4782156,1,Dial(SIP/internestelefon,20,r)
What is the difference between tr and r ? What does the 20 mean?
[sipgate.de]
exten => _0049.,Dial(SIP/${EXTEN:[EMAIL PROTECTED],30,tr)
exten => _0049.,2,Playback(invalid)
exten => _0049.,3,Hangup
should be
(you forgot to number prio 1 !)
exten => _0049.,1,Dial(SIP/0${EXTEN:[EMAIL PROTECTED],30,r)
; do not dial international prefix 0049 with Sipgate, if you call
from same national net !
exten => _0049.,2,Playback(invalid)
exten => _0049.,3,Hangup
[sipgate.co.uk]
exten => _0044.,Dial(SIP/${EXTEN:[EMAIL PROTECTED],30,tr)
exten => _0044.,2,Playback(invalid)
exten => _0044.,3,Hangup
exten => _0044.,1,Dial(SIP/0${EXTEN:[EMAIL PROTECTED],30,tr)
; do not dial international prefix 0044 with Sipgate, if you call
from same national net !
exten => _0044.,2,Playback(invalid)
exten => _0044.,3,Hangup
I did not understand the paragraph of [incomingsipgate].
This is the context to which all incoming calls from Sipgate will be
sent to be handled.
I also do not understand EXTEN:1 (should the second phone be
EXTEN:2 ???)
please regard correct expression ${EXTEN:1} !
This means "take the variable ($) called {EXTEN} (this is the dialed
number) and cut the FIRST digit (:1)"
So - if you dial 0049341234567 and then DIAL(SIP/${EXTEN:1}...) this
will result in dialing 0493411234567 which is not a valid number.
BTW, when I stop Asterisk with "stop now" I get a
Yuck! Error in buffer handling ...:
What does this mean?
bye
Ronald
_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users