article.voiper.org

Custom Search
VoIPer Article>>>VoIP Software>>Unauthorized VOIP telephone call

Custom Search

Unauthorized VOIP telephone call


2010-09-03
 
Nextiva is a cloud based VoIP phone system, hosting lots of small and medium sized businesses nationwide. the provides UNLIMITED business calling for only $19.95 a month!! Click here for the detail about this promotion!!

Hello,

I am new in the Asterisk world and have Asterisk after that Tutorial here on my server with public IP installs. Today I stated that somebody telephoned over to my Asterisk server on an Argentine number.

1. Question
How is that possible? Asterisk configured, as in the Howto with sipgate.de.

Here times the excerpt ausm logs:

"", “300”, “00541143494520”, “default”, """ Jean smith "" <300> “, “SIP/51919-08188150”, “SIP/meine SIP ID-0818d968”, “dials”, “SIP/00541143494520@meine SIP ID|30|r”, “2007-04-16 1
9:24: 15 ", “2007-04-16 19:24: 22”, “2007-04-16 19:24: 33”, 18.11, “ANSWERED”, “DOCUMENTATION”

2. Question
How do I teach Asterisk that only telephone calls are possible into Switzerland and to Germany over sowas in the future to prevent? The call has me fortunately only 5 Ct. cost.

Thanks and greeting
TheChief79
Did you in such a way leave also the password as in the Tutorial? I would change that first times…


Greeting,
Yielding pool of broadcasting corporations
Perhaps even an Guest entrance in the same Context as your normal choice rules?
Rear one,


what stands in the default context in extension.conf?


Because which stands in the default context can for everyone make it does not have not at the Asterisk to be announced.


Greetings


Timm
If longer time in requirement takes (e.g. with larger dial plan), you than high-speed solution can change at least times into the Sip.conf in [general] the section the context. (thus instead of default on e.g. an empty context).
The same naturally for Iax (+ [guest] section), or, if iax one does not use, chan_iax2.so in modules.conf deactivate.

But straight on a VServer you should follow Timmbo advice.
Under default in extensions.conf the following stands:

[default]
would Inc.-load => locally
would Inc.-load => echo test
would Inc.-load => mailbox
would Inc.-load => mailbox_own
would Inc.-load => sipgate_out

How have do I to now change, so that it becomes safe? Habs actually as furnished as in does. The password for the terminal (E60) I naturally changed.

Greeting
TheChief
Thus to mine tightness-guessed/advised times the Context “choice rule” as follows assigned and extensions.conf changed:

[default]

[choice rule]
would Inc.-load => locally
would Inc.-load => echo test
would Inc.-load => mailbox
would Inc.-load => mailbox_own
would Inc.-load => sipgate_out

Can I make in such a way? Function does.

Greeting
TheChief
Hello Chief,


oh that means those all this contexte to use from the outside are.
In the detail you would have all include contexte now posts, then more can be said.
What stands in sipgate_out in it?
That looks me so out as if that the dial plan for outgoing discussions is.


Update after your new Posting:

Stands then in the default nothing more?
That is called which you i.d. sip.conf with the Provider context then also context=wahlregel defined?


Greetings


Timm
Actually only with the terminal.

[30]
...
context=wahlregeln
...

Thus the equipment may choice-regulate over the Context rauswrts telephone, if I understand that correctly.

TheChief
Rear Chief,


is correct.
But if a call of Sipgate comes, must be defined also somehow in the dial plan. How looks with you out?
Me became yours Sipgate out interest, because possibly he raustelefoniert over, because that was in the default confessed.


Greetings


Timm
[sipgate_out]
; We use this Context to select from outgoing
; Call numbers over the Sipgate account

exten => _0., 1, dial, SIP/$ {EXTEN} @MeineSipID|30|r

More does not stand there. Are received and outgoing function. Hope with the change can only none more over mine servers telephone.

TheChief
Rear Chief,


exactly that I imagined.
There each call number stands with 0 begins over Sipgate raustelefoniert and in the default context.
There everyone can telephone from the outside over the Sipgate account at your expense.
And stands in a Tutorial, well my gentleman.
Well stands now in another Context, then hated no more problems.
Like for a long time the plant ran already, because until someone finds out which it over your IP telephone can, goes not directly.

Greetings


Timm
How it have to change ichs does that one may telephone only to Germany/Switzerland or other one free of charge countries? Or isn't that so simple?

Greeting
TheChief
Rear Chief,


thus with me looks so out:

For branch 52

[52]
include=default
include=lcr
include=outgoingsipgate.atmeineID


[outgoingsipgate.atmeineID]
exten => _X., 1, dial (sip/$ {EXTEN} @sipgate.atmeineID, 60, T)
exten => _X., 2, Congestion
exten => _X., 102, Busy


With me context only the choice plans for the call numbers stand in the default, then everyone can call me from the outside, as it were by ENUM. e.g.

[default]
exten => 52,1, dial (SIP/52,25, t)
exten => 52,2, Voicemail (su52@default)

So if you want to select only landtechnically then machs nevertheless so:

[lcr]
exten => _0041., 1, goto (outgoingsipcall.chmeineID, $ {EXTEN}, 1)
exten => _0049., 1, goto (outgoingsipgate.atmeineID, $ {EXTEN}, 1)

etc.
By default thus if none applies lcr entry, then it takes:
[outgoingsipgate.atmeineID]
exten => _X., 1, dial (sip/$ {EXTEN} @sipgate.atmeineID, 60, T)
exten => _X., 2, Congestion
exten => _X., 102, Busy

Everything clearly?

Greetings

Timm
Ah, now I am nevertheless surprised. Thus with my local extensions I and in mine context=default extension.conf am the majority of the choice plans for the Raustelefonieren in the default. All different extensions, over which one clean-telephones, to have than context sip in defines.

I can change that now completely easily, by I default umbenene and extensions change my local, but I understood not yet completely, how someone can telephone there over me. I also in no Tutorial found up to now? Can someone explain to me? How can someone telephone over me?

That would be very interesting…

John
Quotation:
Quotation of jobisoft IE can telephone someone over me?
A detailed call without defined goal context (thus ENUM or a call with direct IP selection) lands by by Asterisk default in default.
Without goal context means, if the call e.g. from Sipgate, lands he comes in your Sipgate context and from the fixed net in fixed net.

However no context is responsible, because the call of another source comes goes the call automatically to the context default.

Everything in the context default is possible which, can the caller.

Example:

You meant in your default a rule in it that 00X. to Provider XY to go is, need I actually only the IP address of your Asterisk, then lead I mean international Handygesprche on your calculation.

Explanation:

I select here 00346123456@deine_ip (Spanish mobile phone is a No.)

The call lands on your Asterisk. I am deposited as senders in no context with you, therefore the call goes into the context default.
There Asterisk looks which with 00346123456 to be done is. If there is a rule, he makes also good. It connects me with 00346123456.
Hello,

I set freepbx with asterisk in the most current versions, which are on the market.
How can I stop the “default” in such a way now the fact that is nothing at all possible which costs cause could?
I do not have it completely despite 2mal to read understood…
Rear one uhd,

simply only your internal branches.
Or the things those are internal.
For the branches you context for each MC one, e.g.

[10]
include=default; so that the 10 also the other MC reaches
include=lcr; if you one leases Cost Routing table to have liked
more include=outgoingprovider; so that the 10 also to outside comes

Greetings
Timm
I have 10 iax branches vom191-200
and 10 sip branches of 771-780

those are itself all among themselves maintained internally

and all raustelefonieren only into German festnetz

as that would have to then look dial flat

I am now totally disconcerted whether I the star still run to let am
none on my server comes

man can close not also by asterisk 0900.0700,0137, 0138, and foreign country 00

thanks for your answer


I hope you can me help
Rear one,

Code:
[default]

 exten => 771,1, dial (SIP/771,60, powerplant)
 exten => 771,102, Busy
 exten => 771,2, Hangup

 exten => 191,1, dial (iax2/119,60, powerplant)
 exten => 191,102, Busy
 exten => 191,2, Hangup




 [119]
 include=default
 include=lcr
 include=outgoingprovider


 [771]
 include=default
 include=lcr
 include=outgoingprovider



 [outgoingprovider]
 exten => _X., 1, dial (sip/$ {EXTEN} more @outgoingprovider, 60, powerplant)
 exten => _X., 2, Congestion
 exten => _X., 102, Busy


 [lcr]
 exten => _0660., 1, goto (outgoingA1timmbo, $ {EXTEN}, 1)
 exten => _5553922,1, goto (outgoingsipgate.de, $ {EXTEN}, 1)
 exten => _1959622,1, goto (outgoingsipgate.de, $ {EXTEN}, 1)
 exten => _1959632,1, goto (outgoingsipgate.de, $ {EXTEN}, 1)
 exten => _211000., 1, goto (outgoingTerraSip21100002300, $ {EXTEN}, 1)
 exten => _1955890,1, goto (outgoingsipgate.de, $ {EXTEN}, 1)
So in approximately should look.

Greetings
Timm
Rear Guard x

are right, had I forwards however then forget to set, sorry.

Greetings
Timm
I was now also very much surprised that a course in highest place is and was not adapted after this Thread the examples there. Unfortunately I understood the concept still too little.

Can one reject calls, which are not to be assigned, not simply, instead of letting it run over “default”?

I built a temporary “pseudo protection” in my test scenario now that one can raustelefonieren only over a preselection. Thus should be prevented nevertheless each after far choice outside, or?

sip.conf
Code:
[general]
 allowoverlap=no
 bindport=5060
 context=default
 bindaddr= 0.0.0.0
 srvlookup=yes

 register => 437805xxxxx: geheim@ sip.yesss.at/437805xxxxx
 registers => 437802yyyyyy: geheim@ sip.yesss.at/437802yyyyyy
 registers => xxxxxxx: geheim@ sipgate.at/xxxxxxx
 registers => 0003872xxxxx: geheim@ voip.dus.net/0003872xxxxx
 registers => 00423662xxxxxx: geheim@ sip.ahooly.com/00423662xxxxxx
 registers => yyyyyyy: geheim@ sipgate.at/yyyyyyy
 registers => 0003872yyyyy: geheim@ voip.dus.net/0003872yyyyy
 registers => 00423662yyyyyy: geheim@ sip.ahooly.com/00423662yyyyyy

 externhost=asterisk.host
 nat=yes



 [authentication]

; ----------------------
; Yesss
; ----------------------

[437805xxxxx]
 type=peer
 username=437805xxxxx
 fromuser=437805xxxxx
 secret=geheim
 host=sip.yesss.at
 fromdomain=sip.yesss.at
 insecure=very
 canreinvite=no
 nat=no
 disallow=all
 allow=alaw
 allow=ilbc

 [437802yyyyyy]
 type=peer
 username=437802yyyyyy
 fromuser=437802yyyyyy
 secret=geheim
 host=sip.yesss.at
 fromdomain=sip.yesss.at
 insecure=very
 canreinvite=no
 nat=no
 disallow=all
 allow=alaw
 allow=ilbc

 [yesss_in]
 type=peer
 fromdomain=sip.yesss.at
 host=sip.yesss.at
 disallow=all
 allow=alaw
 allow=ilbc
 context=ankommend


; ----------------------
; sipgate.at
; ----------------------

[xxxxxxx]
 type=peer
 username=xxxxxxx
 fromuser=xxxxxxx
 secret=geheim
 host=sipgate.at
 fromdomain=sipgate.at
 insecure=very
 canreinvite=no
 nat=no
 disallow=all
 allow=alaw
 allow=ilbc

 [yyyyyyy]
 type=peer
 username=yyyyyyy
 fromuser=yyyyyyy
 secret=geheim
 host=sipgate.at
 fromdomain=sipgate.at
 insecure=very
 canreinvite=no
 nat=no
 disallow=all
 allow=alaw
 allow=ilbc

 [sipgateat_in]
 type=peer
 fromdomain=sipgate.at
 host=sipgate.at
 disallow=all
 allow=alaw
 allow=ilbc
 context=ankommend


; ----------------------
; dus.net
; ----------------------

[0003872xxxxx]
 type=peer
 username=0003872xxxxx
 host=voip.dus.net
 fromdomain=voip.dus.net
 fromuser=0003872xxxxx
 secret=geheim
 insecure=very; Importantly, there dus.net a SIP cluster operates and Invites of several IP addresses to come can 
qualify=yes
 nat=no
 disallow=all
 allow=speex
 allow=alaw
 allow=ulaw
 allow=g726
 allow=gsm
 canreinvite=no
 relaxdtmf=yes

 [0003872yyyyy]
 type=peer
 username=0003872yyyyy
 host=voip.dus.net
 fromdomain=voip.dus.net
 fromuser=0003872yyyyy
 secret=geheim
 insecure=very; Importantly, there dus.net a SIP cluster operates and Invites of several IP addresses to come can 
qualify=yes
 nat=no
 disallow=all
 allow=speex
 allow=alaw
 allow=ulaw
 allow=g726
 allow=gsm
 canreinvite=no
 relaxdtmf=yes

 [dusnet_in]
 more type=peer
 fromdomain=voip.dus.net
 host=voip.dus.net
 disallow=all
 allow=speex
 allow=alaw
 allow=ulaw
 allow=g726
 allow=gsm
 context=ankommend


; ----------------------
; bluesip
; ----------------------

[bluesipuser]
 type=peer
 username=bluesip/user
 fromuser=bluesip/user
 secret=MbPfVOIP
 host=bluesip.net
 fromdomain=bluesip.net
 insecure=very
 caninvite=no
 canreinvite=no
 nat=no
 disallow=all
 allow=alaw
 allow=ilbc
 allow=gsm

 [bluesip_in]
 type=peer
 fromdomain=bluesip.net
 host=bluesip.net
 context=ankommend


; ----------------------
; ahooly
; ----------------------

[00423662xxxxxx]
 type=peer
 username=00423662xxxxxx
 fromuser=00423662xxxxxx
 secret=geheim
 host=sip.ahooly.com
 fromdomain=sip.ahooly.com
 insecure=very
 canreinvite=no
 nat=no
 disallow=all
 allow=alaw
 allow=ulaw
 allow=ilbc

 [00423662yyyyyy]
 type=peer
 username=00423662yyyyyy
 fromuser=00423662yyyyyy
 secret=geheim
 host=sip.ahooly.com
 fromdomain=sip.ahooly.com
 insecure=very
 canreinvite=no
 nat=no
 disallow=all
 allow=alaw
 allow=ulaw
 allow=ilbc

 [ahooly_in]
 type=peer
 fromdomain=sip.ahooly.com
 host=sip.ahooly.com
 disallow=all
 allow=alaw
 allow=ulaw
 allow=ilbc
 context=ankommend


; ----------------------
; ekiga
; ----------------------

[ekigauser]
 type=peer
 username=user
 fromuser=user
 secret=MenPfVOIP
 host=ekiga.net
 fromdomain=ekiga.net
 insecure=very
 caninvite=no
 canreinvite=no
 nat=no
 disallow=all
 allow=ulaw

 [ekigauser2]
 type=peer
 username=user2
 fromuser=user2
 secret=MenPfVOIP
 host=ekiga.net
 fromdomain=ekiga.net
 insecure=very
 caninvite=no
 canreinvite=no
 nat=no
 disallow=all
 allow=ulaw

 [ekiga_in]
 type=peer
 fromdomain=ekiga.net
 host=ekiga.net
 disallow=all
 allow=ulaw
 context=ankommend


; ----------------------
; Softphones
; ----------------------

[23]
 callerid=xxxxxx user <23>
host=dynamic
 domain= 192.168.2.98
 user=23
 secret=geheim
 type=friend
 mailbox=23
 of nat=yes
 canreinvite=no

 [48]
 callerid=yyyyyy <48>
host=dynamic
 domain= 192.168.2.98
 user=48
 secret=geheim
 type=friend
 mailbox=48
 of nat=yes

extension.conf
Code:
[general]
 of static=yes
 writeprotect=no
 clearglobalvars=no

 [globals]






 [locally]
 exten => _NX, 1, NoCDR ()
 exten => _NX, n, dial, SIP/$ {EXTEN}|55|Ttr

 [yesssprivat_xx_out]
 exten => _*90., 1, dial, SIP/$ {EXTEN: 3} @437805xxxxx|45|r

 [yesss_xx_out]
 exten => _*91., 1, dial, SIP/$ {EXTEN: 3} @437802yyyyyy|45|r

 [sipgateat_xx_out]
 exten => _*92., 1, dial, SIP/$ {EXTEN: 3} @xxxxxxx|45|r

 [dusnet_xx_out]
 exten => _*93., 1, dial, SIP/$ {EXTEN: 3} @0003872xxxxx|45|r

 [bluesipuser_out]
 exten => _*94., 1, dial, SIP/$ {EXTEN: 3} more @bluesipuser|45|r

 [ahooly_xx_out]
 exten => _*95., 1, dial, SIP/$ {EXTEN: 3} @00423662xxxxxx|45|r

 [ekigauser_out]
 exten => _*96., 1, dial, SIP/$ {EXTEN: 3} more @ekigauser|45|r

 [sipgateat_yy_out]
 exten => _*92., 1, dial, SIP/$ {EXTEN: 3} @yyyyyyy|45|r

 [dusnet_yy_out]
 exten => _*93., 1, dial, SIP/$ {EXTEN: 3} @0003872yyyyy|45|r

 [ahooly_yy_out]
 exten => _*95., 1, dial, SIP/$ {EXTEN: 3} @00423662yyyyyy|45|r



 [arriving]
 exten => 437805xxxxx, 1, dial, SIP/23|23|r
 exten => 437802yyyyyy, 1, dial, SIP/23|23|r
 exten => xxxxxxx, 1, dial, SIP/23|23|r
 exten => 0003872xxxxx, 1, dial, SIP/23|23|r
 exten => more bluesipuser, 1, dial, SIP/23|23|r
 exten => 00423662xxxxxx, 1, dial, SIP/23|23|r
 exten => more ekigauser, 1, dial, SIP/23|23|r
 exten => ekigauser2,1, dial, SIP/23|23|r
 exten => yyyyyyy, 1, dial, SIP/48|48|r
 exten => 0003872yyyyy, 1, dial, SIP/48|48|r
 exten => 00423662yyyyyy, 1, dial, SIP/48|48|r

 [default]
 would Inc.-load => locally
 would Inc.-load => yesssprivat_xx_out
 would Inc.-load => yesss_xx_out
 would Inc.-load => sipgateat_xx_out
 would Inc.-load => dusnet_xx_out
 would Inc.-load => bluesipuser_out
 would Inc.-load => ahooly_xx_out
 would Inc.-load => ekigauser_out
 would Inc.-load => sipgateat_yy_out
 would Inc.-load => dusnet_yy_out
 would Inc.-load => ahooly_yy_out

How do I configure that better?

It would be very nice, if someone could amend the Besipiel for 1 Provider meaningfully. I read the Thread several times, but understood unfortunately not to 100%.
If you with your internal Usern a line context=irgendwas insert and your context default in something rename become your Asterisk more surely.
Then you put on still another new context default, in make you only one line:

exten => _X., 1, Hangup
Thank you!

To telephone I can test still and must I that from a friend leave.

Quotation:
Quotation of more kombjuder Contribution indicate exten => _X., 1, Hangup
It is a special situation and I would like that the language box of the VOIP Providers is used, if none is configured locally.

A Softphone is not announced, i.e. the PC is out, then receive I now the message that the call is not permitted and the signal for unknown number follows.

How do I reach that registered Softphones, if they are not announced is led to the language box of the Providers?

Edit Guard x: Contributions united, please “changing” function use!
article.voiper.org
   Copyright@2010   Sitemap