cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2844
Views
25
Helpful
12
Replies

Digit Manipulation for two sip trunks

sofoszotos
Level 1
Level 1

Hello all and thank you for your help in advance.

Im trying to setup two sip trunks one a callmanager/gwy solution and ive been having some issues with translation profiles not working for some reason. To dial the first provider you use 9 and the second you use 8.

Also one sip provider requires registration the other one doesnt.

Furthermore into the problem one sip provider sends a caller ID with +1 hence the second voice translation-rule 2.

First post by the way!!

**1's are used to cover the numbers.

voice translation-rule 1

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

rule 2 /^8\(.*\)/ /\1/

!

voice translation-rule 2

rule 1 /^.131011111\(..\)$/ /11\1/

!

!

voice translation-profile incoming

translate called 2

!

voice translation-profile outani

translate called 1

dial-peer voice 100 voip

description **Default incoming dial-peer SIP trunk 1**

translation-profile incoming incoming

destination-pattern .T

session protocol sipv2

session target dns:provider1

voice-class codec 1 

dtmf-relay sip-notify rtp-nte

no vad

!

dial-peer voice 101 voip

description **Default incoming dial-peer SIP trunk 2**

translation-profile incoming incoming

destination-pattern .T

session protocol sipv2

session target ipv4:provider2

voice-class codec 1 

dtmf-relay sip-notify rtp-nte

no vad

!

dial-peer voice 200 voip

description **Outgoing calls to SIP trunk 1**

translation-profile outgoing outani

destination-pattern 9T

session protocol sipv2

session target dns:provider1

session transport tcp

voice-class codec 1 

dtmf-relay sip-notify rtp-nte

no vad

!

dial-peer voice 201 voip

description **Outgoing calls to SIP trunk 2**

translation-profile outgoing outani

destination-pattern 8T

session protocol sipv2

session target ipv4:provider2

session transport tcp

voice-class codec 1 

dtmf-relay sip-notify rtp-nte

no vad

!

dial-peer voice 300 voip

description ** To and From CUCM**

destination-pattern ....

session protocol sipv2

session target ipv4:10.xxxxx

voice-class codec 1 

dtmf-relay sip-notify rtp-nte

no vad

12 Replies 12

paolo bevilacqua
Hall of Fame
Hall of Fame

Yu can simpoly all that, e.g.

rule 1 /^,/ //

etc.

You mean rule 1 /^./  // ?

the voice translation works when i test it, however when i put it into the dialpeer it doesnt seem to work.

You can check with "debug ccsip message" and "term mon"

      

piyujain
Cisco Employee
Cisco Employee

Can you make some test calls (inbound and outbound) and share debugs;

debug voice ccapi inout

debug voice translation

debug ccsip all

Cheers !!

Piyush

Ill simplify this:

How can i setup a dial peer that removes +1 from an incoming sip trunk? The main issue is that the sip provider is giving me +1 for called and calling numbers.

Thanks again.

With translation-profile on the incoming DP.

Does this one make sense?

voice translation-rule 1

rule 4 /^.1310xxxxx\(..\)$/ /xx\1/

voice translation-profile incoming

translate called 1

dial-peer voice 101 voip

description **Default incoming dial-peer**

translation-profile incoming incoming

session protocol sipv2

session target ipv4:208.xx.xx.xx

incoming called-number .T

voice-class codec 1 

dtmf-relay sip-notify rtp-nte

no vad

So far its not working. im going to post some debugs soon too. Problem is when i do debug inout cpu gets to 100% :/

oh well thanks.

See debugging below please. On the side of the provider they said that they receive on the SIP header the four digit number and not the full number as they are suppose to. So translation-profiles work but something else is happening wrong!

Thank you guys.

Sep 10 12:43:59.178: %ENVMON-4-FAN_LOW_RPM: Fan 1 service recommended

Sep 10 19:44:01.878: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:

Received:

INVITE sip:+1310xxxx@10.10.10.2:5060;user=phone SIP/2.0

Via: SIP/2.0/UDP 208xxxxx:5060;branch=z9hGxxxxxxx5a473c043209a2

From: "ZOTOS SOFOKLIS " <>;tag=gK0c489xxx

To: <310XXXX>

Call-ID: 51xxxx531_127512643@208xxxxx

CSeq: 1963277240 INVITE

Max-Forwards: 70

Allow: INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSCRIBE,NOTIFY,PRACK,UPDATE,OPTIONS,MESSAGE,PUBLISH

Accept: application/sdp, application/isup, application/dtmf, application/dtmf-relay,  multipart/mixed

Contact: "ZOTOS SOFOKLIS " <>

P-Preferred-Identity: "ZOTOS SOFOKLIS " <>

Supported: timer,100rel,precondition

Session-Expires: 1800

Min-SE: 90

Content-Length:   244

Content-Disposition: session; handling=required

Content-Type: application/sdp

v=0

o=Sonus_UAC 32xxx22155 2xxx58453 IN IP4 208xxxx

s=SIP Media Capabilities

c=IN IP4 208xxxx

t=0 0

m=audio 51996 RTP/AVP 0 101

