Iax2 trunk peers Server offline but client shows online . if i reload still client online

Hello sir
I am facing problem in iax2 trunk
Server side trunk offline But my client trunk is online .
Why its happening and how to solve its


server side Iax.conf

[general]
bindaddr=X.X.X.X:4508
autokill=yes
bandwidth=low
tos_sip=cs3
tos_audio=ef
trunkfreq=40
jitterbuffer=no
nochecksum=no
disallow=all
calltokenoptional=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
requirecalltoken=no
maxcallnumbers=16381
allow=g723
allow=g729:40
iaxcompact=yes
trunktimestamps=yes
codecpriority=caller
transfer=no
trunkmtu = 1240
trunkmaxsize = 128000
trunkfreq=20
authdebug=no
adsi = no
delayreject = no
forcejitterbuffer = no
iaxmaxthreadcount = 100
iaxthreadcount = 10
language = en
maxjitterbuffer = 1000
maxjitterinterps = 10
maxregexpire = 60
minregexpire = 60
nochecksums = no
resyncthreshold = 1000
qualifysmoothing=yes
qualifyfreqnotok=30000
qualifyfreqok=120000
qualify=yes

#include “iax_additional.conf”


server side Iax_additional .conf

[Harry]
username=harry
type=friend
secret=gw1
host=dynamic
trunk=yes
nat=yes
qualify=yes
context=from-sip
requirecalltoken=no


Client side iax.conf

[general]
bindport=4508
bindaddr=0.0.0.0
disallow=all
allow=g723
allow=g729:40
bandwidth=low
jitterbuffer=no
calltokenoptional=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
requirecalltoken=no
nochecksum=no
autokill=yes
iaxcompacte=yes
tos_sip=cs3
tos_audio=ef
trunkfreq=40
trunktimestamps=yes
trunkmtu = 1240
trunkmaxsize = 128000
trunkfreq=20
authdebug=no
maxcallnumbers=16381
transfer=no
codecpriority=caller
axmaxthreadcount = 100

#include “iax_additional.conf”


Client side iax_additional.conf

register => harry:gw1@XXXXXX:4508
[harry]
type=friend
authname=harry
secret=gw1
host=x.x.x.x
port=4508
trunk=yes
qualify=yes
context=from-sip
requirecalltoken=no
auth=plaintext
nat=yes
canreinvite=no

You haven’t provided enough information, such as the output of “iax2 set debug on” or console output. This would be needed to have any idea.

Hello Sir
Sorry for the late reply . Below i update debug log plz check . i will wait for your reply

==================
server side output

Connected to Asterisk 11.17.1 currently running on li1764-32 (pid = 2983)

Rx-Frame Retry[ No] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: REGREQ
Timestamp: 00007ms SCall: 02347 DCall: 00000 [103.73.226.46:7080]
USERNAME : b8
REFRESH : 60

Tx-Frame Retry[ No] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: CTOKEN
Timestamp: 00007ms SCall: 00001 DCall: 02347 [103.73.226.46:7080]
CALLTOKEN : 51 bytes

Rx-Frame Retry[ No] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: REGREQ
Timestamp: 00109ms SCall: 02347 DCall: 00000 [103.73.226.46:7080]
USERNAME : b8
REFRESH : 60
CALLTOKEN : 51 bytes

Tx-Frame Retry[000] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REGAUTH
Timestamp: 00008ms SCall: 03087 DCall: 02347 [103.73.226.46:7080]
AUTHMETHODS : 3
CHALLENGE : \x31\x37\x38\x32\x38\x33\x39\x32\x31
USERNAME : b8

Rx-Frame Retry[ No] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: REGREQ
Timestamp: 00210ms SCall: 02347 DCall: 03087 [103.73.226.46:7080]
USERNAME : b8
REFRESH : 60
MD5 RESULT : fe9c31f27cd4404b12b5d6b3fd38f356

Tx-Frame Retry[-01] – OSeqno: 001 ISeqno: 002 Type: IAX Subclass: ACK
Timestamp: 00210ms SCall: 03087 DCall: 02347 [103.73.226.46:7080]
Tx-Frame Retry[000] – OSeqno: 001 ISeqno: 002 Type: IAX Subclass: REGREJ
Timestamp: 00108ms SCall: 03087 DCall: 02347 [103.73.226.46:7080]
CAUSE : Registration Refused
CAUSE CODE : 29

Rx-Frame Retry[ No] – OSeqno: 002 ISeqno: 002 Type: IAX Subclass: ACK
Timestamp: 00108ms SCall: 02347 DCall: 03087 [103.73.226.46:7080]
li1764-32*CLI>

==================
Client side output

govn*CLI> iax2 show peers
Name/Username Host Mask Port Status Description
b8/b8 172.104.173.32 (S) 255.255.255.255 7080 (T) (E) OK (77 ms)
1 iax2 peers [1 online, 0 offline, 0 unmonitored]
Tx-Frame Retry[000] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: REGREQ
Timestamp: 00008ms SCall: 01002 DCall: 00000 [172.104.173.32:7080]
USERNAME : b8
REFRESH : 60

Rx-Frame Retry[ No] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: CTOKEN
Timestamp: 00008ms SCall: 00001 DCall: 01002 [172.104.173.32:7080]
CALLTOKEN : 51 bytes

Tx-Frame Retry[000] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: REGREQ
Timestamp: 00088ms SCall: 01002 DCall: 00000 [172.104.173.32:7080]
USERNAME : b8
REFRESH : 60
CALLTOKEN : 51 bytes

Rx-Frame Retry[ No] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REGAUTH
Timestamp: 00013ms SCall: 00239 DCall: 01002 [172.104.173.32:7080]
AUTHMETHODS : 3
CHALLENGE : \x31\x33\x33\x32\x34\x30\x36\x33\x39
USERNAME : b8

Tx-Frame Retry[000] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: REGREQ
Timestamp: 00167ms SCall: 01002 DCall: 00239 [172.104.173.32:7080]
USERNAME : b8
REFRESH : 60
MD5 RESULT : 0ca14aa4da96b2a14b589a27cd2442fe

Rx-Frame Retry[ No] – OSeqno: 001 ISeqno: 002 Type: IAX Subclass: ACK
Timestamp: 00167ms SCall: 00239 DCall: 01002 [172.104.173.32:7080]
Rx-Frame Retry[ No] – OSeqno: 001 ISeqno: 002 Type: IAX Subclass: REGREJ
Timestamp: 00092ms SCall: 00239 DCall: 01002 [172.104.173.32:7080]
CAUSE : Registration Refused
CAUSE CODE : 29

Tx-Frame Retry[-01] – OSeqno: 002 ISeqno: 002 Type: IAX Subclass: ACK
Timestamp: 00092ms SCall: 01002 DCall: 00239 [172.104.173.32:7080]

1 Like