OK, thaks for sending us your account details. It works as we described a couple of posts back…
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…
-- 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…
[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.