IAX2/G.726 fail -> Restart -> works -> restart -&gt

Ok, i’ll start by saying im running Asterisk 1.4.21.2 on FreeBSD 7.0

Here’s my problem… Im peering over IAX2 to my VoIP provider using the G.726 codec, it fails with:

[Oct  9 19:16:49] WARNING[43406]: chan_iax2.c:7757 socket_process: Call rejected by 203.xxx.xxx.xxx: Unable to negotiate codec

THEN if i restart asterisk, all is ok?

    -- Executing [XXXX....@locals:1] Dial("SIP/02-288b9000", "IAX2/XXXX....@THE-PROVIDER/XXXX....") in new stack
    -- Called XXXX....@THE-PROVIDER/XXXX....
    -- Call accepted by 203.xxx.xxx.xxx (format g726)
    -- Format for call is g726
    -- IAX2/THE-PROVIDER-867 is proceeding passing it to SIP/02-288b9000
    -- IAX2/THE-PROVIDER-867 is making progress passing it to SIP/02-288b9000
    -- IAX2/THE-PROVIDER-867 is ringing
    -- Hungup 'IAX2/THE-PROVIDER-867'

IF i restart again, it fails!

Then i restart again and it works???

This repeats over many restarts!!!

Any ideas?

Follow up!

Was an issue on the provides end!

[quote=“MetalMick”]Ok, i’ll start by saying im running Asterisk 1.4.21.2 on FreeBSD 7.0

Here’s my problem… Im peering over IAX2 to my VoIP provider using the G.726 codec, it fails with:

[Oct  9 19:16:49] WARNING[43406]: chan_iax2.c:7757 socket_process: Call rejected by 203.xxx.xxx.xxx: Unable to negotiate codec

THEN if i restart asterisk, all is ok?

    -- Executing [XXXX....@locals:1] Dial("SIP/02-288b9000", "IAX2/XXXX....@THE-PROVIDER/XXXX....") in new stack
    -- Called XXXX....@THE-PROVIDER/XXXX....
    -- Call accepted by 203.xxx.xxx.xxx (format g726)
    -- Format for call is g726
    -- IAX2/THE-PROVIDER-867 is proceeding passing it to SIP/02-288b9000
    -- IAX2/THE-PROVIDER-867 is making progress passing it to SIP/02-288b9000
    -- IAX2/THE-PROVIDER-867 is ringing
    -- Hungup 'IAX2/THE-PROVIDER-867'

IF i restart again, it fails!

Then i restart again and it works???

This repeats over many restarts!!!

Any ideas?[/quote]