Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Mapping PSTN cause codes with the corresponding SIP Cause codes

Hi,

We are trying to integrate the Asterisk dialer through SIP trunk with Cisco 3845 gateway running c3845-adventerprisek9-mz.124-15.XZ2 IOS image on the same. I`m facing some issues in my attempt to track the Special Information Tones (SIT) on this deployment ,where in the normal disconnect cause code 16 for all the calls are being reported to the Asterisk dialer on the SIP trunk. Ideally it should be the different cause codes for each of the SIT type. Could somebody please advise ,if this is supported with the Cisco Voice gateway platforms? This is kind of urgent for us.

Raj

39 REPLIES
Hall of Fame Super Gold

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

How exactly are you connecting to PSTN ? What is the SIt that are you talking about ?

New Member

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Hi,

Thanks for th equick turnaround. We are connecting to the PSTN though ISDN - T1. We would like to capture all the SIT tones and identify them with appropriate type. For example the PSTN disconnect cause code 1 is mapped with the Unallocated number (SIT), etc.,

Raj

Hall of Fame Super Gold

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

There are no SIT tones with ISDN, and router present to the remote site any in-band tone during the call setup.

The cause codes are provided via Q931, and the router does the best mapping possible to/from SIP.

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Hi Raj,

This is a new feature added in 12.4(20)YA for 5x00 series gateways. Check out the command reference for more information:

http://www.cisco.com/en/US/docs/ios/voice/command/reference/vr_s12.html#wp1201855

As of now, there isn't support on the ISR routers.

hth,

nick

Hall of Fame Super Gold

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Nice, but the documentation states support for FXO* and CAS only. The OP mentioned ISDN instead.

* It would be also interesting to understand how FXO is supported as there is no such thing on the AS5xxx series.

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

I'm sure it's referencing T1 FXO lines, which nobody uses anyways.

Thought I would throw it out there because it's kind of nifty.

-nick

New Member

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Hi Guys,

It`s right that the SIT informations are sent via the ISDN Q931 cause codes ,but the mapping part from the voice gateway seems to be working incorrectly ,as it always does the graceful disconnect and sends "16" as the cause code on the SIP trunk. Ideally this should be different values for each of the disconnect causes. For example , it should return the value of "1" for the unallocated number. So that the Asterisk would mark this call with the appropriate SIP cause code mapping configured on the same.

According to the documents and the "show sip-ua map pstn-sip" shows the correct mapping. But it always sends the normal clearing cause code "16" and that leads to our issue. Please advise. Could appreciate ,if you guys can give me your contact number to discuss the same.

Raj

Hall of Fame Super Gold

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Post a trace taken with "debug isdn q931" and "debug ccsip message" to prove your point.

Do not enable any other debug.

New Member

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Hi,

Please find the requested debugs from the voice gateway as attached. I have attached the traces from the Asterisk box as well. The test call was made to an unallocated number for which the disconnect cause code should have been "1" but we have got "16" instead.

Raj

Hall of Fame Super Gold

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Note: you're referring to Progress Indicator to SIP mapping, not disconnect cause to sip mapping.

The disconnect cause is 16 because asterisk is actually disconnecting in a normal manner, not the router or PSTN.

Anyway, do you have configured ?

voice service voip

signaling forward

New Member

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Hi,

I already have the Signalling forward unconditional command under the Voice services voip configured. The disconenction piece , I`m confused here. The Asterisk makes a call through SIP trunk to the Cisco VG and the call is hooked on to the PSTN. The call gets disconnected by the PSTN switch after the SIT tone being played and sends a disconnect message to the Cisco VG. The Cisco VG in turn should send the corresponding SIP message to the Asterisk. Please advise ,if my understanding is correct here.

If my understanding is correct ,then the disconnect event is not initiated by the Asterisk.

Raj

Hall of Fame Super Gold

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

No, asterisk is disconnecting, see below. This is normal, as the person making the call, hangs up after listening to the PSTN announcement. If you was to wait longer, you could see PSTN disconnecting perhaps.

I agree the router should send an INFO message to reflect the PI "number unavailable", however to an human user, that does not make much of a difference.

.May 19 18:13:58.077: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:

Received:

CANCEL sip:912561366440@10.128.18.96 SIP/2.0

Via: SIP/2.0/UDP 10.128.46.50:5060;branch=z9hG4bK5c48ed41;rport

=

From: "6099772546" <6099772546>;tag=as7574b329

To: <912561366440>

Call-ID: 42d5a10b32a6f1e832a20309314d0965@10.128.46.50

CSeq: 102 CANCEL

User-Agent: Asterisk PBX

Max-Forwards: 70

Content-Length: 0

New Member

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Thanks for the input. Looks like the Asterisk is sending the disconnect message to the Cisco VG and VG sends the SIP hangup cause code 487 with ISDN Q931 disconnect cause code "16" back to the Asterisk. Its not the PI that I`m referring here.

