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.

12 comentarios:

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 :: http://makedat.com/
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; http://pssp-uae.com/home/groups/stable-advice-to-support-you-reach-your-health-and-conditioning-targets/

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 http://www.swaggybook.com

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=http://www.x21w12w21.info]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
takes''''''''.

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...

Η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