Dialplan plugin called twice?

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
tlxdavid
Posts: 10
Joined: Thu Feb 01, 2007 9:59 pm

Dialplan plugin called twice?

Post by tlxdavid »

1. Brekeke Product Name and version:
Sip server 2.0.7.2

6. Your problem:

We are using a dialplan plugin we use as follow:

Matching Pattern:
$request=^INVITE
$geturi(From)=sip:(.+)@(.+)
To=sip:(.+)@
$sample.dialingplan("%2","%1","%3")=(.+)

Deploy Pattern:
To=%4
$continue=no
$session=com.test.AccntTest

All is working fine, both the dialplan & session plugins are working good. Just that the dialplan plugin is called twice in a row by the sip server (and the plugin does the same process twice and gives the same result twice). We tried not using the session plugin, but the dialplan plugin is called twice as well.

Anyone knows why is that and if it's normal?

Thanks in advance,
David.
voipwell.com
Posts: 528
Joined: Tue Sep 20, 2005 9:10 am
Location: Tannersville, Pennsylvania

Post by voipwell.com »

Do you have any other dial plans with a continue = true in them? If so try disabling them and see if it causes your dial plan to be executed only once.
tlxdavid
Posts: 10
Joined: Thu Feb 01, 2007 9:59 pm

Post by tlxdavid »

voipwell.com wrote:Do you have any other dial plans with a continue = true in them? If so try disabling them and see if it causes your dial plan to be executed only once.
No, no other dial plan. Just that one. I tried on 2 different sip servers (we have 4) and it's acting exactly the same.

I guess it's not a big deal since it works... but it calls our routing engine twice for each call and that is most probably unnecessary.

Best regards,

David.
voipwell.com
Posts: 528
Joined: Tue Sep 20, 2005 9:10 am
Location: Tannersville, Pennsylvania

Post by voipwell.com »

The only other thing I can think of is that you should take out the $continue=no since it is implied when you don't have $continue=true. I have never seen anyone use $continue=no before. I'm guessing you put that in there to try to stop the double execution?
tlxdavid
Posts: 10
Joined: Thu Feb 01, 2007 9:59 pm

Post by tlxdavid »

voipwell.com wrote:The only other thing I can think of is that you should take out the $continue=no since it is implied when you don't have $continue=true. I have never seen anyone use $continue=no before. I'm guessing you put that in there to try to stop the double execution?
Yes I wanted to make sure no other dialplan entry was called (I think I remember having problems like that in older versions).

I removed the $continue=no, and the dialplan plugin is still called twice..[/i]
Laurie
Posts: 245
Joined: Mon Jan 07, 2008 12:25 pm

Post by Laurie »

Is there any possibility that the client sends INVITE twice?

Can you capture packets?
tlxdavid
Posts: 10
Joined: Thu Feb 01, 2007 9:59 pm

Post by tlxdavid »

Laurie wrote:Is there any possibility that the client sends INVITE twice?

Can you capture packets?
That's one of the things I checked first, only one INVITE
Laurie
Posts: 245
Joined: Mon Jan 07, 2008 12:25 pm

Post by Laurie »

Is the method "dialingplan" executed twice exactly same time?

Are you using the PBX in this scenario?
Post Reply