chan_sip.c:2180 __sip_autodestruct

hi:
I have asterisk box which i set it up to receive calls from outside through IAX2 and send them again to Teles gateway “voip gateway” using sip ,so asterisk box is doing bridging between iax and sip ,but when calls is being answered i hear 1 way voice for 2-3 seconds then call hangup by itself,and i got this message :

– Executing [002XXXXXXXX@local:1] Dial(“IAX2/mohm1-7745”, “SIP/teles/002XXXXXXX”) in new stack
– Called teles/002XXXXXXXX
– SIP/teles-00000002 is ringing
– SIP/teles-0000002f is making progress passing it to IAX2/mohm1-225
[Sep 7 00:23:35] NOTICE[27604]: chan_sip.c:5639 process_sdp: No compatible codecs, not accepting this offer!
– SIP/teles-0000002f is making progress passing it to IAX2/mohm1-225
[Sep 7 00:23:42] NOTICE[27604]: chan_sip.c:5639 process_sdp: No compatible codecs, not accepting this offer!
– SIP/teles-0000002f answered IAX2/mohm1-225
[Sep 7 00:23:55] WARNING[27604]: chan_sip.c:2180 __sip_autodestruct: Autodestruct on dialog ‘1b9172143f7aecff644ef81145031b60@192.168.1.11’ with owner in place (Method: INVITE)
== Spawn extension (a2billing, 00201283859809, 1) exited non-zero on ‘IAX2/mohm1-225’
– Hungup ‘IAX2/mohm1-225’

this is my sip config :

[teles]
canreinvite=NO
host=192.168.1.16
insecure=invite
qualify=yes
type=peer
disallow=ALL
allow=g723
allow=g729

please need your help ,thanks a lot

You need to get the logs from the log files, so that you have everything timestamped. You may need to turn on extra log classes in logger.conf.

You will also need to use:

core set verbose 5
core set debug 5
sip set debug on

to get a full SIP trace and associated debugging.

My initial feeling is that you have found a bug when early media uses incompatible codecs, but you will need the above information before you can report it formally. You are allowed to redact sensitive information, but try not to hide differences between different addresses when doing so.

You will also need to be using a supported version of Asterisk. I can’t tell which version this is.

Note that it is the “with owner in place” that makes this message indicate a problem. autodestruction is normal in other cases.

hi david55:
thanks for ur reply ,i have been so long out of asterisk enviroment so it may take too long with me to fix ,so if possible u can log in to my server and fix the problem or u can email me on wassimdarwich@hotmail.com to be on private , thanks