Hello Guys, I couple of weeks ago we encountered a problem with two customers calling from abroad. The called number was "received" twice, at least from a certain point it became double.
So every time they called (lets assume our number is ABCD) asterisk tried to jump to an extension ABCDABCD. We had a hard time digging around in the code and reading q931 specs trying to track down the reason for this. We assumed that this is an chan_zap.c issue, but after a time we tracked it down to q931.c from libpri. It seems that when the initialisation for the INFORMATION frame is made (actually there is none atm) the c->callednum stays the old one from the SETUP frame and is then again copied to pri->ev.ring.callednum even if the INFORMATION frame only contains a Sending Complete flag and no additional number. So we added a c->callednum[0] = '\0'; and now it works perfectly. If that the case I would propose to add this to the source. The diff is attached. Would be happy to get some feedback about this. Thanks in adavance. Bye, Dimitri Machen Sie aus 14 Cent spielend bis zu 100 Euro! Die neue Gaming-Area von Arcor - über 50 Onlinespiele im Angebot. http://www.arcor.de/rd/emf-gaming-1
q931_patch.diff
Description: Binary data
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev