Ronald Wiplinger schrieb:
[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)
[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
exten => _0044.,1,Dial(SIP/0${EXTEN:[EMAIL PROTECTED],30,tr)[sipgate.co.uk] exten => _0044.,Dial(SIP/${EXTEN:[EMAIL PROTECTED],30,tr) exten => _0044.,2,Playback(invalid) exten => _0044.,3,Hangup
; 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.
Regards
-------------------------- Please visit http://www.ip-phone-forum.de -------------------------- _______________________________________________ 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