[asterisk-users] 1.4.22 vs 1.4.21.2 - IAX2 regression ?

Igor Zamocky asterix at ponozky.sk
Tue Nov 4 09:12:43 CST 2008


http://bugs.digium.com/view.php?id=13645

> Hi list,

> I just experienced an odd behaviour in 1.4.22 vs 1.4.21.2.
> To cut a long story short, IAX2 is not tx-ing hangup...

> Scenario is composed of two asterisk systems A and B.
> A receives calls from IAX users X, Y, Z, etc, does some
> validation and forwards them to B, also over IAX.

> When B hangs up, it transmits IAX hangup which A receives
> who, in turn, does not transmit the IAX hangup to its user
> X, Y or Z. So X, Y or Z still think the call is up...

> All of this is verified with iax debug... A receives the hangup but
> never hangs up the other side if running 1.4.22. Everything is ok
> if running 1.4.21.2.

> Could this be something we're doing wrong ? What steps would
> you suggest for further diagnostic?

> Thanks in advance for any feedback.



> System A runs 1.4.22 / 1.4.21.2

> System A iax.conf
> [userX]
> type=user
> transfer=no
> host=dynamic
> secret=<whatever>
> context=the-context
> disallow=all
> allow=alaw
> allow=ulaw

> [systemB]
> type=peer
> qualify=200
> transfer=no
> host=<ip-here>
> disallow=all
> allow=gsm

> System A extensions.conf:
> [the-context]
exten =>> _.,1,Wait(1)
exten =>> _.,n,Set(CALL_UUID=${EXTEN})
exten =>> _.,n,Set(RESULT_STRING="${ODBC_CALL_DATA_4_UUID(${CALL_UUID})}")
exten =>> _.,n,Set(ARRAY(NAME,ACCT,IAXUSER,NUM)="${RESULT_STRING}")
exten =>> _.,n,Set(DONT_CARE="${ODBC_REMOVE_CALL_4_UUID(${CALL_UUID})}")
exten =>> _.,n,Set(CALLERID(name)=${NAME})
exten =>> _.,n,Set(CDR(accountcode)=${ACCT})
exten =>> _.,n,Dial(IAX2/${IAXUSER}@systemB/${NUM})
exten =>> _.,n,Hangup()

> (note: behaviour is also failing in 1.4.22 if, instead of Dialing
> system B, we just wait+hangup directly here!)



> System B runs asterisk 1.2.30.1
> System B iax.conf:
> [one-systemA-user]
> type=user
> context=one-context
> notransfer=yes
> disallow=all
> allow=gsm

> System B extensions.conf:
> [one-context]
exten =>> _NXXXXXXXX,1,Dial(.../${EXTEN})
exten =>> _NXXXXXXXX,n,Hangup()



> --
>  exvito

> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --

> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list