a=rtpmap:0 PCMU/8000

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-15

a=sendrecv

a=maxptime:20

Sep 10 19:44:01.878: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:

   Calling Number=+1310xxxxxx Called Number=+1310xxxxx, Peer Info Type=DIALPEER_INFO_SPEECH

Sep 10 19:44:01.878: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:

   Match Rule=DP_MATCH_DEST; Called Number=+1310xxxxx

Sep 10 19:44:01.878: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:

   Result=Success(0) after DP_MATCH_DEST

Sep 10 19:44:01.878: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:

   dialstring=+1310xxxxx, saf_enabled=1, saf_dndb_lookup=1, dp_result=0

Sep 10 19:44:01.878: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:

   Result=SUCCESS(0)

   List of Matched Outgoing Dial-peer(s):

     1: Dial-peer Tag=200

Sep 10 19:44:01.882: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:

   Calling Number=+1562xxxxx, Called Number=, Voice-Interface=0x0,

   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,

   Peer Info Type=DIALPEER_INFO_SPEECH

Sep 10 19:44:01.882: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:

   Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=200

Sep 10 19:44:01.882: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:

   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0

Sep 10 19:44:01.882: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:

   Calling Number=+1562xxxxx, Called Number=, Voice-Interface=0x0,

   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,

   Peer Info Type=DIALPEER_INFO_SPEECH

Sep 10 19:44:01.882: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:

   Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=200

Sep 10 19:44:01.882: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:

   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0

Sep 10 19:44:01.882: //-1/2D605F1EA49E/DPM/dpAssociateIncomingPeerCore:

   Calling Number=+1562xxxxx, Called Number=+1310xxxx, Voice-Interface=0x0,

   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,

   Peer Info Type=DIALPEER_INFO_SPEECH

Sep 10 19:44:01.882: //-1/2D605F1EA49E/DPM/dpAssociateIncomingPeerCore:

   Result=Success(0) after DP_MATCH_INCOMING_DNIS; Incoming Dial-peer=100

Sep 10 19:44:01.882: //-1/2D605F1EA49E/DPM/dpMatchSafModulePlugin:

   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0

Sep 10 19:44:01.886: //9403/xxxxxxxxxxxx/CCAPI/cc_api_caps_ind:

   Call Entry Is Not Found

Sep 10 19:44:01.886: //-1/2D605F1EA49E/CCAPI/cc_api_display_ie_subfields:

   cc_api_call_setup_ind_common:

   cisco-username=+1562xxxxx

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

   cisco-ani=+1562xxxxx

   cisco-anitype=0

   cisco-aniplan=0

   cisco-anipi=0

   cisco-anisi=0

   dest=+1310xxxxxx

   cisco-desttype=0

   cisco-destplan=0

   cisco-rdie=FFFFFFFF

   cisco-rdn=

   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

Sep 10 19:44:01.886: //-1/2D605F1EA49E/CCAPI/cc_api_call_setup_ind_common:

   Interface=0x4AFAFDC8, Call Info(

   Calling Number=+1562xxxxxx,(Calling Name=)(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),

   Called Number=+1310xxxxx(TON=Unknown, NPI=Unknown),

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

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

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

Sep 10 19:44:01.886: //-1/2D605F1EA49E/CCAPI/ccCheckClipClir:

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

Sep 10 19:44:01.886: //-1/2D605F1EA49E/CCAPI/ccCheckClipClir:

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

Sep 10 19:44:01.886: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Sep 10 19:44:01.886: :cc_get_feature_vsa malloc success

Sep 10 19:44:01.886: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Sep 10 19:44:01.886:  cc_get_feature_vsa count is 5

Sep 10 19:44:01.886: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Sep 10 19:44:01.886: :FEATURE_VSA attributes are: feature_name:0,feature_time:1216805616,feature_id:2791

Sep 10 19:44:01.886: //9403/2D605F1EA49E/CCAPI/cc_api_call_setup_ind_common:

   Set Up Event Sent;

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

   Called Number=+1310xxxxx(TON=Unknown, NPI=Unknown))

Sep 10 19:44:01.890: //-1/2D605F1EA49E/RXRULE/regxrule_stack_pop_RegXruleNumInfo: stack=0x4D25AFF8; count=1

Sep 10 19:44:01.890: //-1/2D605F1EA49E/RXRULE/regxrule_stack_pop_callinfo_internal: numinfo=0x4D8A8A00

Sep 10 19:44:01.890: //9403/2D605F1EA49E/CCAPI/cc_process_call_setup_ind:

   Event=0x4BC309E0

Sep 10 19:44:01.890: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_match_search:

   Try with the demoted called number +1310xxxxx

Sep 10 19:44:01.890: //9403/2D605F1EA49E/CCAPI/ccCaxllSetContext:

   Context=0x4D857B90

