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

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)

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,

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.

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!

Hello @Virutas

I am very sorry, I am currently have seen your appreciated reply.

and it’s working now, after re-configure the outbound route again.

thanks, a lot for your support and feedback

@amrsalime and @Virutas I have the same error: Got SIP response 503 “Service Unavailable” from the CUCM server when I dial an extension in CUCM from FreePBX, any help please?

That’s not the same problem. In fact it is the opposite to that described in the subject.

503 is a catch all error, so is of no real use without detailed logging from the CUCM side, or any Reason header also included in the response.

Moderator might want to split this into a new thread.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.