cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1329
Views
0
Helpful
1
Replies

Inbound call from SIP Provider reply with “SIP/2.0 500 Internal Server Error”

Ivan Ivanov
Level 1
Level 1

   Hello, I need to configure inbound calls from SIP provider to UC520 and then to CUCM 8.6.2

The calls do no go through, when a trace is performed the SIP Trunk Provider says UC520 replying with "500 internal server error" in response to inbound call. I know about this article https://supportforums.cisco.com/document/36761/siph323-trunks-cisco-unified-communications-500-series-cisco-smart-business and i include address of SIP provider in ACL CCA_SIP_SOURCE_GROUP_EXTERNAL, but “SIP/2.0 500 Internal Server Error” is still there.

 

2277613 – sip account address

213.221.38.31 – destination IP address

237.29.52.93 – provider address

84952204279 – calling number

 

!!!!!!!!!!!!!!!!!

voice source-group CCA_SIP_SOURCE_GROUP_CUE_CME

access-list 4

translation-profile incoming SIP_Incoming

 

//

access-list 4 remark CCA_SIP_SOURCE_GROUP_ACL_INTERNAL

access-list 4 remark SDM_ACL Category=1

access-list 4 permit 192.168.10.1

access-list 4 permit 10.1.10.0 0.0.0.3

access-list 4 permit 192.168.10.0 0.0.0.255

access-list 4 permit 10.1.1.0 0.0.0.255

\\

 

//

voice translation-profile SIP_Incoming

 translate called 411

\\

 

//

voice translation-rule 411

 rule 1 /^9\(.*\)/ /ABCD9\1/

\\

!!!!!!!!!!!!!!!!!

 

voice source-group CCA_SIP_SOURCE_GROUP_EXTERNAL

access-list 5

 

//

access-list 5 remark CCA_SIP_SOURCE_GROUP_ACL_EXTERNAL

access-list 5 remark SDM_ACL Category=1

access-list 5 permit 125.241.242.99

access-list 5 permit 237.29.52.93

access-list 5 deny   any

\\

dial-peer voice 2277613 voip
description ** to_CUCM **
destination-pattern 2277613
b2bua
session protocol sipv2
session target ipv4:10.1.10.1
dtmf-relay rtp-nte
codec g711ulaw
no vad

 

Dial-peer 20002  pots  up   up           BCD$           0                    50/0/9

 

dial-peer voice 1000 voip

 permission term

 description ** Incoming call from SIP trunk  **

 voice-class sip dtmf-relay force rtp-nte

 session protocol sipv2

 session target sip-server

 incoming called-number .%

 dtmf-relay rtp-nte

 fax rate 14400

 fax protocol t38 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711ulaw

 ip qos dscp cs5 media

 ip qos dscp cs4 signaling

 no vad

 

048658: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:

Received:

INVITE sip:2277613@213.221.38.31:5060 SIP/2.0

Via: SIP/2.0/UDP 237.29.52.93:5060;branch=z9hG4bK73c3a1bd;rport

Max-Forwards: 70

From: "84952204279" <sip: 84952204279@237.29.52.93>;tag=as02915454

To: <sip:2257411@213.248.38.34:5060>

Contact: <sip:84959508179@237.29.52.93:5060>

Call-ID: 04554ce459fdd9816bbe9a6a269440ba@237.29.52.93:5060

CSeq: 102 INVITE

User-Agent: Asterisk PBX 1.8.11.0

Date: Wed, 25 Nov 2015 07:23:42 GMT

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH

Supported: replaces, timer

Remote-Party-ID: "84952204279" <sip: 84952204279@237.29.52.93>;party=calling;privacy=off;screen=yes

Content-Type: application/sdp

Content-Length: 474

 

 

v=0

o=root 1829443402 1829443402 IN IP4 217.29.51.90

s=Asterisk PBX 1.8.11.0

c=IN IP4 217.29.51.90

t=0 0

m=audio 17908 RTP/AVP 18 4 3 0 8 9 10 7 101

a=rtpmap:18 G729/8000

a=fmtp:18 annexb=no

a=rtpmap:4 G723/8000

a=fmtp:4 annexa=no

a=rtpmap:3 GSM/8000

a=rtpmap:0 PCMU/8000

a=rtpmap:8 PCMA/8000

a=rtpmap:9 G722/8000

a=rtpmap:10 L16/8000

a=rtpmap:7 LPC/8000

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-16