Sep 10 19:44:01.890: //9403/2D605F1EA49E/CCAPI/cc_process_call_setup_ind:

   >>>>CCAPI handed cid 9403 with tag 100 to app "_ManagedAppProcess_Default"

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_stack_push_RegXruleNumInfo_internal: stack=0x4D25AFF8; count=1

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_profile_translate_internal: number=+1562xxxxx type=unknown plan=unknown numbertype=calling

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_get_RegXrule: Invalid translation ruleset tag=0

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_profile_match_internal: Error: ruleset for calling number not found

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_profile_translate_internal: No match: number=+1562xxxx type=unknown plan=unknown

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_profile_translate_internal: number= type=unknown plan=unknown numbertype=redirect-called

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_get_RegXrule: Invalid translation ruleset tag=0

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_profile_match_internal: Error: ruleset for redirect-called number not found

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_profile_translate_internal: No match: number= type=unknown plan=unknown

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_profile_translate_internal: number=+1310xxxxx type=unknown plan=unknown numbertype=called

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_match: No match; number=+1310xxxxxxx rule precedence=1

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_match: No match; number=+1310xxxxxxx rule precedence=2

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_match: No match; number=+1310xxxxxxxx rule precedence=3

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_profile_match_internal: Matched with rule 4 in ruleset 1

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_match: No match; number=+1310xxxxxxx rule precedence=1

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_match: No match; number=+1310xxxxxxxx

rule precedence=2

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_match: No match; number=+1310xxxxxx\ rule precedence=3

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_profile_match_internal: Matched with rule 4 in ruleset 1

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_match: No match; number=+1310xxxxxxx rule precedence=1

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_match: No match; number=+1310xxxxxxx rule precedence=2

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_match: No match; number=+1310xxxxxxx

rule precedence=3

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/sed_subst: Successful substitution; pattern=+1310xxxxx matchPattern=^.1310xxxxx(..)$ replacePattern=12\1 replaced pattern=1254

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_subst_num_type: Match Type = none, Replace Type = none Input Type = unknown

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_subst_num_plan: Match Plan = none, Replace Plan = none Input Plan = unknown

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/regxrule_profile_translate_internal: xlt_number=1254 xlt_type=unknown xlt_plan=unknown

Sep 10 19:44:01.894: //9403/2D605F1EA49E/CCAPI/ccCallProceeding:

   Progress Indication=NULL(0)

Sep 10 19:44:01.894: //-1/2D605F1EA49E/DPM/dpMatchPeersCore:

   Calling Number=, Called Number=1254, Peer Info Type=DIALPEER_INFO_SPEECH

Sep 10 19:44:01.894: //-1/2D605F1EA49E/DPM/dpMatchPeersCore:

   Match Rule=DP_MATCH_DEST; Called Number=1254

Sep 10 19:44:01.894: //-1/2D605F1EA49E/DPM/dpMatchPeersCore:

   Result=Success(0) after DP_MATCH_DEST

Sep 10 19:44:01.894: //-1/2D605F1EA49E/DPM/dpMatchSafModulePlugin:

   dialstring=1254, saf_enabled=0, saf_dndb_lookup=1, dp_result=0

Sep 10 19:44:01.894: //-1/2D605F1EA49E/DPM/dpMatchPeersMoreArg:

   Result=SUCCESS(0)

   List of Matched Outgoing Dial-peer(s):

     1: Dial-peer Tag=303

     2: Dial-peer Tag=200

Sep 10 19:44:01.894: //-1/2D605F1EA49E/DPM/dpMatchPeersCore:

   Calling Number=, Called Number=1254, Peer Info Type=DIALPEER_INFO_SPEECH

Sep 10 19:44:01.894: //-1/2D605F1EA49E/DPM/dpMatchPeersCore:

   Match Rule=DP_MATCH_DEST; Called Number=1254

Sep 10 19:44:01.894: //-1/2D605F1EA49E/DPM/dpMatchPeersCore:

   Result=Success(0) after DP_MATCH_DEST

Sep 10 19:44:01.894: //-1/2D605F1EA49E/DPM/dpMatchSafModulePlugin:

   dialstring=1254, saf_enabled=0, saf_dndb_lookup=1, dp_result=0

Sep 10 19:44:01.894: //-1/2D605F1EA49E/DPM/dpMatchPeersMoreArg:

   Result=SUCCESS(0)

   List of Matched Outgoing Dial-peer(s):

     1: Dial-peer Tag=303

     2: Dial-peer Tag=200

Sep 10 19:44:01.894: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:

   Calling Number=1254, Called Number=1254, Peer Info Type=DIALPEER_INFO_SPEECH

Sep 10 19:44:01.894: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:

   Match Rule=DP_MATCH_DEST; Called Number=1254

Sep 10 19:44:01.894: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:

   Result=Success(0) after DP_MATCH_DEST

Sep 10 19:44:01.894: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:

   dialstring=1254, saf_enabled=0, saf_dndb_lookup=1, dp_result=0

Sep 10 19:44:01.894: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:

   Result=SUCCESS(0)

   List of Matched Outgoing Dial-peer(s):

     1: Dial-peer Tag=303

     2: Dial-peer Tag=200

Sep 10 19:44:01.894: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:

   Calling Number=1254, Called Number=, Voice-Interface=0x0,

   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,

   Peer Info Type=DIALPEER_INFO_SPEECH

Sep 10 19:44:01.898: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:

   Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=303

