viernes, 17 de julio de 2009

Overlap dial and chan_ss7

I've installing Asterisk PBX with SS7 links. I got a case where the number dialed comes in more than one message, so first a got most of the digits and then the rest. This is OK, but chan_ss7 v1.1 doesn't support it if Asterisk dialplan can handle the "first" number dialed.

I've tried with a patch from Asterisk-SS7 mai list - the one from hngovi -, but didn't solve the issue. The short story, I wrote a patch and tested a bit, seems to work well in my scenario. Here you have a shot explanation about it:

To consider that DNI is complete, it takes into account 3 things: complete parameter in pvt, en of dial message, and if Asterisk has the extension in its dialplan. The first one is a must, the DNI MUST be complete to start dialing (t35 timeout is also considered). Then, one of two things can happen, end of dialing message or Asterisk can handle the extension. It would be great if you can grab the patch and give some feedback, I've not been able to detect any issue so far.

Here is the patch:

--- chan_ss7-1.1/l4isup.c 2009-07-17 14:58:12.000000000 -0300
+++ chan_ss7-1.1.fameal/l4isup.c 2009-07-17 15:04:22.000000000 -0300
@@ -1618,8 +1618,9 @@ static void handle_complete_address(stru

static void check_iam_sam(struct ss7_chan* pvt)
- int complete = (pvt->link->linkset->enable_st && pvt->iam.dni.complete) ||
- ast_exists_extension(pvt->owner, pvt->context, pvt->iam.dni.num, 1, pvt->iam.rni.num);
+ /* fameal: in all cases check if DNI is complete */
+ int complete = pvt->iam.dni.complete &&
+ (pvt->link->linkset->enable_st || ast_exists_extension(pvt->owner, pvt->context, pvt->iam.dni.num, 1, pvt->iam.rni.num));
if (complete) {
pvt->iam.dni.complete = 1;
ast_log(LOG_DEBUG, "Setting iam.dni.complete\n");

PS: This article is written in english to make it useful for everybody.

16 comentarios:

Anónimo dijo...

I do like ur article~!!!...................................................

呈均 dijo...

TAHNKS FOR YOUR SHARING~~~VERY NICE ........................................

Alejandro dijo...

Gracias Facundo, funcionó perfecto!

Anónimo dijo...

" The site also offers items for sale, including apparel and bags emblazoned with a drawing of a mustachioed cat; I could not find any statistics about how much merchandise the website sells, but the items for sale actually looked pretty good. For example, we often do some driving trains to encourage the students to speak a few numbers in turn. Recent research found that stressfull life can increase the speed of progression of AIDS in HIV- positive patients.

Feel free to surf to my site ::
my page > funny pictures and quotes

Anónimo dijo...

I am truly pleased to read this web site posts which contains plenty of valuable information, thanks for providing such data.

my web page;

Anónimo dijo...

I am actually happy to glance at this web site posts
which contains tons of useful information, thanks
for providing such statistics.

My web site - fitness tips women

Anónimo dijo...

You need to flex those muscles regularly to
keep them strong and resilient. So if you adopt them punctually, you will be surely able to
gain your holistic health very soon. Let's say you want to be able to run 10 miles without stopping.

Also visit my web blog

Anónimo dijo...

Firstly, you must exercise; without proper workout, you can bid goodbye to your dream of having a flat tummy.

My grandma can really feel vindicated at such a claim,she's been saying this all my life. Smoking can affect your health and fitness since it affects all the bodily functions and damages vocal cords and skin.

My weblog :: Http://wartaggaming.Com/
My webpage - Intra.Cef.Pt

Anónimo dijo...

The Updated funny celebrity gossips mostly consists of on the scandals of famous or popular celebrities
like James waltz dating with David Arquette.
Regardless, to locate quality photos like this try the following.
simply keep in mind few websites that may lead you
to fun and smiles on face.

My blog post ... lol pictures

Anónimo dijo...

An effective hint for folks struggling with pimples or for individuals that would like to prevent it, is to use only natural merchandise on the skin. Several skincare items contain unpleasant substances that could damage or dry your skin layer, leading you to incredibly vunerable to acne. Employing natural merchandise will depart the skin more healthy. [url=]Vi7765ity[/url]

Anónimo dijo...

Anyone who needs a new idea to stay motivated should definitely try
this. You have to find a way to take the tips you learn and make maximum use of
them. If the answer is I''''''ll do whatever

my web page - Get More Information

Anónimo dijo...

Hello mates, its fantastic paragraph about educationand fully defined, keep it up all the time.

Also visit my website - Biotechnology and Bioengineering

Anónimo dijo...

Latest trimonthly [url=][b]エルメス 財布 メンズ[/b][/url]
results, deliberate at dependable reciprocity rates, Hermes takings increased not later than [url=]エルメス 店舗[/url]
12.8% to 856.8 million euros, compared with 776.9 million euros in the that having been said stretchiness in 2012, an farm of more than 11% of [url=][b]エルメス 店舗[/b][/url]
the retail participants at the to, but compared with sales in the earliest dwelling of 2012, an add to of [url=]エルメス 財布[/url]
17.6%words, has slowed; at popular reciprocity rates, Hermes in the original inject of the moon [url=][b]エルメス 財布[/b][/url]
takings advance of 10.3%, during the constantly of give toll fluctuations charge the friends 19 million euros. [url=]エルメス バッグ[/url]
In summation, the flock's retail [url=][b]エルメス 店舗[/b][/url]
channel sales growth of 13.6%, the wholesale channel sales raise of 9.9%.

Anónimo dijo...

Ηi іt's me, I am also visiting this web site regularly, this site is in fact nice and the viewers are in fact sharing good thoughts.

my site :: diamondlinks review

Anónimo dijo...

Hello there! This article couldn't be written any better!
Looking at this article reminds me of my previous roommate!
He constantly kept talking about this. I most
certainly will forward this article to him.
Fairly certain he's going to have a good read. Thanks
for sharing!

Take a look at my blog - level term assurance

Anónimo dijo...

Nіce replids in return of this issue with solid argսments
and tellung all about that.

my homepage where can you where to buy African mango plus diet pills