[asterisk-users] "context" does not work

Andrew Thomas andy at datavox.co.uk
Mon Aug 10 08:13:36 CDT 2009


V1.6.1.0

[9290740]
type = peer
username = 9290740
fromuser = 9290740
secret = you-wish!
host = sipgate.co.uk
fromdomain = sipgate.co.uk
insecure = port,invite
context = inbound
caninvite = no
canreinvite = no
nat = yes
disallow = all
allow = ulaw
allow = alaw
dtmfmode = info
qualify = 5000


That works for me.  Any inbound call to my 9290740 number goes to my inbound context and does what it should.

PS - Don't forget to do a 'sip reload' when you change the sip.conf.	  	

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Patrick Plattes
Sent: 10 August 2009 13:19
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] "context" does not work

Hi Andrew,

it didn't help. Which version of Asterisk do you use?

Thanks



On Mon, Aug 10, 2009 at 1:55 PM, Andrew Thomas<andy at datavox.co.uk> wrote:
> Underscore won't help as that's for pattern matching.
>
> Under the sip conf, have you tried adding 'fromuser=8001187e0' to the
> [8001187e0] bit?
>
> I have this in my Sipgate setup and it works.  Worth a try.
>
> Cheers
> Andy
>
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Patrick
> Plattes
> Sent: 10 August 2009 11:56
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: [asterisk-users] "context" does not work
>
> Hello,
>
> i have a problem with the context parameter in the sip.conf. i'm using
> a german sip provider (sipgate.de) and everything worked fine in
> asterisk 1.4, but on 1.6.1 i got the following error message:
>
>
> NOTICE[3071]: chan_sip.c:18160 handle_request_invite: Call from '' to
> extension '8001187e0' rejected because extension not found.
>
>
> sip.conf:
> register => 8001187e0:password at sipgate.de/8001187e0
> [8001187e0]
> type=friend
> context=testing
> secret=password
> host=dynamic
> caninvite=no
> canreinvite=no
> qualify=yes
>
>
> extensons.conf:
> [testing]
> exten => 8001187e0,1,Dial(SIP/263)
>
>
> I don't know whats wrong here :-( Does anyone see my (usually) stupid
> error.
>
> Thanks,
>  Patrick
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
Niemann + Frey GmbH
Bischofstraße 80
47809 Krefeld
Geschäftsführer: Gerd Frey
Sitz und Registergericht: Krefeld HRB 10851

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list