Sep 10 19:44:01.898: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:

   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0

Sep 10 19:44:01.898: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:

   Calling Number=1254, Called Number=, Voice-Interface=0x0,

   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,

   Peer Info Type=DIALPEER_INFO_SPEECH

Sep 10 19:44:01.898: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:

   Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=303

Sep 10 19:44:01.898: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:

   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0

Sep 10 19:44:01.898: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:

   Calling Number=, Called Number=1254, Peer Info Type=DIALPEER_INFO_SPEECH

Sep 10 19:44:01.898: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:

   Match Rule=DP_MATCH_DEST; Called Number=1254

Sep 10 19:44:01.898: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:

   Result=Success(0) after DP_MATCH_DEST

Sep 10 19:44:01.898: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:

   dialstring=1254, saf_enabled=0, saf_dndb_lookup=1, dp_result=0

Sep 10 19:44:01.898: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:

   Result=SUCCESS(0)

   List of Matched Outgoing Dial-peer(s):

     1: Dial-peer Tag=303

     2: Dial-peer Tag=200

Sep 10 19:44:01.898: //-1/2D605F1EA49E/DPM/dpMatchPeersCore:

   Calling Number=, Called Number=1254, Peer Info Type=DIALPEER_INFO_SPEECH

Sep 10 19:44:01.898: //-1/2D605F1EA49E/DPM/dpMatchPeersCore:

   Match Rule=DP_MATCH_DEST; Called Number=1254

Sep 10 19:44:01.898: //-1/2D605F1EA49E/DPM/dpMatchPeersCore:

   Result=Success(0) after DP_MATCH_DEST

Sep 10 19:44:01.898: //-1/2D605F1EA49E/DPM/dpMatchSafModulePlugin:

   dialstring=1254, saf_enabled=1, saf_dndb_lookup=1, dp_result=0

Sep 10 19:44:01.898: //-1/2D605F1EA49E/DPM/dpMatchPeersMoreArg:

   Result=SUCCESS(0)

   List of Matched Outgoing Dial-peer(s):

     1: Dial-peer Tag=303

     2: Dial-peer Tag=200

Sep 10 19:44:01.898: //-1/2D605F1EA49E/RXRULE/regxrule_stack_push_RegXruleNumInfo_internal: stack=0x4D25AFF8; count=2

Sep 10 19:44:01.898: //-1/2D605F1EA49E/RXRULE/regxrule_dp_translate: No profile found in peer 303 for outgoing direction

Sep 10 19:44:01.898: //-1/2D605F1EA49E/RXRULE/regxrule_dp_translate: calling_number=+1562xxxxxxx

calling_octet=0x0

called_number=1254 called_octet=0x0

redirect_number= redirect_type=0 redirect_plan=0          redirect_PI=-1 redirect_SI=-1

Sep 10 19:44:01.898: //9403/2D605F1EA49E/CCAPI/ccCallSetupRequest:

   Destination=, Calling IE Present=TRUE, Mode=0,

   Outgoing Dial-peer=303, Params=0x4D85CA80, Progress Indication=NULL(0)

Sep 10 19:44:01.898: //9403/2D605F1EA49E/CCAPI/ccCheckClipClir:

   In: Calling Number=+1562xxxxxxxTON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed)

Sep 10 19:44:01.898: //9403/2D605F1EA49E/CCAPI/ccCheckClipClir:

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

Sep 10 19:44:01.898: //9403/2D605F1EA49E/CCAPI/ccCallSetupRequest:

   Destination Pattern=12.., Called Number=1254, Digit Strip=FALSE

Sep 10 19:44:01.898: //9403/2D605F1EA49E/CCAPI/ccCallSetupRequest:

   Calling Number=+1562xxxxxxxxx(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),

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

   Redirect Number=, Display Info=ZOTOS SOFOKLIS

   Account Number=+1562xxxxxxxx, Final Destination Flag=TRUE,

   Guid=2D605F1E-1988-11E3-A49E-DCD9AA2F00AA, Outgoing Dial-peer=303

Sep 10 19:44:01.898: //9403/2D605F1EA49E/CCAPI/cc_api_display_ie_subfields:

   ccCallSetupRequest:

   cisco-username=+1562xxxxxxxxx

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

   cisco-ani=+1562xxxxxxx

   cisco-anitype=0

   cisco-aniplan=0

   cisco-anipi=0

   cisco-anisi=0

   dest=1254

   cisco-desttype=0

   cisco-destplan=0

   cisco-rdie=FFFFFFFF

   cisco-rdn=

   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

Sep 10 19:44:01.902: //9403/2D605F1EA49E/CCAPI/ccIFCallSetupRequestPrivate:

   Interface=0x4AFAFDC8, Interface Type=3, Destination=, Mode=0x0,

   Call Params(Calling Number=+1562xxxxxxx,(Calling Name=ZOTOS SOFOKLIS )(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),

   Called Number=1254(TON=Unknown, NPI=Unknown), Calling Translated=FALSE,

   Subscriber Type Str=Unknown, FinalDestinationFlag=TRUE, Outgoing Dial-peer=303, Call Count On=FALSE,

   Source Trkgrp Route Label=, Target Trkgrp Route Label=, tg_label_flag=0, Application Call Id=)

