Google
  Web www.spinics.net

Re: DID number

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi Michel,

Do you have the extension 442033553 on the context users on your extensions.conf ?

I have some DIDs from Voxbone (Best DID provider, by the way), and they have a config section on their support page ... Take a look when you get a chance ...

First, you should create sections on your sip.conf or iax.conf (They'll descontinue iax support by january) by their originating gateways, not to the extension ... e.g:

[81.201.84.21] (I renamed to their IP because you should authorize each one)
host=81.201.84.21 (Host the incoming call is arriving from, check Voxbone IPs list)
type=friend // Must be friend or user (user will phase out in Asterisk future versions)
insecure=very
context=incoming (context in your extensions.conf that calls from this gateway will be routed to)
disallow=all
allow=ulaw
allow=gsm     // Allowed codecs
allow=g729


On your DID config page, you'll choose the originating POP, each POP has several IPs that you should create sections like the above on you sip.conf. But from the errors you reported your Asterisk server accepted the call but didn't know how to route it ... You sip.conf must be with Autocreatepeer=yes but check the context setting ... This is your default context, in case you don't want to create sections for all Voxbone IPs (less secure)


So, from the errors you reported ... your configuration should look like this ....

Voxbone config page
sip:442033553@yourip

sip.conf
like the above description (Modify the IPs) or create a default context, in [general] context=whatever

extensions.conf
[whatever]
exten => 442033553,1,Answer
exten => 442033553,n,Backgroud(soundfile)

That should work ...

Bye ...



----- Original Message -----
From: michofr@xxxxxxxxx
Sent: Wed, September 3, 2008 17:10
Subject: Re: DID number



On Wed, Sep 3, 2008 at 11:56 PM, michel freiha <michofr@xxxxxxxxx> wrote:
Hello Air,Hi,
 
I created an extension like ths:
 

[442033553]
user=442033553
type=pusers
secret=1234
host=dynamic
context=users
nat=yes
 
when calling the DID number from an extension registered on asterisk server everything looks fine...When dilaing the number fromPSTN number I'm still getting the the below erroe:
 
[Sep  3 20:56:00] NOTICE[18440]: chan_sip.c:14035 handle_request_invite: Call from '' to extension '442033553' rejected because extension not found.
 
Do you think i should define a context to receive calls from outside the asterisk server?If yes do you have any context sample definition?
 
Regards
 
I did what you asked for but I got the following error:
 
extensions.conf:

[stations]
exten => 442033553,1,Answer
exten => 442033553,n,Playback(demo-nogo)
 
Error message:
[Sep  3 20:43:02] NOTICE[14092]: chan_sip.c:14035 handle_request_invite: Call from '' to extension '442033553' rejected because extension not found.
Regards
On Wed, Sep 3, 2008 at 11:36 PM, Igor Hernandez <emistz@xxxxxxxxx> wrote:
michel freiha wrote:
> Hi All,
> I bought a DID number from VOxbone...this number could be dialed from
> any PSTN line and could be forwarded to any SIP server like asterisk
> server...Now I need to forward this number to my asterisk server so when
> a customer dial this number from his GSM or Land line PSTN number the
> call will be forwarde to my asterisk server and I need to play a wav
> file for example..
> Can you please give me some tips about how to accomplish this task?
>
> Regards
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 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

Hello,

I have never used that provider but usually either the provider knows
your switch's ip and routes the did traffic to it or you have asterisk
register with the provider so that it knows where to route the calls.

Once thats done you can do something like

exten => XXXXXXXXXX,1,Answer
exten => XXXXXXXXXX,n,Playback(file)

Where the x's are the number that you see coming in from your provider.
If you're routed all your dids from what looks like one
number(callcentric does this) then you might need to use the sip header
to route your did to the particular extension you want. You shouldn't
have to bother with this if you only have one did.


Regards,

--
Igor Hernandez
Escape Communications
http://www.escapetel.com

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

AstriCon 2008 - September 22 - 25 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 2008 - September 22 - 25 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 2008 - September 22 - 25 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

[Home]     [Open H.323]     [Gnu Gatekeeper]     [Info Cyrus]     [ALSA User]     [Fedora Linux Users]     [DCCP]     [Gimp]     [100% Free Online Dating]     [Yosemite News]     [Yosemite Photos]     [Deep Creek Hot Springs]     [Yosemite Campsites]     [Building Telephony Systems with Asterisk]     [ISDN Cause Codes]


Add to Google Powered by Linux