[Asterisk-Users] Looking for very basic example

Martin Joseph ast at stillnewt.org
Thu Jun 1 08:51:30 MST 2006


On Jun 1, 2006, at 2:18 AM, Benjamin Stocker wrote:

> Hi!
>
> Im looking for a very basic example for the following simple problem.
>  I've been searching voip-info.org and looked in the ORA book without a
>  clue. I have a SIP account at sip.provider.com and my own asterisk
>  server. What I want is the following:
>
>   I. Register my phone to my asterisk server, not directly to 
> provider.com
>    II. My asterisk server should ring my phone when somebody calls me 
> on <mynumber>@provider.com
>    III. Asterisk forwards my outgoing calls to provider.com
>
> I found a lot of sample snippets but none of them really works. The two
>  main problems are:
>
> A. When somebody calls me, he get's a "user unavailable" from
> provider.com, but my asterisk server successfully registered at
> provider.com:
>
>   (sip.conf)
>    register => <user>:<pwd>@ sip.provider.com/<user>
>
> B. When I call a number, my asterisk server says: " Failed to
>  authenticate on INVITE". But all login informations for provider.com
>  are correct.
>
>   (sip.conf)
>    [<user>]
>    type=friend
>    secret=<pwd>
>    username=<user>
>    fromuser=<user>
>    canreinvite=yes
>
>   (extensions.conf )
>    exten => 0041321112233,1,Dial(SIP/${EXT ... at sip.provider.com,60,r)

Make sure to allow the code you want to use in the general section of 
sip.conf or iax.conf as the case may be (sip.conf in your case).

Also, your provider should help you configure this... Since they want 
it work so you can spend some money.

Marty





More information about the asterisk-users mailing list