Sep 10 19:44:01.902: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Sep 10 19:44:01.902: :cc_get_feature_vsa malloc success

Sep 10 19:44:01.902: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Sep 10 19:44:01.902:  cc_get_feature_vsa count is 6

Sep 10 19:44:01.902: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Sep 10 19:44:01.902: :FEATURE_VSA attributes are: feature_name:0,feature_time:1216802256,feature_id:2792

Sep 10 19:44:01.902: //9404/2D605F1EA49E/CCAPI/ccIFCallSetupRequestPrivate:

   SPI Call Setup Request Is Success; Interface Type=3, FlowMode=1

Sep 10 19:44:01.902: //9404/2D605F1EA49E/CCAPI/ccCallSetContext:

   Context=0x4D85CA30

Sep 10 19:44:01.902: //9403/2D605F1EA49E/CCAPI/ccSaveDialpeerTag:

   Outgoing Dial-peer=303

Sep 10 19:44:01.906: //-1/2D605F1EA49E/RXRULE/regxrule_stack_pop_RegXruleNumInfo: stack=0x4D25AFF8; count=2

Sep 10 19:44:01.906: //-1/2D605F1EA49E/RXRULE/regxrule_stack_pop_callinfo_internal: numinfo=0x4D8AF0E8

Sep 10 19:44:01.906: //-1/2D605F1EA49E/RXRULE/regxrule_stack_push_RegXruleNumInfo_internal: stack=0x4D25AFF8; count=2

Sep 10 19:44:01.906: //9404/2D605F1EA49E/CCAPI/cc_api_call_proceeding:

   Interface=0x4AFAFDC8, Progress Indication=NULL(0)

Sep 10 19:44:01.910: //9403/2D605F1EA49E/SIP/Msg/ccsipDisplayMsg:

Sent:

SIP/2.0 100 Trying

Via: SIP/2.0/UDP 208xxxxxxx

:5060;branch=z9hG4bK0cBba5a473c043209a2

From: "ZOTOS SOFOKLIS " <>;tag=gK0c489acc

To: <310XXXXXX>

Date: Tue, 10 Sep 2013 19:44:01 GMT

Call-ID: 51164531_127512643@208xxxxxxxxx

CSeq: 1963277240 INVITE

Allow-Events: telephone-event

Server: Cisco-SIPGateway/IOS-12.x

Content-Length: 0

Sep 10 19:44:01.910: //9404/2D605F1EA49E/SIP/Msg/ccsipDisplayMsg:

Sent:

INVITE sip:1254@10.10.10.10:5060 SIP/2.0

Via: SIP/2.0/UDP 10.10.10.2:5060;branch=z9hG4bK2FA214FD

Remote-Party-ID: "ZOTOS SOFOKLIS " <>;party=calling;screen=no;privacy=off

From: "ZOTOS SOFOKLIS " <>;tag=393017F0-1819

To: <1254>

Date: Tue, 10 Sep 2013 19:44:01 GMT

Call-ID: 2D64A4CE-198811E3-A4A4DCD9-AA2F00AA@10.10.10.2

Supported: 100rel,timer,resource-priority,replaces,sdp-anat

Min-SE:  1800

Cisco-Guid: 0761290526-0428347875-2761874649-2855207082

User-Agent: Cisco-SIPGateway/IOS-12.x

Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER

CSeq: 101 INVITE

Timestamp: 1378842241

Contact: <>

Call-Info: <10.10.10.2:5060>;method="NOTIFY;Event=telephone-event;Duration=2000"

Expires: 180

Allow-Events: telephone-event

Max-Forwards: 69

Session-Expires:  1800

Content-Type: application/sdp

Content-Disposition: session;handling=required

Content-Length: 241

v=0

o=CiscoSystemsSIP-GW-UserAgent 7250 1959 IN IP4 10.10.10.2

s=SIP Call

c=IN IP4 10.10.10.2

t=0 0

m=audio 16486 RTP/AVP 0 101

c=IN IP4 10.10.10.2

a=rtpmap:0 PCMU/8000

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-15

a=ptime:20

Sep 10 19:44:01.914: //9404/2D605F1EA49E/SIP/Msg/ccsipDisplayMsg:

Received:

SIP/2.0 422 Session Timer too small

Date: Tue, 10 Sep 2013 19:44:01 GMT

From: "ZOTOS SOFOKLIS " <>xxxxxxx@10.10.10.2>;tag=393017F0-1819

Allow-Events: presence

Min-SE:  18000

Content-Length: 0

To: <1254>;tag=976977456

Call-ID: 2D64A4CE-198811E3-A4A4DCD9-AA2F00AA@10.10.10.2

Via: SIP/2.0/UDP 10.10.10.2:5060;branch=z9hG4bK2FA214FD

CSeq: 101 INVITE

Sep 10 19:44:01.914: //9404/2D605F1EA49E/CCAPI/cc_api_call_disconnected:

   Cause Value=127, Interface=0x4AFAFDC8, Call Id=9404

