cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1314
Views
0
Helpful
9
Replies

How to pick which FXO Port I want to use???

kenh
Level 1
Level 1

Hi,

I have 4 POTS line connect to FXO (Cisco 2901), which register to CUCM as H.323 gateway. My problem is outgoing call, not that I have problem to make call.  If you look at config, it seems fine, however, my customer want to 1 to 1 mapping.

For instance, I have IP Phone 5440, 5441, 5442, 5443, the end user want to use their own POTS line for outgoing call.

In other words, 5440 has to use voice-port 0/0/0, 5441 has to use voice-port 0/0/1, etc....

Thanks

trunk group FXO

description Verizon POTS line

voice class codec 1

codec preference 1 g729r8

codec preference 2 g711ulaw

!

voice class h323 1

  h225 timeout tcp establish 3

!

voice-port 0/0/0

trunk-group FXO 1

timeouts interdigit 4

connection plar 5440

caller-id enable

!

voice-port 0/0/1

trunk-group FXO 2

timeouts interdigit 4

connection plar 5441

caller-id enable

!

voice-port 0/1/0

trunk-group FXO 3

timeouts interdigit 4

connection plar 5442

caller-id enable

!

voice-port 0/1/1

trunk-group FXO 4

timeouts interdigit 4

connection plar 5443

caller-id enable

!

dial-peer voice 1 voip

destination-pattern 5...$

progress_ind setup enable 3

session target ipv4:192.168.1.10

voice-class codec 1 

voice-class h323 1

dtmf-relay h245-alphanumeric

fax protocol pass-through g711ulaw

!

dial-peer voice 2 voip

preference 1

destination-pattern 5...$

progress_ind setup enable 3

session target ipv4:192.168.1.11

voice-class codec 1 

voice-class h323 1

dtmf-relay h245-alphanumeric

fax protocol pass-through g711ulaw

!

dial-peer voice 112 pots

trunkgroup FXO

destination-pattern 91[2-9]..[2-9]......$

forward-digits 11

9 Replies 9

Hisham_IBM
Level 1
Level 1

Hello kenh,

I think you will need to remove Trunk group command and you will need to configure 4 dial-peers mapped to the phones beside using "answer-address" command for each dial-peer ? for example...

voice-port 0/0/0

timeouts interdigit 4

connection plar 5440

caller-id enable

!

voice-port 0/0/1

timeouts interdigit 4

connection plar 5441

caller-id enable

!

voice-port 0/1/0

timeouts interdigit 4

connection plar 5442

caller-id enable

!

voice-port 0/1/1

timeouts interdigit 4

connection plar 5443

caller-id enable

!

dial-peer voice 112 pots

answer-address 5440

destination-pattern 91[2-9]..[2-9]......$

forward-digits 11

port 0/0/0

!

dial-peer voice 113 pots

answer-address 5441

destination-pattern 91[2-9]..[2-9]......$

forward-digits 11

port 0/0/1

!

dial-peer voice 114 pots

answer-address 5442

destination-pattern 91[2-9]..[2-9]......$

forward-digits 11

port 0/1/0

!

dial-peer voice 115 pots

answer-address 5443

destination-pattern 91[2-9]..[2-9]......$

forward-digits 11

port 0/1/1

!

Yes, this will work except when call comes from another undefined DN it will use of the dial-peer based on the destination-pattern which may be OK for you. See the following for detailed explanation of dial-peer selection order:

http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a008010fed1.shtml

HTH,

Chris

Hisham Atteya & Chris,

Thanks for you guys input.  I actually was using "answer-address" to match ANI, but still unsucessfully.

Here is my setting:

Tthe IP Phone extension: 5443

External Phone Number Mask:2015561408

So when I do a debug voice ccapi inout, the ANI is the External Phone Number Mask:2015561408, not the actual phone extension 5443.

But I have tried to use "answer-address 2015561408" and , "answer-address 5443", but both doesn't work.  It just randomally pick any FXO port to make outgoing call.

