Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have just purchased several DIDs with Terrasip I have configured my Elastix (freepbx) SIP trunk according to their suggestion:

Please follow this template configuration. (valid for outbound/inbound traffic)

Outgoing trunk name ***terrasip***

context=from-pstn ;(or set which is your inbound context) allow=g729,ulaw,alaw

;Add the follow line:
; register the user in order to receive inbound call for your sipkey

Registration String:

Where ***sip_key*** - customer sipkey account
and***password*** - customer password

Outbound calls work, and so do inbound, but I can't route DIDs to multiple IVRs since all calls are received with the following context: *sip_key*@from-trunk:1

I tried mapping the route from terrasip to *DID_NUMBER* but when I dial, nothing arrives at my pbx.

I have already googled and found This Solution it proved faulty as even after the custom-inbound processing my DID is somehow the SIPKEY.

I have contacted their support and yet to get a reply, I will hopefully update with their reply, but in the meenwhile I would like my phone to work.

share|improve this question
up vote 0 down vote accepted

This was eventually resolved (after much tcpdump, nc and support tickets) Firewall was the issue for as why terrasip wouldn't send calls to my PBX (although properly registered and allowed for all of their range)

For direct mapping with Terrasip you must allow their Gateway's IP address.

IP : Secondary IPs :,

Hope this ever helps anyone, thanks for participating.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.