Please take a look at the extract below for the SIP disconenct cause mapping with Q931 disconnect codes.

/* Causes for disconnection (from Q.931) */

#define AST_CAUSE_UNALLOCATED 1

#define AST_CAUSE_NO_ROUTE_TRANSIT_NET 2

#define AST_CAUSE_NO_ROUTE_DESTINATION 3

#define AST_CAUSE_CHANNEL_UNACCEPTABLE 6

#define AST_CAUSE_CALL_AWARDED_DELIVERED 7

#define AST_CAUSE_NORMAL_CLEARING 16

#define AST_CAUSE_USER_BUSY 17

#define AST_CAUSE_NO_USER_RESPONSE 18

#define AST_CAUSE_NO_ANSWER 19

#define AST_CAUSE_CALL_REJECTED 21

#define AST_CAUSE_NUMBER_CHANGED 22

The same mapping is found on the Cisco VG as well ,but it returns the incorrect code.

Please advise.

Raj

Hall of Fame Super Gold

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Hi, the thing is that the cancel message from asterisk does not specify a cause, consequently the router translates that to a normal disconnect to q931, as defined in the table you referenced.

On the other hand, router fails to forward PI for unallocated number that I think is what your problem is about.

I think it would forward that via H.323, but this is clearly irrelevant this discussion.

New Member

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Hi Nick,

Do you have any inputs on this? I hope you have understood our issue. If not please let me know and I`m glad to explain the same to you.

Raj

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Hi Raj,

This is an artifact of how the provider is disconnecting the call. Paolo is right.

RX <- PROGRESS pd = 8 callref = 0x878F

Cause i = 0x8381 - Unallocated/unassigned number

Progress Ind i = 0x8388 - In-band info or appropriate now available

Because this isn't a disconnect, it's not a disconnect cause code. This basically just says "Play reorder tone into the audio stream and let the user hang up".

There are better ways to do this, but we can't change that on the gateway.

Fact is, in this call flow, the SIP side hangs up with the Cancel. That's the disconnect, and as such it gets the 0x10 cause code.

-nick

Hall of Fame Super Gold

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Fact also is, SIP is never notified of an important call progress event. It could use it for whatever purpose, but it cannot.

Reading around documentation it seems that the router should forward that, but it doesn't. Strange.

New Member

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Guys,

Could appreciate ,if any workarounds can be suggested for this...:) This is really eating up my brian for more than a week and holds a module of the project as well...:(

Raj

Hall of Fame Super Gold

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Can you try

isdn gateway-max-interworking

New Member

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Still no luck...:(

Raj

Hall of Fame Super Gold

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Does the SIP messages sent from router change at all ?

New Member

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

No changes in the set of SIP messages in the transaction.

Raj

New Member

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

No changes in the set of SIP messages in the transaction.Same as earlier.

Raj

New Member

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

No changes in the set of SIP messages in the transaction.Same as earlier.

Raj

Hall of Fame Super Gold

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

I think that router not forwarding the number unallocated PI is a real problem and you should engage cisco about it.

New Member

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Any idea on the default behaviour ? Is it supposed to forward or not?

Raj

Hall of Fame Super Gold

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Documentation is not explicitly clear on that but I tend to think it should.

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Hi Raj,

I'm not quite sure how SIP would need to forward this information through to the Asterisk PBX.

If you put a case in between 9-12 est tomorrow I'll take a look at this.

-nick

New Member

Re: Mapping PSTN cause codes with the corresponding SIP Cause co

Guys,

I have an update ,that the same scenario works with Cisco AS5400XM VG as the gateway sends the appropriate PI & SIP message to the Asterisk. This proves for now,that the ISRs do not support our case. Lemme do some more research with the same and I`ll my findings with you...

Raj

3140
Views
5
Helpful
39
Replies