Brian McCarey
2005-Aug-20 15:29 UTC
[Asterisk-Users] Help needed receiving incoming calls.
<html><div style='background-color:'><P>Hi
All,</P>
<P>I've got Asterisk working and am trying to configure with Sipgate.
I can make out going calls. Incoming calls show up on the AMP panel with the
trunk showing red. However, the call does not go to the extension.</P>
<P>I initally configured Asterisk by editing the config files. I have
followed the various guides and have edited sip.conf and extensions.conf copy as
below.</P>
<P>When I then configured x-lite...nothing worked. I then went into AMP
setup and used the GUI to set things up. I set up an extension (not called Xlite
and trunk and DID etc. I did not delete the bits added to the config files. My
trunk settings are as below.</P>
<P>Questions...<BR>1. Why did the editing of the config files not
work?<BR>2. Why did I have to go into the GUI to set it up?<BR>3.
Why does the trunk show an incoming call that is not being forwarded to the
extension.<BR>4. When I set up the trunk, I got a second extension showing
in the extensions part of the GUI with the Extension title '999992 ( sip
)' with a user name of '3141217'. The second extension shows the
settings I put in the incoming trunk section. Why?</P>
<P><BR>Any help would be gratefully received.</P>
<P>Thanks</P>
<P>Brian.</P>
<P> </P>
<P><BR>***********************************************************</P>
<P>sip.conf</P>
<P>***********************************************************<BR>[general]</P>
<P>port = 5060<BR>bindaddr = 0.0.0.0
<BR>disallow=all<BR>allow=gsm<BR>allow=ulaw<BR>allow=alaw<BR>context
= from-sip-external<BR>callerid =
Unknown<BR>externip=***.***.***.***<BR>localnet=192.168.0.1<BR>localmask=255.255.255.0<BR>nat=yes<BR>register
=> 3141217:password@sipgate.co.uk/3141217</P>
<P>#include sip_nat.conf<BR>#include
sip_custom.conf<BR>#include sip_additional.conf</P>
<P>[sipgate]<BR>type=friend<BR>username=3141217<BR>secret=password<BR>host=sipgate.co.uk<BR>fromuser=3141217<BR>fromdomain=sipgate.co.uk<BR>nat=yes<BR>qualify=yes<BR>authuser=3141217<BR>dtmfmode=info<BR>context=incomingsipgate<BR>insecure=very<BR>canreinvite=no<BR>disallow=all<BR>allow=ulaw<BR>allow=alaw</P>
<P>[xlite1]<BR>type=friend<BR>username=xlite1<BR>callerid=
Brians notebook
<201><BR>host=dynamic<BR>nat=yes<BR>canreinvite=no<BR>disallow=all<BR>allow=ulaw<BR>allow=alaw</P>
<P><BR>***********************************************</P>
<P>extensions.conf</P>
<P>***********************************************</P>
<P>have added the following to inbound context</P>
<P>[incomingsipgate] <BR>exten => h,1,Hangup <BR>exten
=> 3141217,1,Dial(SIP/internestelefon,20,tr) </P>
<P>[sipgate] <BR>exten =>
_9.,1,Dial(SIP/${EXTEN:1}@sipgate,30,tr) <BR>exten =>
_9.,2,Playback(invalid) <BR>exten => _9.,3,Hangup</P>
<P> </P>
<P> </P>
<P><BR>***********************************</P>
<P>SIP Trunk part in GUI</P>
<P>************************************</P>
<P>Outbound caller ID: 3141217<BR>Maximum channels: </P>
<P>Outgoing Dial Rules:<BR>Outgoing Settings</P>
<P>Trunk Name: brighton outgoing<BR>PEER Details:</P>
<P>host=sipgate.co.uk<BR>secret=password<BR>type=peer<BR>username=3141217</P>
<P><BR>Incoming Settings</P>
<P>User Context: 3141217<BR>User Details:</P>
<P>callerid=3141217<BR>context=from-pstn<BR>dtmfmode=info<BR>fromdomain=sipgate.co.uk<BR>host=sipgate.co.uk<BR>insecure=very<BR>secret=password<BR>type=user<BR>user=3141217<BR>username=3141217</P>
<P> </P>
<P>Registration String:
3141217:password@sipgate.co.uk/3141217</P></div></html>
