Trixbox 2.4 incoming calls with Global Crossing sip

quasidigital
Posts: 4
Member Since:
2009-10-15

I was unable to find this topic explained in the forum so I will attempt to describe the problem.

I was just doing an interop test with Global Crossing, I'm running a Trixbox 2.4 server in house, and they will be providing the sip trunk.

Outbound works fine, Inbound works only if "allow anonymous inbound sip" is enabled.
I have had a problem in the past with bots getting into my server and making calls if this was switched on.

Does anyone know a specific setting to allow the Global Crossing servers to be non-anonymous?

According to them, they are not set up to be anonymous required.

On their call trace, the call hits, and our server immediately responds with 200 OK rather than saying ringing.... then the call says "number is not in service" on the caller's handset.

Any ideas would be appreciated!

thanks!



SkykingOH
Posts: 9541
Member Since:
2007-12-17
Quote: I have had a problem
Quote:
I have had a problem in the past with bots getting into my server and making calls if this was switched on.

Allow anonymous calls only allows inbound. There is no access to the dial plan.

If you have to allow anonymous SIP then you must not have the inbound peer setup correctly. Anonymous is only hit if an inbound peer is not found.

Start off with a simple peer with host as an ip , insecure=very, type =friend and work your way from that point.

--

Scott

aka "Skyking"



quasidigital
Posts: 4
Member Since:
2009-10-15
Still not having any luck.

I set the trunk settings as follows...

[outbound]

host=IP.OF.GLOBAL.CROSSING
type=friend
insecure=very

[inbound]

host=IP.OF.GLOBAL.CROSSING
type=friend
insecure=very

with no luck.

Outbound works fine.
Inbound works IF anonymous is enabled.

I've also tried putting context=from-pstn and nat=yes (on GC's recommendation) in the inbound settings

they do not use authentication, rather they just allow my static IP to connect.

When i do a CLI> asterisk -rvvvvv I get the following messages in my console when I call that DID string:

-- Executing [INBOUNDDID@from-sip-external:1] NoOp("SIP/IP.OF.GLOBAL.CROSSING-b7808b70", "Received incoming SIP connection from unknown peer to INBOUNDDID") in new stack
-- Executing [INBOUNDDID@from-sip-external:2] Set("SIP/IP.OF.GLOBAL.CROSSING-b7808b70", "DID=INBOUNDDID") in new stack
-- Executing [INBOUNDDID@from-sip-external:3] Goto("SIP/IP.OF.GLOBAL.CROSSING-b7808b70", "s|1") in new stack 40
-- Goto (from-sip-external,s,1) 40
-- Executing [s@from-sip-external:1] GotoIf("SIP/IP.OF.GLOBAL.CROSSING-b7808b70", "0?from-trunk|INBOUNDDID|1") in new stack
-- Executing [s@from-sip-external:2] Set("SIP/IP.OF.GLOBAL.CROSSING-b7808b70", "TIMEOUT(absolute)=15") in new stack
-- Channel will hangup at 2009-10-20 17:44:00 UTC. 40
-- Executing [s@from-sip-external:3] Answer("SIP/IP.OF.GLOBAL.CROSSING-b7808b70", "") in new stack 40
-- Executing [s@from-sip-external:4] Wait("SIP/IP.OF.GLOBAL.CROSSING-b7808b70", "2") in new stack 40
-- Executing [s@from-sip-external:5] Playback("SIP/IP.OF.GLOBAL.CROSSING-b7808b70", "ss-noservice") in new stack
-- Playing 'ss-noservice' (language 'en') 40
== Spawn extension (from-sip-external, s, 5) exited non-zero on 'SIP/IP.OF.GLOBAL.CROSSING-b7808b70' 40
-- Executing [h@from-sip-external:1] NoOp("SIP/IP.OF.GLOBAL.CROSSING-b7808b70", "Hangup") in new stack 40
-- Executing [h@from-sip-external:2] Set("SIP/IP.OF.GLOBAL.CROSSING-b7808b70", "DID=s") in new stack 40
-- Executing [h@from-sip-external:3] Goto("SIP/IP.OF.GLOBAL.CROSSING-b7808b70", "s|1") in new stack 40
-- Goto (from-sip-external,s,1) 40
-- Executing [s@from-sip-external:1] GotoIf("SIP/IP.OF.GLOBAL.CROSSING-b7808b70", "0?from-trunk|s|1") in new stack
-- Executing [s@from-sip-external:2] Set("SIP/IP.OF.GLOBAL.CROSSING-b7808b70", "TIMEOUT(absolute)=15") in new stack
-- Channel will hangup at 2009-10-20 17:44:04 UTC.
-- Executing [s@from-sip-external:3] Answer("SIP/IP.OF.GLOBAL.CROSSING-b7808b70", "") in new stack 40
== Spawn extension (from-sip-external, s, 3) exited non-zero on 'SIP/IP.OF.GLOBAL.CROSSING-b7808b70' 40

The caller never receives a ringing sound. it just sits quietly until the error message plays.

NOTE: I currently have a working SIP trunk with another provider that works in/out no problem.

I'm completely stumped once again.

Any ideas are appreciated!

Thanks!



SkykingOH
Posts: 9541
Member Since:
2007-12-17
I gave you the answer in my

I gave you the answer in my previous post to you. If the inbound call does not match any peer then it goes to anonymous.

Your peer must be wrong.

Look at the SIP invite and see where it is coming from (sip set debug)

Don't forget to turn it off or you will have huge log files.

--

Scott

aka "Skyking"



quasidigital
Posts: 4
Member Since:
2009-10-15
Solution!

Thanks for your help Scott.

Here's what I figured out.

For some reason when trixbox would reload config. whatever was in sip_additional would be reset to the first setting i had:

[GlobalCrossing]
host=IPADDRESS
type=peer
insecure=port, invite

Which is wrong.

However when i would go into the command line editor, or NANO in the command terminal, I could paste these settings:

[GlobalCrossing]
host=IP.OF.GLOBAL.CROSSING
type=friend
context=from-pstn
insecure=very
disallow=all
allow=ulaw
nat=yes

Which work.

however, any time I reload config on Trixbox (changing an extension. or route, or anything) it resets the settings in sip_additional to the old setting again.

I may just write myself a note to remember i have to rebuild that peer setting every time.

thanks again!



SkykingOH
Posts: 9541
Member Since:
2007-12-17
Why are you changing files?

Why are you changing files? Those files are controlled by trixbox. Put your settings in a trunk and you will be good to go.

--

Scott

aka "Skyking"



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.