How to connect to Huawei devices

From Kolmisoft Wiki
Revision as of 15:05, 25 January 2008 by Admin (talk | contribs)
Jump to navigationJump to search
Huawei.png

Huawei develops various devices which has nasty bugs in SIP implementation.

Huawei sends pagtches to Asterisk to cripple Asterisk to support their non-standard SIP implementation but do not fix their own implementations.

One we encountered is then in SIP INVITE message Asterisk sends line:

a=silenceSupp:off - - - - -

Huawei softswitch does not like it and returns error.

Related links:

Provider which uses Huawei insisted we should patch (criple) Asterisk to make to work with their softdwitch. Instead we put middle server between our Asterisk server and their softswitch:

Our main Asterisk <--IAX2--> Patched Asterisk <--SIP--> Huawei softswitch

In /usr/src/asterisk/channels/chan_sip.c we commented lines

    if (!p->owner || !ast_internal_timing_enabled(p->owner))
            ast_build_string(&a_audio_next, &a_audio_left, "a=silenceSupp:off - - - -\r\n")

as it is described in this patch. Recompiled Asterisk and it started to work.