a=silenceSupp:off - - - -

a=ptime:20

a=sendrecv

 

048659: //7314/xxxxxxxxxxxx/CCAPI/cc_api_caps_ind:

   Call Entry Is Not Found

048660: //-1/75F8956CA201/CCAPI/cc_api_display_ie_subfields:

cc_api_call_setup_ind_common:

   cisco-username=84952204279

   ----- ccCallInfo IE subfields -----

   cisco-ani=84952204279

   cisco-anitype=0

   cisco-aniplan=0

   cisco-anipi=0

   cisco-anisi=0

   dest=2277613

   cisco-desttype=0

   cisco-destplan=0

   cisco-rdie=FFFFFFFF

   cisco-rdn=

   cisco-lastrdn=

   cisco-rdntype=0

   cisco-rdnplan=0

   cisco-rdnpi=-1

   cisco-rdnsi=-1

   cisco-redirectreason=-1   fwd_final_type =0

   final_redirectNumber =

   hunt_group_timeout =0

 

048661: //-1/75F8956CA201/CCAPI/cc_api_call_setup_ind_common:

   Interface=0x85E159CC, Call Info(

   Calling Number=84952204279,(Calling Name=)(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),

   Called Number=2277613 (TON=Unknown, NPI=Unknown),

   Calling Translated=FALSE, Subscriber Type Str=Unknown, FinalDestinationFlag=TRUE,

   Incoming Dial-peer=1000, Progress Indication=NULL(0), Calling IE Present=TRUE,

   Source Trkgrp Route Label=, Target Trkgrp Route Label=, CLID Transparent=FALSE), Call Id=7314

048662: //-1/75F8956CA201/CCAPI/cc_api_call_setup_ind_common:

   SPI Call Setup Request Is Failed

048663: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:

 

 

Sent:

SIP/2.0 500 Internal Server Error

Date: Wed, 25 Nov 2015 07:39:14 GMT

From: "84952204279" <sip: 84952204279@237.29.52.93>;tag=as02915454

Allow-Events: telephone-event

Content-Length: 0

To: <sip: 2277613@213.248.38.34:5060>;tag=7E60034-1CA5

Call-ID: 04554ce459fdd9816bbe9a6a269440ba@217.29.51.90:5060

Via: SIP/2.0/UDP 237.29.52.93:5060;branch=z9hG4bK73c3a1bd;rport

CSeq: 102 INVITE

Server: Cisco-SIPGateway/IOS-12.x

 

048664: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:

 

Received:

ACK sip: 2277613@213.248.38.34:5060 SIP/2.0

Via: SIP/2.0/UDP 237.29.52.93:5060;branch=z9hG4bK73c3a1bd;rport

Max-Forwards: 70

From: "84952204279" <sip: 84952204279@237.29.52.93>;tag=as02915454

To: <sip: 2277613@213.248.38.34:5060>;tag=7E60034-1CA5

Contact: <sip: 84952204279@237.29.52.93:5060>

Call-ID: 04554ce459fdd9816bbe9a6a269440ba@237.29.52.93:5060

CSeq: 102 ACK

User-Agent: Asterisk PBX 1.8.11.0

Content-Length: 0

 

 

 

048665: //-1/775A9815A205/CCAPI/cc_api_display_ie_subfields:

   cc_api_call_setup_ind_common:

   cisco-username=

   ----- ccCallInfo IE subfields -----

   cisco-ani=BCD

   cisco-anitype=0

   cisco-aniplan=0

   cisco-anipi=0

   cisco-anisi=0

   dest=

   cisco-desttype=0

   cisco-destplan=0

   cisco-rdie=FFFFFFFF

   cisco-rdn=

   cisco-lastrdn=

   cisco-rdntype=0

   cisco-rdnplan=0

   cisco-rdnpi=0

   cisco-rdnsi=0

   cisco-redirectreason=0   fwd_final_type =0

   final_redirectNumber =

   hunt_group_timeout =0

 

048666: //-1/775A9815A205/CCAPI/cc_api_call_setup_ind_common:

   Interface=0x8745537C, Call Info(

   Calling Number=BCD,(Calling Name=)(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),

   Called Number=(TON=Unknown, NPI=Unknown),

   Calling Translated=FALSE, Subscriber Type Str=RegularLine, FinalDestinationFlag=FALSE,

   Incoming Dial-peer=20002, Progress Indication=ORIGINATING SIDE IS NON ISDN(3), Calling IE Present=TRUE,

   Source Trkgrp Route Label=, Target Trkgrp Route Label=, CLID Transparent=FALSE), Call Id=-1