Sep 10 19:44:01.914: //9404/2D605F1EA49E/CCAPI/cc_api_call_disconnected:

   Call Entry(Responsed=TRUE, Cause Value=127, Retry Count=0)

Sep 10 19:44:01.914: //9403/2D605F1EA49E/CCAPI/ccCallReleaseResources:

   release reserved xcoding resource.

Sep 10 19:44:01.914: //9404/2D605F1EA49E/CCAPI/ccCallSetAAA_Accounting:

   Accounting=1, Call Id=9404

Sep 10 19:44:01.914: //9404/2D605F1EA49E/CCAPI/ccCallDisconnect:

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

Sep 10 19:44:01.914: //9404/2D605F1EA49E/CCAPI/ccCallDisconnect:

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

Sep 10 12:44:01.918: %VOIPAAA-5-VOIP_CALL_HISTORY: CallLegType 2, ConnectionId 2D605F1E198811E3A49EDCD9AA2F00AA, SetupTime 12:44:01.898 PDT Tue Sep 10 2013, PeerAddress 1254, PeerSubAddress , DisconnectCause 7F  , DisconnectText interworking (127), ConnectTime 12:44:01.918 PDT Tue Sep 10 2013, DisconnectTime 12:44:01.918 PDT Tue Sep 10 2013, CallOrigin 1, ChargedUnits 0, InfoType 2, TransmitPackets 0, TransmitBytes 0, ReceivePackets 0, ReceiveBytes 0

Sep 10 19:44:01.918: //-1/xxxxxxxxxxxx/CCAPI/cc_build_feature_vsa:

Sep 10 19:44:01.918: :Inside cc_build_feature_vsa

Sep 10 19:44:01.918: //-1/xxxxxxxxxxxx/CCAPI/cc_build_feature_vsa:

Sep 10 19:44:01.918:  feature call basic

Sep 10 19:44:01.918: //-1/xxxxxxxxxxxx/CCAPI/cc_build_feature_vsa:

Sep 10 19:44:01.918: cc_build_feature_vsa attr is fn:TWC,ft:09/10/2013 12:44:01.902,cgn:+1562xxxxxxxx,cdn:1254,frs:0,fid:2792,fcid:2D605F1E198811E3A49EDCD9AA2F00AA,legID:24BC

Sep 10 12:44:01.918: %VOIPAAA-5-VOIP_FEAT_HISTORY: FEAT_VSA=fn:TWC,ft:09/10/2013 12:44:01.902,cgn:+1562xxxxxxxx,cdn:1254,frs:0,fid:2792,fcid:2D605F1E198811E3A49EDCD9AA2F00AA,legID:24BC,bguid:2D605F1E198811E3A49EDCD9AA2F00AA

Sep 10 19:44:01.918: //9404/2D605F1EA49E/CCAPI/cc_api_call_disconnect_done:

   Disposition=0, Interface=0x4AFAFDC8, Tag=0x0, Call Id=9404,

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

Sep 10 19:44:01.918: //-1/2D605F1EA49E/RXRULE/regxrule_stack_pop_callinfo_internal: numinfo=0x0

Sep 10 19:44:01.918: //9404/2D605F1EA49E/CCAPI/cc_api_call_disconnect_done:

   Call Disconnect Event Sent

Sep 10 19:44:01.918: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:

Sep 10 19:44:01.918: :cc_free_feature_vsa freeing 4886EDC8

Sep 10 19:44:01.918: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:

Sep 10 19:44:01.918:  vsacount in free is 5

Sep 10 19:44:01.918: //9404/2D605F1EA49E/SIP/Call/sipSPICallInfo:

The Call Setup Information is:

Call Control Block (CCB) : 0x4C09E2E0

State of The Call        : STATE_DEAD

TCP Sockets Used         : NO

Calling Number           : +1562xxxxxx

Called Number            : 1254

Source IP Address (Sig  ): 10.10.10.2

Destn SIP Req Addr:Port  : 10.10.10.10:5060

Destn SIP Resp Addr:Port : 10.10.10.10:5060

Destination Name         : 10.10.10.10

Sep 10 19:44:01.918: //9404/2D605F1EA49E/SIP/Call/sipSPIMediaCallInfo:

Number of Media Streams: 1

Media Stream             : 1

Negotiated Codec         : No Codec  

Negotiated Codec Bytes   : 0

Nego. Codec payload      : 255 (tx), 255 (rx)

Negotiated Dtmf-relay    : 0

Dtmf-relay Payload       : 0 (tx), 0 (rx)

Source IP Address (Media): 10.10.10.2

Source IP Port    (Media): 16486

Destn  IP Address (Media):  -

Destn  IP Port    (Media): 0

Orig Destn IP Address:Port (Media): [ - ]:0

Sep 10 19:44:01.918: //9404/2D605F1EA49E/SIP/Call/sipSPICallInfo:

Disconnect Cause (CC)    : 127

