asterisk2billing.org
http://forum.asterisk2billing.org/

IP Dial GSM Adapter with A2Billing
http://forum.asterisk2billing.org/viewtopic.php?f=23&t=7187
Page 1 of 1

Author:  ciconet [ Thu Feb 25, 2010 8:51 am ]
Post subject:  IP Dial GSM Adapter with A2Billing

Hello guy

i want to say if there are any other solution for my scenario.

I've this :

I use one sim IP Dialer, like a v400. This dialer make this:

i call for example 123456 from my mobile phone, adapter simply add one number before ( access number on asterisk 55555 ) and than after 1 or 2 sec dial real number 123456.

In a2billing i config this scenario and all work fine. But i have more delay after ip dialer send dtmf tone to a2billing

My question is:

1) can i config this scenario without ask pin number in a2billing ?
If i try to set use DNID = YES, a2billing alway call access number from ip dialer ( 55555 ) and never my real number 123456.
So, i need a2billing don't call DNID, but next number 123456 that ip dialer give after 1 or 2 sec.

2) if i set to ask to enter pin number, i already set auth by CID, and all work fine. But is very delayed from ip dialer dtmf send to have any ringback ( 10 sec )

Can you suggest any other solution for make calls fastly ?

Thanks for your support

Alex - from Italy

Author:  jroper [ Thu Feb 25, 2010 9:11 am ]
Post subject:  Re: IP Dial GSM Adapter with A2Billing

Hi

I use a dialplan like this:-

Code:
[a2billing-disa]
exten => _x.,1,DISA(no-password,a2billing-agiconf1)

[a2billing-agiconf1]
exten => _x.,1,DeadAGI(a2billing.php|1)
exten => _x.,n,Hangup()


This presents secondary dialtone, then when the number is complete, then it passes the call into a2billing-agiconf1 where you need use_dnid = yes, and set the system to recognise the caller ID in agi-conf 1, to speed it up, see if the dialing software can add a # after the last digit.

Joe

Author:  ciconet [ Thu Feb 25, 2010 10:21 am ]
Post subject:  Re: IP Dial GSM Adapter with A2Billing

Hello jroper

i try to use this your dialplan.

Now, i hear free tone, secondary dialtone ( ready to put number to call ) and my ip dialer send DTMF ( with real number 123456 )
But after DTMF are sent, a2billing seems to wait other things and i can hear a busy tone on my mobile.

I'm sure ip dialer send DTMF with #
In my agi-conf i set USE_DNDID=yes
And system ( agi-conf) already auth trought Caller ID

Where i wrong ? :?:

Author:  ciconet [ Thu Feb 25, 2010 10:53 am ]
Post subject:  Re: IP Dial GSM Adapter with A2Billing

i've this:

-- Executing [55555@from-trunk:1] Set("SIP/5060-09194cd8", "__FROM_DID=55555") in new stack
-- Executing [55555@from-trunk:2] Gosub("SIP/5060-09194cd8", "app-blacklist-check|s|1") in new stack
-- Executing [s@app-blacklist-check:1] LookupBlacklist("SIP/5060-09194cd8", "") in new stack
-- Executing [s@app-blacklist-check:2] GotoIf("SIP/5060-09194cd8", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/5060-09194cd8", "") in new stack
-- Executing [55555@from-trunk:3] ExecIf("SIP/5060-09194cd8", "1 |Set|CALLERID(name)=654321") in new stack
-- Executing [55555@from-trunk:4] Set("SIP/5060-09194cd8", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [55555@from-trunk:5] SetCallerPres("SIP/5060-09194cd8", "allowed_not_screened") in new stack
-- Executing [55555@from-trunk:6] Goto("SIP/5060-09194cd8", "custom-cellulari|s|1") in new stack
-- Goto (custom-cellulari,s,1)
-- Executing [s@custom-cellulari:1] DISA("SIP/5060-09194cd8", "no-password|a2billing-agiconf5") in new stack
Here, IpDial send DTMF tone
== Spawn extension (custom-cellulari, s, 1) exited non-zero on 'SIP/5060-09194cd8'


I think don't go in a2billing-agiconf5.


55555 is the access number set into IpDialer.
654321 is my mobile number

Author:  jroper [ Thu Feb 25, 2010 11:02 am ]
Post subject:  Re: IP Dial GSM Adapter with A2Billing

Are you using a catchall in FreePBX, if so, change the DID from blank to _.

Joe

Author:  ciconet [ Thu Feb 25, 2010 3:28 pm ]
Post subject:  Re: IP Dial GSM Adapter with A2Billing

Can you explain me, please, what i do for set catchall in freepbx ?

Thanks again

Alex

Author:  jroper [ Thu Feb 25, 2010 3:33 pm ]
Post subject:  Re: IP Dial GSM Adapter with A2Billing

See the logs

Code:
-- Executing [55555@from-trunk:6] Goto("SIP/5060-09194cd8", "custom-cellulari|s|1") in new stack
-- Goto (custom-cellulari,s,1)
-- Executing [s@custom-cellulari:1] DISA("SIP/5060-09194cd8", "no-password|a2billing-agiconf5") in new stack
Here, IpDial send DTMF tone
== Spawn extension (custom-cellulari, s, 1) exited non-zero on 'SIP/5060-09194cd8'


In particular, do you see how you are sending calls into the "s" extension each time - and because your extension pattern matches on _x. s does not match to _x. so the call fails.

Stop sending the call to s, and start sending to a proper extension number, and you may have more joy.

Joe

Author:  ciconet [ Thu Feb 25, 2010 5:10 pm ]
Post subject:  Re: IP Dial GSM Adapter with A2Billing

This mean to modify Custom Destination in freePBX.

When incoming call arrive to number 55555, i redirect into Custom Destination -> custom-cellulari,s,1

now there is ( as a Custom Destination): custom-cellulari,s,1

need to be changed how ?
custom-cellulari,_x. ?

Author:  jroper [ Thu Feb 25, 2010 5:17 pm ]
Post subject:  Re: IP Dial GSM Adapter with A2Billing

custom-cellulari,${EXTEN},1

Author:  ciconet [ Thu Feb 25, 2010 5:33 pm ]
Post subject:  Re: IP Dial GSM Adapter with A2Billing

Woow !! Now work fine !

Thanks very mutch for your help ! You're the best

Alex

Author:  thepossum [ Thu Jun 17, 2010 6:09 pm ]
Post subject:  Re: IP Dial GSM Adapter with A2Billing

We would also like to set something similar -- our current setup (a2billing 1.7.1) works, inbound calls to our Trixbox for a specific DID are getting correctly routed to a specific a2billing user. However, this only happens if I explicitly set the "DID Number" for the Incoming Route. It would be soooo much simpler to leave that field as blank ("ANY DID"). ie. anything we're not otherwise explicitly using for our Trixbox extensions, route through to a2billing.

Technically it's doing that, but it then can't figure out where to go. I see in the logs that the working config shows this:

Goto (a2billing-did,DDDDDDDDDD,1)

(where DDDDDDDDDD is the incoming DID), and that when I leave it blank for "ANY DID" this gets logged instead:

Goto (a2billing-did,s,1)

This is with the documented "Custom Destination" set to "a2billing-did,${EXTEN},1" on the Trixbox.

Is there any way to tweak Trixbox so that it sends the DID through instead of "s" for the catchall? This would be oh so very helpful, because it's just one more step prone to human error. And it would also save our sales staff from needing to know the Trixbox admin password, and/or pestering the admin each and every time a new customer gets added.

Author:  jroper [ Thu Jun 17, 2010 6:10 pm ]
Post subject:  Re: IP Dial GSM Adapter with A2Billing

yes, change blank for _. in the DID field in inbound routes

Joe

Author:  thepossum [ Thu Jun 17, 2010 6:49 pm ]
Post subject:  Re: IP Dial GSM Adapter with A2Billing

jroper wrote:
yes, change blank for _. in the DID field in inbound routes


To clarify this for everybody else trying to get this to work too, that is "underscore period" and not some kind of funky &html; typo. ;-)

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/