048667: //-1/775A9815A205/CCAPI/ccCheckClipClir:

   In: Calling Number=BCD(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed)

048668: //-1/775A9815A205/CCAPI/ccCheckClipClir:

   Out: Calling Number=BCD(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed)

048669: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

  

048670: :cc_get_feature_vsa malloc success

048671: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

  

048672:  cc_get_feature_vsa count is 1

048673: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

  

048674: :FEATURE_VSA attributes are: feature_name:0,feature_time:2298929320,feature_id:4933

048675: //7315/775A9815A205/CCAPI/cc_api_call_setup_ind_common:

   Set Up Event Sent;

   Call Info(Calling Number=BCD(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),

   Called Number=(TON=Unknown, NPI=Unknown))

048676: //7315/775A9815A205/CCAPI/cc_process_call_setup_ind:

   Event=0x8655DDF0

048677: //7315/775A9815A205/CCAPI/ccCallSetContext:

   Context=0x88C3CC5C

048678: //7315/775A9815A205/CCAPI/cc_process_call_setup_ind:

   >>>>CCAPI handed cid 7315 with tag 20002 to app "_ManagedAppProcess_Default"

048679: //7315/775A9815A205/CCAPI/ccCallSetupAck:

   Call Id=7315

048680: //7315/775A9815A205/CCAPI/cc_api_set_transfer_info:

   Transfer Number=, Transfer Reason=0x0

048681: //7315/775A9815A205/CCAPI/ccGenerateToneInfo:

   Stop Tone On Digit=TRUE, Tone=Dial Tone,

   Tone Direction=Network, Params=0x0, Call Id=7315

048682: //7315/775A9815A205/CCAPI/ccSetDigitTimeouts:

   Initial Digit Timeout=-1000(ms), Inter Digit Timeout=-1000(ms)

048683: //7315/775A9815A205/CCAPI/ccSetDigitTimeouts:

   Call Entry(Inter Digit Timeout=10000(ms), Initial Digit Timeout=10000(ms))

048684: //7315/xxxxxxxxxxxx/CCAPI/ccCallReportDigits:

   (callID=0x1C93, digit_event=0x1, enable=TRUE, consume=FALSE)

048685: //7315/775A9815A205/CCAPI/ccCallReportDigits:

   Enabled=TRUE, Call Id=7315

048686: //7315/xxxxxxxxxxxx/CCAPI/cc_api_call_report_digits_done:

   (vdbPtr=0x8745537C, callID=0x1C93, disp=0, digit_event=0x1, enable=TRUE, consume=FALSE)

048687: //7315/775A9815A205/CCAPI/cc_api_call_report_digits_done:

   Enabled=TRUE, Disposition=0x0, Interface=0x8745537C, Call Id=7315

048688: //7315/775A9815A205/CCAPI/cc_api_call_report_digits_done:

   Call Entry(Initial Digit Timeout=15000(ms), Inter Digit Timeout=5000(ms))

048689: //7315/775A9815A205/CCAPI/cc_api_call_digit_begin:

   Destination Interface=0x0, Destination Mask=0x3, Destination Call Id=-1,

   Source Call Id=7315, Digit=A, DigitBeginFlags=0x0,

   Rtp Timestamp=0x19C89218, Rtp Expiration=0x0

048690: //7315/775A9815A205/CCAPI/cc_api_call_digit_end:

   Destination Interface=0x0, Destination Mask=0x3, Destination Call Id=-1,

   Source Call Id=7315, Digit=A, Duration=100,

   Xrule Calling Tag=0, Xrule Called Tag=0, Digit Tone Mode=DTMF

048691: //7315/775A9815A205/CCAPI/cc_api_call_digit_end:

   Call Entry(Handoff Depth=0)

048692: //7315/775A9815A205/CCAPI/cc_api_call_digit_begin:

   Destination Interface=0x0, Destination Mask=0x3, Destination Call Id=-1,

   Source Call Id=7315, Digit=B, DigitBeginFlags=0x0,

   Rtp Timestamp=0x19C90F18, Rtp Expiration=0x0