Disconnect Cause (SIP)   : 422

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_stack_push_RegXruleNumInfo_internal: stack=0x4D25AFF8; count=3

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_profile_translate_internal: number=+1562xxxxxx type=unknown plan=unknown numbertype=calling

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_match: No match; number=+1562xxxxxxx rule precedence=1

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_match: No match; number=+1562xxxxxxx rule precedence=2

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_match: No match; number=+1562xxxxxxx rule precedence=3

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_match: No match; number=+1562xxxxxxx rule precedence=4

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_profile_match_internal: No match found

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_profile_translate_internal: No match: number=+1562xxxxxxxx type=unknown plan=unknown

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_profile_translate_internal: number=1254 type=unknown plan=unknown numbertype=called

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_get_RegXrule: Invalid translation ruleset tag=0

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_profile_match_internal: Error: ruleset for called number not found

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_profile_translate_internal: No match: number=1254 type=unknown plan=unknown

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_profile_translate_internal: number= type=unknown plan=unknown numbertype=redirect-target

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_get_RegXrule: Invalid translation ruleset tag=0

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_profile_match_internal: Error: ruleset for redirect-target number not found

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_profile_translate_internal: No match: number= type=unknown plan=unknown

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_profile_translate_internal: number= type=unknown plan=unknown numbertype=redirect-called

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_get_RegXrule: Invalid translation ruleset tag=0

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_profile_match_internal: Error: ruleset for redirect-called number not found

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_profile_translate_internal: No match: number= type=unknown plan=unknown

Sep 10 19:44:01.922: //-1/2D605F1EA49E/RXRULE/regxrule_dp_translate: calling_number=+1562xxxxxx calling_octet=0x0

called_number=1254 called_octet=0x0

redirect_number= redirect_type=0 redirect_plan=0          redirect_PI=-1 redirect_SI=-1

Sep 10 19:44:01.922: //9403/2D605F1EA49E/CCAPI/ccCallSetupRequest:

   Destination=, Calling IE Present=TRUE, Mode=0,

   Outgoing Dial-peer=200, Params=0x489F5F9C, Progress Indication=NULL(0)

Sep 10 19:44:01.922: //9403/2D605F1EA49E/CCAPI/ccCheckClipClir:

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

Sep 10 19:44:01.922: //9403/2D605F1EA49E/CCAPI/ccCheckClipClir:

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

Sep 10 19:44:01.922: //9403/2D605F1EA49E/CCAPI/ccCallSetupRequest:

   Destination Pattern=.T, Called Number=1254, Digit Strip=FALSE

Sep 10 19:44:01.922: //9403/2D605F1EA49E/CCAPI/ccCallSetupRequest:

   Calling Number=+1562xxxxxxx(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),

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

   Redirect Number=, Display Info=ZOTOS SOFOKLIS

   Account Number=+1562xxxxxx, Final Destination Flag=TRUE,

   Guid=2D605F1E-1988-11E3-A49E-DCD9AA2F00AA, Outgoing Dial-peer=200

Sep 10 19:44:01.922: //9403/2D605F1EA49E/CCAPI/cc_api_display_ie_subfields:

   ccCallSetupRequest:

   cisco-username=+1562xxxxx

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

   cisco-ani=+1562xxxxx

   cisco-anitype=0

   cisco-aniplan=0

   cisco-anipi=0

   cisco-anisi=0

   dest=1254

   cisco-desttype=0

   cisco-destplan=0

   cisco-rdie=FFFFFFFF

   cisco-rdn=

   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

Sep 10 19:44:01.922: //9403/2D605F1EA49E/CCAPI/ccIFCallSetupRequestPrivate:

   Interface=0x4AFAFDC8, Interface Type=3, Destination=, Mode=0x0,

   Call Params(Calling Number=+1562xxxxxx,(Calling Name=ZOTOS SOFOKLIS )(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),

   Called Number=1254(TON=Unknown, NPI=Unknown), Calling Translated=FALSE,

   Subscriber Type Str=Unknown, FinalDestinationFlag=TRUE, Outgoing Dial-peer=200, Call Count On=FALSE,

   Source Trkgrp Route Label=, Target Trkgrp Route Label=, tg_label_flag=0, Application Call Id=)

Sep 10 19:44:01.922: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Sep 10 19:44:01.922: :cc_get_feature_vsa malloc success

Sep 10 19:44:01.922: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Sep 10 19:44:01.922:  cc_get_feature_vsa count is 6

Sep 10 19:44:01.926: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Sep 10 19:44:01.926: :FEATURE_VSA attributes are: feature_name:0,feature_time:1216802256,feature_id:2793

Sep 10 19:44:01.926: //9405/2D605F1EA49E/CCAPI/ccIFCallSetupRequestPrivate:

   SPI Call Setup Request Is Success; Interface Type=3, FlowMode=1

Sep 10 19:44:01.926: //9405/2D605F1EA49E/CCAPI/ccCallSetContext:

   Context=0x489F5F4C

Sep 10 19:44:01.926: //9403/2D605F1EA49E/CCAPI/ccSaveDialpeerTag:

   Outgoing Dial-peer=200

Sep 10 19:44:01.926: //-1/2D605F1EA49E/RXRULE/regxrule_stack_pop_RegXruleNumInfo: stack=0x4D25AFF8; count=3

