Koozali.org: home of the SME Server

SAIL IAX Provider Setup

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: SAIL IAX Provider Setup
« Reply #15 on: June 24, 2008, 07:02:53 AM »
OK, thaks for sending us your account details.  It works as we described a couple of posts back…

Quote
try setting it up like this...

delete the existig trunk... then recreate it as follows...

peer stanza (whatever you like - e.g. ATP1)
DiD  7339
username 7339
password (whatever your password is)

The resulting stanzas will look something like this...
Code:
[ATP1]
type=peer
host=gw3.austechpartnerships.com
qualify=3000
canreinvite=no
username=7339
fromuser=7339
secret=password
context=default
disallow=all
allow=alaw
allow=ulaw
[7339]
type=user
context=mainmenu

add auth=md5 to both sides (user and peer)

Next create a PTT-DiD with the number 30182849 - you will use this trunk to do your inbound routing.

Er... That's it.

Best

There is one addition (which you didn’t tell us in your posts) which is that this carrier account only works with g729 so you need to add allow=g729 to your user entry. Also, we didn't bother with md5 and it worked OK.  N.B. Don't forget to set up the PTT_DiD trunk or it won't work

Your registration string should look like this…

username:password@gw3.austechpartnerships.com

Here is a loop call (out and back in) using your account on one of our test systems…

Code: [Select]
    -- Executing [980730182849@internal:1] AGI("SIP/4001-08fc8e90", "selintra|OutCluster|980730182849") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script selintra completed, returning 0
    -- Executing [980730182849@default:1] AGI("SIP/4001-08fc8e90", "selintra|OutTrunk|7339") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script Executing Application: (MixMonitor) Options: (0730182849-4001-1214282783.wav|b)
  == Begin MixMonitor Recording SIP/4001-08fc8e90
    -- AGI Script Executing Application: (Dial) Options: (IAX2/7339@peer7339/0730182849)
    -- Called 7339@peer7339/0730182849
    -- Call accepted by 59.154.183.70 (format g729)
    -- Format for call is g729
    -- IAX2/peer7339-6 is proceeding passing it to SIP/4001-08fc8e90
    -- Accepting UNAUTHENTICATED call from 59.154.183.70:
       > requested format = gsm,
       > requested prefs = (g729|ilbc|gsm),
       > actual format = g729,
       > host prefs = (),
       > priority = caller
    -- Executing [30182849@mainmenu:1] AGI("IAX2/peer7339-14", "selintra|Inbound|30182849") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script Executing Application: (MixMonitor) Options: (30182849-0730182849-1214282784.wav|b)
  == Begin MixMonitor Recording IAX2/peer7339-14
    -- AGI Script selintra completed, returning 0
    -- Executing [4007@internal:1] AGI("IAX2/peer7339-14", "selintra|OutCluster|4007") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script selintra completed, returning 0
    -- Executing [4007@default:1] AGI("IAX2/peer7339-14", "selintra|InCall|") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script Executing Application: (Dial) Options: (SIP/4007|120|t)
    -- Called 4007
    -- SIP/4007-b7c06c88 is ringing
    -- IAX2/peer7339-6 is ringing

You may be puzzled by the fact that the dialled number is preceeded by 98, this is because we used carrier pre-select to force the call over the austech channel.  Other than that it is vanilla.

Here is our iax.conf entry…

Code: [Select]
[peerxxxx]
type=peer
host=gw3.austechpartnerships.com
qualify=3000
canreinvite=no
username=xxxx
fromuser=xxxx
secret=xxxxxxxx
disallow=all
allow=g729
[xxxx]
type=user
context=mainmenu

the xxxx fields contain your account number (user-id) and the secret field your password.

I think that wraps it up.


« Last Edit: June 24, 2008, 07:04:49 AM by selintra »

Offline compsos

  • *
  • 472
  • +0/-0
Re: SAIL IAX Provider Setup
« Reply #16 on: June 24, 2008, 10:25:45 AM »
Hi S

Ok we have made a successful call in. The codec was certainly a problem but so was 1 new phone (operator 5000) that is, I think, suspect.
Resetting the Open Inbound Route and Closed Inbound Route to the working ext 5001 worked. I had previously set the "Operator"
to 5001 (global page) but that seems it was not enough to get the call to 5001.

Also putting "allow=g729" in anything other than the iax.conf header just simply disappeared on committing. Is that normal behaviour or am I just trying to put a square peg in a round hole?

On a restart I am still seeing the "Use of uninitialized value in string eq .....line 54" from the S55conf-asterisk file. But it does load and work.

Cheers
Regards

Gordon............

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: SAIL IAX Provider Setup
« Reply #17 on: June 24, 2008, 10:56:00 AM »
Quote
Also putting "allow=g729" in anything other than the iax.conf header just simply disappeared on committing. Is that normal behaviour or am I just trying to put a square peg in a round hole?

no, it should be OK if you put it immediately after the disallow=all.
What release of SAIL are you running?

Code: [Select]
Use of uninitialized value in string eq .....line 54
This is NOT an error.  Perl issues a warning on uninitialised fields being referenced.  The code is checking to see if the field is empty - all part of the plan.

best

s