Koozali.org: home of the SME Server

Trunking with Unlimitel [RESOLVED]

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Trunking with Unlimitel [RESOLVED]
« on: March 25, 2008, 10:26:44 PM »
Hi,

I'm setting up SARK on SME7 and incoming calls are not reaching.
Here is the message I get:

Quote
NOTICE[6208]: chan_iax2.c:7773 socket_process: Rejected connect attempt from 209.217.98.254, request '5149079086@default' does not exist

This part "zzz@default" beats me!! Where is that name coming from? The context in the trunk or elsewhere?

Thanks,

Sophie
« Last Edit: March 26, 2008, 08:30:29 PM by soprom »
Sophie from Montréal

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: Trunking with Unlimitel
« Reply #1 on: March 25, 2008, 10:35:22 PM »
following my own post...
It seems I do not understand correctly which 'context' to use.

Is this a correct way of setting context:

Peer side -> context=mainmenu
User side -> context=<cluster_name>

Code: [Select]
    -- Accepting AUTHENTICATED call from 209.217.98.254:
       > requested format = ulaw,
       > requested prefs = (ulaw|gsm|adpcm),
       > actual format = ulaw,
       > host prefs = (ulaw),
       > priority = mine
    -- Executing [5149079086@internal:1] AGI("IAX2/5149079086-5", "selintra|OutCluster|5149079086") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script selintra completed, returning 0
    -- Sent into invalid extension '5149079086' in context 'default' on IAX2/5149079086-5
    -- Executing [i@default:1] PlayTones("IAX2/5149079086-5", "congestion") in new stack
  == Auto fallthrough, channel 'IAX2/5149079086-5' status is 'UNKNOWN'
    -- Executing [h@default:1] Hangup("IAX2/5149079086-5", "") in new stack
  == Spawn extension (default, h, 1) exited non-zero on 'IAX2/5149079086-5'
    -- Hungup 'IAX2/5149079086-5'
« Last Edit: March 25, 2008, 10:37:09 PM by soprom »
Sophie from Montréal

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: Trunking with Unlimitel [RESOLVED]
« Reply #2 on: March 25, 2008, 11:25:44 PM »
Inbound calls now reach the extension with peer context = default and use context = internal
Sophie from Montréal

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Trunking with Unlimitel
« Reply #3 on: March 25, 2008, 11:37:32 PM »
Salut Sophie

Ca va?

I have a question.  Have you created/included the number 5149079086 in any context?  Normally this would be specified as the DiD in an IAX trunk create.

Please stop asterisk from the asterisk console with "stop now". 

Restart Asterisk with...

asterisk -vvvvvc

then do...

agi debug

Now run your inbound call again and show me the output.

afterwards do...

agi no debug

restart now




Kind Regards

S

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: Trunking with Unlimitel
« Reply #4 on: March 25, 2008, 11:49:01 PM »
Bonjour!
Merci de t'arrêter à mon pépin!

I've got it working now but I don't know why!!!
Since I'm using clusters, shouldn't I refer to a cluster in the context, or do I always use default for outbound and internal for inbound.
Sophie from Montréal

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Trunking with Unlimitel
« Reply #5 on: March 26, 2008, 12:10:09 AM »
Hi Sophie

Usually, you should not specify context explicitly.  SARK will do it for you.  The inbound call flow is quite complex due to the number of potential switching decisions which sark has to make.  Indeed, the ONLY way you should specify a context is indirectly through the cluster create mechanism.

I suspect that you have made it work by bypassing much of the inbound processing with your context overrides.

Please set everything back to the sark generated defaults and run the diagnostics from my last post.

Kind Regards

S



Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: Trunking with Unlimitel
« Reply #6 on: March 26, 2008, 12:27:38 AM »
Do I need to enter a "Peer Stanza Label" ?
What is this?
Sophie from Montréal

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: Trunking with Unlimitel
« Reply #7 on: March 26, 2008, 12:47:33 AM »
Here it is with a right-side box with only "type=user" :

Code: [Select]
*CLI> agi debug
AGI Debugging Enabled
*CLI>     
-- Saved useragent "Aastra 480i Cordless/1.4.2.1081 Brcm Callctrl/1.5 MxSF/v3.2.8.45" for peer 5000

[Mar 25 19:33:40] NOTICE[785]: chan_iax2.c:7364 socket_process: Rejected connect                                                                  attempt from 209.217.98.254, request '[b]5149079086@default[/b]' does not exist
   
-- Saved useragent "UTSTARCOM F1000/Device ID-000,   version=4.50st" for peer 5001

Trunk is defined with :
Code: [Select]
type=peer
host=iax01.unlimitel.ca
canreinvite=no
username=5140000000
fromuser=5140000000
secret=0000000
disallow=all
allow=alaw
allow=ulaw

and

Code: [Select]
type=user
A working conf with FreePBX is using these:
Outbound:
Code: [Select]
username=5140000000
type=[b]friend[/b]
secret=0000000
host=iax01.unlimitel.ca
context=from-pstn
canreinvite=no
allow=ulaw
Inbound:
Code: [Select]
type=[b]friend[/b]
context=from-pstn
canreinvite=no
allow=ulaw

Sophie from Montréal

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: Trunking with Unlimitel
« Reply #8 on: March 26, 2008, 08:25:23 PM »
I've got it working now.

Unlimitel recommends these settings:

peer
;outbound
type=peer
host=iax01.unlimitel.ca
canreinvite=no
username=5141112222
fromuser=5141112222
secret=000
disallow=all
allow=alaw
allow=ulaw

user
;inbound
type=user
context=mainmenu
secret=000
username=5141112222
host=iax01.unlimitel.ca
canreinvite=no
allow=ulaw

registration: 5141112222:000@iax01.unlimitel.ca

With these, calls are Ok.

The only remaining problem is that the trunkline is marked with "status = X" even though it works fine.

ps - This is a very interesting software! After using FreePBX for over a year, SAIL put me off balance at first. But the more I get to use it the more I like its way of doing things!

Thanks !
« Last Edit: March 26, 2008, 08:29:22 PM by soprom »
Sophie from Montréal

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Trunking with Unlimitel [RESOLVED]
« Reply #9 on: March 26, 2008, 09:54:38 PM »
Hi Sophie

I have built a little guide to how SARK/SAIL takes your trunk definition and implements it.

you can find it here

http://www.selintra.com/docs/cgi-bin/view/Main/DocChapter2517

It might help explain what happens and why

Kind Regards

S