Sep 10 19:44:02.022: //9403/2D605F1EA49E/SIP/Call/sipSPIMediaCallInfo:

Number of Media Streams: 1

Media Stream             : 1

Negotiated Codec         : g711ulaw

Negotiated Codec Bytes   : 160

Nego. Codec payload      : 0 (tx), 0 (rx)

Negotiated Dtmf-relay    : 6

Dtmf-relay Payload       : 101 (tx), 101 (rx)

Source IP Address (Media): 10.10.10.2

Source IP Port    (Media): 17216

Destn  IP Address (Media): 208xxxxxxx

Destn  IP Port    (Media): 51996

Orig Destn IP Address:Port (Media): [ - ]:0

Sep 10 19:44:02.022: //9403/2D605F1EA49E/SIP/Call/sipSPICallInfo:

Disconnect Cause (CC)    : 28

Disconnect Cause (SIP)   : 484

Your translation rule to stip "+" and convert number to 4 digit is absolutely fine..

voice translation-rule 2

rule 1 /^.131011111\(..\)$/ /12\1/

!

!

voice translation-profile incoming

translate called 2

As per the debugs, it is working as you are expecting..

Sep 10 19:44:01.894: //-1/2D605F1EA49E/RXRULE/sed_subst: Successful substitution; pattern=+1310xxxxx matchPattern=^.1310xxxxx(..)$ replacePattern=12\1 replaced pattern=1254

Your call is hitting incoming dial-peer 100, called party number +1310xxxx translates to 1254 and GW sends the call to CUCM (10.10.10.10)

Sep 10 19:44:01.910: //9404/2D605F1EA49E/SIP/Msg/ccsipDisplayMsg:

Sent:

INVITE sip:1254@10.10.10.10:5060 SIP/2.0

Via: SIP/2.0/UDP 10.10.10.2:5060;branch=z9hG4bK2FA214FD

Remote-Party-ID: "ZOTOS SOFOKLIS " <>;party=calling;screen=no;privacy=off

From: "ZOTOS SOFOKLIS " <>;tag=393017F0-1819

To: <1254>

Date: Tue, 10 Sep 2013 19:44:01 GMT

Call-ID: 2D64A4CE-198811E3-A4A4DCD9-AA2F00AA@10.10.10.2

Supported: 100rel,timer,resource-priority,replaces,sdp-anat

Min-SE:  1800

Cisco-Guid: 0761290526-0428347875-2761874649-2855207082

User-Agent: Cisco-SIPGateway/IOS-12.x

Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER

CSeq: 101 INVITE

Timestamp: 1378842241

Contact: <>

Call-Info: <10.10.10.2:5060>;method="NOTIFY;Event=telephone-event;Duration=2000"

Expires: 180

Allow-Events: telephone-event

Max-Forwards: 69

Session-Expires:  1800

Content-Type: application/sdp

Content-Disposition: session;handling=required

Content-Length: 241


but CUCM replies with 422 Error due to small Session Expire timer value. CUCM expects this value to be 18000 whereas GW is sending it 1800.

Sep 10 19:44:01.914: //9404/2D605F1EA49E/SIP/Msg/ccsipDisplayMsg:

Received:

SIP/2.0 422 Session Timer too small

Date: Tue, 10 Sep 2013 19:44:01 GMT

From: "ZOTOS SOFOKLIS " <>;tag=393017F0-1819

Allow-Events: presence

Min-SE:  18000

Content-Length: 0

To: <1254>;tag=976977456

Call-ID: 2D64A4CE-198811E3-A4A4DCD9-AA2F00AA@10.10.10.2

Via: SIP/2.0/UDP 10.10.10.2:5060;branch=z9hG4bK2FA214FD

CSeq: 101 INVITE

You can fix it either on CUCM or on GW..

To fix it on CUCM, you need to change Min-SE timer to 1800..

To configure CUCM to have a Minimum Session Expires time = 1800:

1. Log in to CUCM.

2. Go to

System > Service Parameters

.

3. Select

Server

= current server e.g. " (Active)".

4. Select

Service

= Cisco CallManager (Active).

5. Search for

SIP Min-SE Value

and set it to 1800.

Or increase this value to 18000 on GW as below:

Router(config)# voice service voip

Router(conf-voi-serv)# sip

Router(conf-serv-sip)# min-se time

Cheers !!

Piyush

Rate if this helps you..

Thank you for your reply i just changed the SE Timer on the gwy.

I just did some more debugging with the provider and they mentioned that i am sending them back the four digit number the 1254 but my outgoing dialpeer should take care of that and add back the whole 10 digit sequence.

The sip header is the one that has the four digits, however you can see from above that i think im sending the correct one

<>.

Any ideas on that?

Hi,

1254 is the called number...your INVITE is sent to this number..this is not your calling number...your calling number is identified by your Remote-party-I'd header

Please rate all useful posts

Above logs are for incoming calls.. not for the outgoing calls..

Can you collect the debugs for outgoing calls to PSTN?

Also is your incoming call from PSTN to CUCM is working fine now ???