Koozali.org: home of the SME Server

Calls to DiD causing some sort of loop....

Offline gippsweb

  • ****
  • 232
  • +0/-0
    • Wots I.T.?
Calls to DiD causing some sort of loop....
« on: March 25, 2009, 04:33:59 AM »
The last couple of days I'm seeing some strange stuff happening on incoming calls to my DiD number.
Incoming calls on the Did have asterisk calling the DiD number again and again until the 4 lines are used.
It seems to be throwing itself into some kind of loop.
the box is running sail 719 and asterisk 1.4.21

  == Spawn extension (default, h, 1) exited non-zero on 'SIP/5006-08a29948'
    -- Executing [0341024269@default:1] AGI("SIP/0094*00002-08a20520", "selintra|OutRoute|National") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script Executing Application: (Dial) Options: (SIP/0341024269@peer0094*00002)
    -- Called 0341024269@peer0094*00002
    -- Executing [0341024269@default:1] AGI("SIP/0094*00002-08a1eaf8", "selintra|OutRoute|National") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script Executing Application: (Dial) Options: (SIP/0341024269@peer0094*00002)
    -- Called 0341024269@peer0094*00002
    -- Executing [0341024269@default:1] AGI("SIP/0094*00002-08a30cb8", "selintra|OutRoute|National") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script Executing Application: (Dial) Options: (SIP/0341024269@peer0094*00002)
    -- Called 0341024269@peer0094*00002
    -- SIP/peer0094*00002-08a38b88 answered SIP/0094*00002-08a30cb8
    -- Packet2Packet bridging SIP/0094*00002-08a30cb8 and SIP/peer0094*00002-08a38b88
    -- SIP/peer0094*00002-b7d00578 answered SIP/0094*00002-08a1eaf8
    -- Packet2Packet bridging SIP/0094*00002-08a1eaf8 and SIP/peer0094*00002-b7d00578
    -- SIP/peer0094*00002-08a253d8 answered SIP/0094*00002-08a20520
    -- Packet2Packet bridging SIP/0094*00002-08a20520 and SIP/peer0094*00002-08a253d8
  == Spawn extension (default, 0341024269, 1) exited non-zero on 'SIP/0094*00002-08a20520'
    -- Executing [h@default:1] Hangup("SIP/0094*00002-08a20520", "") in new stack
  == Spawn extension (default, h, 1) exited non-zero on 'SIP/0094*00002-08a20520'
  == Spawn extension (default, 0341024269, 1) exited non-zero on 'SIP/0094*00002-08a1eaf8'
    -- Executing [h@default:1] Hangup("SIP/0094*00002-08a1eaf8", "") in new stack
  == Spawn extension (default, h, 1) exited non-zero on 'SIP/0094*00002-08a1eaf8'
  == Spawn extension (default, 0341024269, 1) exited non-zero on 'SIP/0094*00002-08a30cb8'
    -- Executing [h@default:1] Hangup("SIP/0094*00002-08a30cb8", "") in new stack
  == Spawn extension (default, h, 1) exited non-zero on 'SIP/0094*00002-08a30cb8'

Anyone have any ideas, or maybe have seen something like this happen before??

 

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Calls to DiD causing some sort of loop....
« Reply #1 on: March 25, 2009, 07:11:38 AM »
I have had something like this happen, and the cause turned out to be my user error. Has anything been changed at all recently?

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Calls to DiD causing some sort of loop....
« Reply #2 on: March 25, 2009, 07:23:53 AM »
A routing dial plan which is too "loose" can cause this kind of behavioue.

Usually this


Best

S

Offline gippsweb

  • ****
  • 232
  • +0/-0
    • Wots I.T.?
Re: Calls to DiD causing some sort of loop....
« Reply #3 on: March 25, 2009, 08:00:54 AM »
I thought it would be something I'd done, but the only changes have been the SME updates last week, had to reboot back to the old kernel as I couldn't find one for a kmdl for the current kernel.

I do have some weird stuff happening with sip not loading when asterisk starts, for some reason it wasn't able to parse the sip.conf file as the [general] line got dropped from the file...

I hadn't been overly worried about it as we've been putting together a new box as this ones getting a tad slow....

Offline gippsweb

  • ****
  • 232
  • +0/-0
    • Wots I.T.?
Re: Calls to DiD causing some sort of loop....
« Reply #4 on: March 25, 2009, 11:35:52 PM »
Going on what you said Jeff, I've deleted the route that the call was looping out on.

It now gives the following;
chan_sip.c:14035 handle_request_invite: Call from '0094*00002' to extension '0341024269' rejected because extension not found.

I have trunk_Did_groups created for both the numbers and it has been working until the last couple of days.

When I recreated the did group for each of them I noticed a new option 'smartlink to extension' what does that do Jeff?

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Calls to DiD causing some sort of loop....
« Reply #5 on: March 26, 2009, 01:17:18 AM »
It's for big DiD ranges.  If you turn it on when you create a DiD range - say for example we had a range - 453600-453699, it will attempt to map the last 3 or 4 digits  (depending upon the number of digits you have chosen for your extensions) of each DiD it creates to an extension number.  If it gets a match it will automatically set up the routing to the extension for you.  Saves a lot of time on big site rollouts where the DiDs match the extensions.

Coming back to your problem...

Have you changed anything on your phone?   It genuinely looks like it is placing the same call over and over again. 

Also, the sequence in dalplan doesn't look quite correct.  It should start at internal.1 and then go to default.  Yours appears to go direct to default.  Check the stanzas on the SIP peers and make sure that a context=default hasn't crept in somewhere in one of your definitions.

Best

S   



 

Offline gippsweb

  • ****
  • 232
  • +0/-0
    • Wots I.T.?
Re: Calls to DiD causing some sort of loop....
« Reply #6 on: March 26, 2009, 03:00:08 AM »
 It genuinely looks like it is placing the same call over and over again.

Thats basically what is happening. A call is made to my DiD, sail is then trying to call the DiD from inside instead of passing it to an extension. This keeps going until it runs out of sip lines to use.

I see what you mean about the default context popping up in there. Also doesn't the 'h' signal a hangup? I've checked all the contexts in the trunks and can't find anything astray.

We're only running 2 sip trunks and they both have context=mainmenu in the right side box.

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Calls to DiD causing some sort of loop....
« Reply #7 on: March 26, 2009, 07:28:56 AM »
can you send a copy of sip,conf to admin@aelintra.com please?

Best

S

Offline gippsweb

  • ****
  • 232
  • +0/-0
    • Wots I.T.?
Re: Calls to DiD causing some sort of loop....
« Reply #8 on: March 26, 2009, 08:18:55 AM »
on it's way.

Mark

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Calls to DiD causing some sort of loop....
« Reply #9 on: March 27, 2009, 11:48:57 AM »
traced to sip.conf header record missing from selintra database.  Record replaced, system receiving calls normally.

S

Offline gippsweb

  • ****
  • 232
  • +0/-0
    • Wots I.T.?
Re: Calls to DiD causing some sort of loop....
« Reply #10 on: March 28, 2009, 01:14:28 AM »
Where would we be without you Jeff...

Don't know how that would have happened, but am glad it's now sorted.

Cheers

Mark

PS. I think I owe you a beer or 2

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Calls to DiD causing some sort of loop....
« Reply #11 on: March 28, 2009, 01:23:28 AM »
Ha, if Jeff got all the beers he was owed he'd be drunk for a year!