Difference between revisions of "How to connect to Huawei devices"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 24: Line 24:
             ast_build_string(&a_audio_next, &a_audio_left, "a=silenceSupp:off - - - -\r\n")
             ast_build_string(&a_audio_next, &a_audio_left, "a=silenceSupp:off - - - -\r\n")
   
   
as it is described in this [http://bugs.digium.com/view.php?id=6669 patch].
as it is described in this [http://bugs.digium.com/view.php?id=6669 patch]. Recompiled Asterisk and it started to work.

Revision as of 15:03, 25 January 2008

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 <---> Patched Asterisk <---> 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.