[asterisk-users] Newcomer Question

Guenther Sohler guenther.sohler at gmx.at
Thu Sep 20 15:04:33 CDT 2007


Hallo Martin and Group!

Thank you very much for your perfect introduction into asterisk.
I managed to

* get asterisk server running
* configuring the internal numbers
* registering to 2 sip gateways
* outbound phoning to sipgate works perfect
* outbound phoning to mujtelefon not yet tested


The problem i am having now is, that i cant be reached by inbound phone calls from neither sipgate nor mujtelefon

i used my mobile to call this numbers.

sipgate tells me on the phone:"Das Endgeraet ist fuer diesen Service nicht
konfiguriert". 
bei mujtelefon kommt nur die mobilbox

In asterisk cli i dont see anything about that. in the sipgate login page
there is neither mentioned.

If this is working, I intend to have nice music played for incoming calls
until the phone call is accepted.

What is very confusing for sipgate is, that my number(734365) is different from my user name(1734365). Can anybopdy check, if all settings are ok according to that ?

Please find below my sip.conf, only the passwords are scrambled.

If you directly reply to me, also reply to guenther.sohler at wipro.com
because i am afraid missing your answer in the much traffic in that mailing list. Thank you very much!

[general]                                                                                                                          
bindport=5060                                                                                                                      
bindaddr=0.0.0.0                                                                                                                   
disallow=all                                                                                                                       
allow=ulaw                                                                                                                         
allow=alaw                                                                                                                         
allow=ilbc                                                                                                                         
allow=gsm                                                                                                                          
musicclass=default                                                                                                                 
language=de                                                                                                                        
                                                                                                                                   
dtmfmode=rfc2833                                                                                                                   
sipdebug=no                                                                                                                        
                                                                                                                                   
register => 1734365:NMTNRMKP at sipgate.at:5060/00437201734365                                                                        
register => 272048160:jcip3gb9 at sip.mujtelefon.com:5060/00420272048160                                                              
                                                                                                                                   
[sipgateat]                                                                                                                        
host=sipgate.at                                                                                                                    
secret=NMMTNMKP                                                                                                                    
username=1734365                                                                                                                   
fromuser=1734365                                                                                                                   
fromdomain=sipgate.at                                                                                                              
srvlookup=yes                                                                                                                      
context=sipgateat-in                                                                                                               
canreinvite=no                                                                                                                     
nat=no                                                                                                                             
type=friend                                                                                                                        
qualify=yes                                                                                                                        
                                                                                                                                   
[mujtelefoncz]                                                                                                                     
host=sip.mujtelefon.cz                                                                                                             
secret=jcrp3vb9                                                                                                                    
username=272048160                                                                                                                 
fromuser=272048160                                                                                                                 
fromdomain=sip.mujtelefon.cz                                                                                                       
srvlookup=yes                                                                                                                      
context=mujtelefoncz-in                                                                                                            
canreinvite=no                                                                                                                     
nat=no                                                                                                                             
type=friend                                                                                                                        
qualify=yes                                                                                                                        
                                                                                                                                   
; stanza for SIP clients                                                                                                           
                                                                                                                                   
[sip01]                                                                                                                            
mailbox=01                                                                                                                         
callerid=11                                                                                                                        
type=friend                                                                                                                        
username=sip01                                                                                                                     
secret=pass01                                                                                                                      
context=sipclient                                                                                                                  
host=dynamic                                                                                                                       
nat=yes                                                                                                                            
                                                                                                                                   
;[sip02]                                                                                                                           
;mailbox=02                                                                                                                        
;callerid=12                                                                                                                       
;type=friend                                                                                                                       
;username=sip02                                                                                                                    
;secret=pass02                                                                                                                     
;context=sipclient                                                                                                                 
;host=dynamic                                                                                                                      
;nat=yes                             


and here is my extensions.conf

[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no


; context where sipclient outgoing calls are handled

[sipclient]

; let "11" and "12" be internal numbers
exten => 11,1,Dial(SIP/sip01,60)
exten => 11,2,Hangup()
exten => 12,1,Dial(SIP/sip02,60)
exten => 12,2,Hangup()


exten => 13,1,Answer()
exten => 13,2,Playback(digits/6)
exten => 13,3,Playback(tt-monkeys)
exten => 13,4,HangUp()

; Outward calls. If a country prefix is present _and_ it is Austria, use sipgate.at
exten => _0043.,1,Dial(SIP/${EXTEN}@sipgateat,60)
exten => _0043.,2,Hangup()

; Outward calls with country prefix for Czech Republic go through
; your other provider
exten => _00420.,1,Dial(SIP/${EXTEN}@mujtelefoncz,60)
exten => _00420.,2,Hangup()

; All other non-international calls go through "sipgate" -
; three digit minimum here, shorter numbers treated as "internal"
exten => _0[1-9].,1,Dial(SIP/${EXTEN}@sipgateat,60)
exten => _0[1-9].,2,Hangup()
exten => _[1-9][0-9].,1,Dial(SIP/${EXTEN}@sipgateat,60)
exten => _[1-9][0-9].,2,Hangup


; context for incoming calls

[sipgateat-in]
exten => 00437201734365,1,Dial(SIP/sip01&SIP/sip02,60)
exten => 00437201734365,2,Hangup()
exten => 07201734365,1,Dial(SIP/sip01&SIP/sip02,60)
exten => 07201734365,2,Hangup()

[mujtelefonczr-in]
exten => 272048160,1,Dial(SIP/sip01&SIP/sip02,60)
exten => 272048160,2,Hangup()



Thank you for your replies!
-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail



More information about the asterisk-users mailing list