SIP trunk with CUCM: outgoing calls ok, incoming calls fail

configuration
siptrunk
Tags: #<Tag:0x00007fafc1d2c080> #<Tag:0x00007fafc1d2d1d8>

(Victor) #1

Hello,
I’m newbie with FreePBX and I’ve deployed the following scenario on my PC. I need your help with it, please. I’ve tried to link FreePBX with CUCM with a SIP Trunk. After applying the configuration, calls from FreePBX to CUCM work fine, but calls from CUCM to FreePBX don’t progress.

In a Wireshark trace, I see a reply from FreePBX to CUCM with “Status: 500 Internal Server Error”.

DNs FreePBX: 3XXX
FreePBX: 192.168.2.30

DNs CUCM: 1XXX
CUCM: 192.168.2.9

This is the config of the FreePBX SIP trunk (sorry, I don’t know how to copy complete config from server files):

Trunk_CUCM
Outbound CallerID 0000

[Outgoing]
Trunk Name: CUCM
Peer details:
type=friend
qualify=yes
nat=no
insecure=port,invite
host=192.168.2.9
fromdomain=192.168.2.9
dtmf=rfc2833
disallow=all
context=from-internal
canreinvite=no
allow=ulaw

[Incoming]
User Context: 192.168.2.9
User Details:
type=friend
qualify=yes
nat=no
insecure=port,invite
host=192.168.2.9
fromdomain=192.168.2.9
dtmf=rfc2833
disallow=all
context=from-internal
canreinvite=no
allow=ulaw

On the Cisco CUCM side, I’ve configured:

  • Partition, CSS, IP phone.
  • SIP Trunk Security Profile UDP, non secure.
  • SIP Trunk: OnNet, ip destination FreePBX
  • Route Pattern 3XXX

Any suggestion?

Bye!

EDIT: If I activate SIP traces on FreePBX, this message appears with call from CUCM to FreePBX:

[2016-05-10 09:35:46] ERROR[6085]: res_pjsip.c:2432 sip_get_tpselector_from_endpoint: Unable to retrieve PJSIP transport ‘udp,tcp,ws,wss’ for endpoint ‘anonymous’

SIP peers state:

localhost*CLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
192.168.2.9 192.168.2.9 No No 5060 OK (10 ms)
CUCM 192.168.2.9 No No 5060 OK (10 ms)


Looking for help: Spectrum SIP trunk configuration
(Victor) #2

Solved and now working!!

I’ve changed the type of the SIP Trunk to PJSIP with this following config:

  • None authentication
  • None registration
  • SIP server:
  • SIP server port 5060
  • Context: from-internal
  • Transport: 0.0.0.0-udp

Now calls from and to CUCM and FreePBX work fine. I know this is a none secure configuration but it’s just for this first lab. I’ll improve it for the next one!!!

Regards,


(Amr Salem) #3

Hi [Virutas]

I Have the same problem but still existing and think that is miss configuration on CUCM, could you help me

here is the current configuration:
FreePBX configuration:
1- create a SIP trunk.
2- Create an Inbound route.
3- Create an Outbound route.
4- assigned the routes to the associated trunk.

CUCM configuration:
1- Configure the SIP Trunk Security Profile
2- Configure the SIP Profile
3- Configure the SIP Trunk device
4- Configure Route Pattern for the SIP Trunk.
5- Call RoutingRoute/HuntRoute Pattern.


(Victor) #4

Hi Arm,

What is the exact problem?

Some screenshots could help you about CUCM configuration:

SIP Trunk Security Profile:
image

SIP Trunk:


image
image
image

FreePBX screenshots:

image
image

Bye!