As you can see the debug below, the ANI is 2015561408 and dial-peer is 115 when I make a phone call for outbound.  The dial-peer number will change for the next outbound call.

Here is the debug:

Sep  4 11:26:44: //-1/808978E65400/CCAPI/cc_api_display_ie_subfields:

   cc_api_call_setup_ind_common:

   cisco-username=Kenneth Ho

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

   cisco-ani=2015561408

   cisco-anitype=0

   cisco-aniplan=0

   cisco-anipi=0

   cisco-anisi=1

   dest=919175977855

   cisco-desttype=0

   cisco-destplan=0

   cisco-rdie=FFFFFFFF

   cisco-rdn=

   cisco-rdntype=-1

   cisco-rdnplan=-1

   cisco-rdnpi=-1

   cisco-rdnsi=-1

   cisco-redirectreason=-1   fwd_final_type =0

   final_redirectNumber =

   hunt_group_timeout =0

Sep  4 11:26:44: //-1/808978E65400/CCAPI/cc_api_call_setup_ind_common:

   Interface=0x2B588714, Call Info(

   Calling Number=2015561408,(Calling Name=)(TON=Unknown, NPI=Unknown, Screening=User, Passed, Presentation=Allowed),

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

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

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

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

Sep  4 11:26:44: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Sep  4 11:26:44: :cc_get_feature_vsa malloc success

Sep  4 11:26:44: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Sep  4 11:26:44:  cc_get_feature_vsa count is 1

Sep  4 11:26:44: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Sep  4 11:26:44: :FEATURE_VSA attributes are: feature_name:0,feature_time:805610024,feature_id:300

Sep  4 11:26:44: //300/808978E65400/CCAPI/cc_api_call_setup_ind_common:

   Set Up Event Sent;

   Call Info(Calling Number=2015561408(TON=Unknown, NPI=Unknown, Screening=User, Passed, Presentation=Allowed),

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

Sep  4 11:26:44: //300/808978E65400/CCAPI/cc_process_call_setup_ind:

   Event=0x2B93EE20

Sep  4 11:26:44: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_match_search:

   Try with the demoted called number 919175977855

Sep  4 11:26:44: //300/808978E65400/CCAPI/ccCallSetContext:

   Context=0x31E4A6F8

Sep  4 11:26:44: //300/808978E65400/CCAPI/cc_process_call_setup_ind:

   >>>>CCAPI handed cid 300 with tag 0 to app "_ManagedAppProcess_Default"

Sep  4 11:26:44: //300/808978E65400/CCAPI/ccCallProceeding:

   Progress Indication=NULL(0)

Sep  4 11:26:44: //300/808978E65400/CCAPI/ccCallSetupRequest:

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

   Outgoing Dial-peer=115, Params=0x31E4BC08, Progress Indication=NULL(0)

Sep  4 11:26:44: //300/808978E65400/CCAPI/ccCheckClipClir:

   In: Calling Number=2015561408(TON=Unknown, NPI=Unknown, Screening=User, Passed, Presentation=Allowed)

Sep  4 11:26:44: //300/808978E65400/CCAPI/ccCheckClipClir:

   Out: Calling Number=2015561408(TON=Unknown, NPI=Unknown, Screening=User, Passed, Presentation=Allowed)

Sep  4 11:26:44: //300/808978E65400/CCAPI/ccCallSetupRequest:

   Destination Pattern=91[2-9]..[2-9]......$, Called Number=919175977855, Digit Strip=TRUE

Sep  4 11:26:44: //300/808978E65400/CCAPI/ccCallSetupRequest:

   Calling Number=2015561408(TON=Unknown, NPI=Unknown, Screening=User, Passed, Presentation=Allowed),

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

   Redirect Number=, Display Info=Kenneth Ho

   Account Number=Kenneth Ho, Final Destination Flag=TRUE,

   Guid=808978E6-A81D-6104-5400-D4030AF11E95, Outgoing Dial-peer=115

Sep  4 11:26:44: //300/808978E65400/CCAPI/cc_api_display_ie_subfields:

   ccCallSetupRequest:

   cisco-username=Kenneth Ho

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

   cisco-ani=2015561408

   cisco-anitype=0

   cisco-aniplan=0

   cisco-anipi=0

   cisco-anisi=1

   dest=919175977855

   cisco-desttype=0

   cisco-destplan=0

   cisco-rdie=FFFFFFFF

   cisco-rdn=

   cisco-rdntype=-1

   cisco-rdnplan=-1

   cisco-rdnpi=-1

   cisco-rdnsi=-1

   cisco-redirectreason=-1   fwd_final_type =0

   final_redirectNumber =

   hunt_group_timeout =0

Hello Kenh,

1. First of all, in case if you are using external phone number mask for PSTN calls, so you should always use command (answer-address 2015561408) under dial-peer configurations.

2.would you please send again your current show run of the configuration for all dial-peers and voice-ports.

3. as you said if it is going to change the dial-peer in the next attempt, would you please debug that and send it with 2 different attempt ?

Thanks,

Hisham

Hisham Atteya ,

I couldn't find a way to attach my config and debug at the forum.  I am going to send you private email with my email address.

Or you can direct me how to attach the file?  I find how to  attach video and image, but not file.

Thanks

Ken

Hello Ken,

After pressing "reply", you will find "Use advanced editor" up on the right corner of your reply screen, just press on it and then you will be able to attache documents...

Thanks

Hisham

Hisham Atteya,

Here is the complete config and 3 debug file.

The VG actually have 7 POTS line, 4 POTS configure as TRUNK group (name FXO).

The rest of 3 FXO is actually I am working on right now.  Each of FXO dedicated to different end-users, they want to use specific POTS for outbound call.

voice-port 0/0/1

timeouts interdigit 4

connection plar 5444

description 201-556-1232

caller-id enable

!

voice-port 0/1/0

timeouts interdigit 4

connection plar 5446

description 201-556-1247

caller-id enable

!

voice-port 0/1/1

timeouts interdigit 4

connection plar 5449

description IT ROOM 201-556-1423

caller-id enable

dial-peer voice 113 pots

answer-address 2015561401

destination-pattern 91[2-9]..[2-9]......$

port 0/0/1

forward-digits 11

!

dial-peer voice 115 pots

answer-address 1408

destination-pattern 91[2-9]..[2-9]......$

port 0/1/0

forward-digits 11

!

dial-peer voice 117 pots

answer-address 2015561423

destination-pattern 91[2-9]..[2-9]......$

port 0/1/1

forward-digits 11

Thanks

Ken

Hello Ken,

Thanks for the update...

1. Based on the attached file and please take a look to my attached snapshot too, you will see that V-GW (it is not appeared here in my attached snapshot) but the V-GW I think tried to take a decision to chooce and route the calls to dial-eer (115 then 112) ... but did you check before making the call that port 0/1/0 was not busy or used by someone else (Call still active) by show voice port summery or any debug command ?

2. On the Other hand, and based on attached show run you have dial-peers (112,113,115 & 117) hve same destination-pattern 91[2-9]..[2-9]......$ but you will never be able for example to route calls through dial-peers 113 & 117 which is considered as a big evidence that answer-address comanad is working fine...you can route calls through dial-peer 115 as a first priority and if it is busy you will be able to route calls to dial-peer 112 (trunk-group) becuase it will route just based on destination-pattern command without takeing a look to ani number.

3. You will need just to debug call routing flow thorugh your dial-peers...

debug voice ccapi inout

debug h225 asn1

debug vpm signal

debug voice dialpeer inout

Thanks,

Hisham

Hi Hisham,

Sorry about the late respond, I made 5 calls from ANI 2015561408.

It seems random pick the FXO.

Please see 5 debug files.

Thanks

Ken