[Asterisk-Users] Asterisk, ATA-186 & Sipgate.de / sipgate.co.uk

Ronald Wiplinger ronald.wiplinger at agptelecom.com
Sun Oct 24 00:43:30 MST 2004


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:1}@sipgate.de,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:4}@sipgate.de,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:1}@sipgate.co.uk,30,tr)
>> exten => _0044.,2,Playback(invalid)
>> exten => _0044.,3,Hangup
>>
> exten => _0044.,1,Dial(SIP/0${EXTEN:4}@sipgate.co.uk,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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ronald.wiplinger.vcf
Type: text/x-vcard
Size: 142 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20041024/c970409c/ronald.wiplinger.vcf


More information about the asterisk-users mailing list