048693: //7315/775A9815A205/CCAPI/cc_api_call_digit_end:

   Destination Interface=0x0, Destination Mask=0x3, Destination Call Id=-1,

   Source Call Id=7315, Digit=B, Duration=100,

   Xrule Calling Tag=0, Xrule Called Tag=0, Digit Tone Mode=DTMF

048694: //7315/775A9815A205/CCAPI/cc_api_call_digit_end:

   Call Entry(Handoff Depth=0)

048695: //7315/775A9815A205/CCAPI/cc_api_call_digit_begin:

   Destination Interface=0x0, Destination Mask=0x3, Destination Call Id=-1,

   Source Call Id=7315, Digit=C, DigitBeginFlags=0x0,

   Rtp Timestamp=0x19C98C18, Rtp Expiration=0x0

048696: //7315/775A9815A205/CCAPI/cc_api_call_digit_end:

   Destination Interface=0x0, Destination Mask=0x3, Destination Call Id=-1,

   Source Call Id=7315, Digit=C, Duration=100,

   Xrule Calling Tag=0, Xrule Called Tag=0, Digit Tone Mode=DTMF

048697: //7315/775A9815A205/CCAPI/cc_api_call_digit_end:

   Call Entry(Handoff Depth=0)

048698: //7315/xxxxxxxxxxxx/CCAPI/ccCallReportDigits:

   (callID=0x1C93, digit_event=0x0, enable=FALSE, consume=FALSE)

048699: //7315/775A9815A205/CCAPI/ccCallReportDigits:

   Enabled=TRUE, Call Id=7315

048700: //7315/xxxxxxxxxxxx/CCAPI/cc_api_call_report_digits_done:

   (vdbPtr=0x8745537C, callID=0x1C93, disp=0, digit_event=0x0, enable=FALSE, consume=FALSE)

048701: //7315/775A9815A205/CCAPI/cc_api_call_report_digits_done:

   Enabled=TRUE, Disposition=0x0, Interface=0x8745537C, Call Id=7315

048702: //7315/775A9815A205/CCAPI/cc_api_call_report_digits_done:

   Call Entry(Initial Digit Timeout=15000(ms), Inter Digit Timeout=5000(ms))

048703: //7315/xxxxxxxxxxxx/CCAPI/ccCallReportDigits:

   (callID=0x1C93, digit_event=0x0, enable=FALSE, consume=FALSE)

048704: //7315/775A9815A205/CCAPI/ccCallReportDigits:

   Enabled=TRUE, Call Id=7315

048705: //7315/xxxxxxxxxxxx/CCAPI/cc_api_call_report_digits_done:

   (vdbPtr=0x8745537C, callID=0x1C93, disp=0, digit_event=0x0, enable=FALSE, consume=FALSE)

048706: //7315/775A9815A205/CCAPI/cc_api_call_report_digits_done:

   Enabled=TRUE, Disposition=0x0, Interface=0x8745537C, Call Id=7315

048707: //7315/775A9815A205/CCAPI/cc_api_call_report_digits_done:

   Call Entry(Initial Digit Timeout=15000(ms), Inter Digit Timeout=5000(ms))

048708: //7315/775A9815A205/CCAPI/ccCallDisconnect:

   Cause Value=28, Tag=0x0, Call Entry(Previous Disconnect Cause=0, Disconnect Cause=0)

048709: //7315/775A9815A205/CCAPI/ccCallDisconnect:

   Cause Value=28, Call Entry(Responsed=TRUE, Cause Value=28)

048710: //7315/775A9815A205/CCAPI/cc_api_get_transfer_info:

   Transfer Number Is Null

048711: //7315/775A9815A205/CCAPI/cc_api_call_disconnect_done:

   Disposition=0, Interface=0x8745537C, Tag=0x0, Call Id=7315,

   Call Entry(Disconnect Cause=28, Voice Class Cause Code=0, Retry Count=0)

048712: //7315/775A9815A205/CCAPI/cc_api_call_disconnect_done:

   Call Disconnect Event Sent

048713: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:

048714: :cc_free_feature_vsa freeing 8906E0A0

048715: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:

048716:  vsacount in free is 0

 

1 Reply 1

blakeflorin
Level 1
Level 1

uc560 getting a sip trunk from freepbx....same error, referenced that same fix document also.   In my incoming dial plan I had the country code listed in the DID numbers.  Dropped that so its 10 digit string.  Poof, calls come in.

I swear in the documentation it stated country code must be specified for call forwarding, single number reach, etc...to work correctly?   Hope that might help.