Saturday, August 8, 2009

Hair-pinning calls

One of colleague called me recently and asked a sample configuration for hair-pinning a call. He has requirement from his client to forward the calls he receives through one PRI port to another number through the same PRI or through several other PRIs. This was a business requirement since they outsourced one of the call center services to a vendor.

This will not require any special configuration. If you need to hairpin between two voip call leg you would need CUBE configuration. Consider this as the scenario and the numbers –

Caller calls office number, assume it is 045 471 1234, and assume that gateway receive 1234 as the called party number in isdn q931 setup message. This needs to be forwarded to a vendor office at another city and assume that number is 0129 1202555.

Below would be the configuration for that –

!

Voice translation-rule 1

Rule 1 /^1234/ /01291202555/

!

!

Voice translation-profile Xfr_to_VENDOR

Translate called 1

!

!

Dial-peer 10 voice pots

Description Incoming port

Incoming called-number .

Direct-inward-dial

Port x/x:15

!

!

Dial-peer 20 voice pots

Destination-pattern 1234

Description outgoing dialpeer

Translation-profile outgoing Xfr_to_VENDOR

Direct-inward-dial

Port x/x:15

!

He implemented it last week and confirmed it works perfect.

No comments:

Post a Comment