Closed GoogleCodeExporter closed 9 years ago
Sorry, I do not fully understand you proposal.
"Number" mean Subscriber number or "Caller ID" ?
What you mean DID number?
Identification of incoming line ?
In any case mix IMSI, IMEI, Subscriber number in one field bad idea.
Original comment by bg_...@mail.ru
on 4 Dec 2010 at 2:26
I mean,
test*CLI> datacard show devices
and take Number field. This is Subscriber number... so when a call arrives, set
DID for this call to Number. This way we can use dialplan like this:
[from-modems]
exten => 0034699112233,1,Noop(incoming call from modem1)
exten => 0034699112233,n, Goto(context1)
or
exten => 0034699112234,1,Noop(incoming call from modem2)
exten => 0034699112234,n, Goto(context2)
If Number column is "unknown", IMSI can be used instead...
Original comment by pag...@gmail.com
on 4 Dec 2010 at 2:34
more specifically, ${EXTEN} and ${CALLERID(dnid)} should be set to Number field
during incoming calls...
Original comment by pag...@gmail.com
on 4 Dec 2010 at 2:45
ok declaration is
exten = extension,priority,Command(parameters)
and extension mean 'called number' or template and can be also in form
called/callerID
Useful feature to start context from selected extension not only from default
's'
Original comment by bg_...@mail.ru
on 4 Dec 2010 at 3:02
A proposal:
Digium's developer Mr. Odicha, made some efforts with this using libgsmat from
junghans. Some ideas from his job
(http://asterisk-es-rsp.irontec.com/svn/asterisk-es-rsp/team/Odicha/rsp_gsm/aste
risk/patches/gsmat.patch):
/etc/asterisk/datacard.conf
[datacard0]
exten = +34699112233
If field Number (datacard show devices) is 'Unknown' and 'exten' (from
datacard.conf)is not null, then ${EXTEN} and CALLERID(dnid) should be set to
'exten'.
If field Number (datacard show devices) is 'Unknown' and 'exten' (from
datacard.conf) is null, then ${EXTEN} and CALLERID(dnid) should be set to 's'.
If field Number (datacard show devices) is NOT 'Unknown' then ${EXTEN} and
CALLERID(dnid) should be set to 'Number'.
Original comment by pag...@gmail.com
on 5 Dec 2010 at 1:43
[deleted comment]
Thanks, take a look later
Original comment by bg_...@mail.ru
on 5 Dec 2010 at 5:40
I prepare code for run pbx from exten equal of subscriber number or 's' if not
set.
User may be upset of many complains like
== Starting Datacard/datacard0-0100000000 at datacard,NUM,1 failed so falling back to exten 's'
Original comment by bg_...@mail.ru
on 6 Dec 2010 at 11:49
ok, let's wait...
Any way, regarding falling to exten 's', I think this is correct, because
incoming dialplan should be contain right code to handle your scenario...
Original comment by pag...@gmail.com
on 7 Dec 2010 at 12:27
upload in r84
Original comment by bg_...@mail.ru
on 7 Dec 2010 at 2:51
Original comment by bg_...@mail.ru
on 7 Dec 2010 at 2:52
ok, working as expected... as always very good ;)
Original comment by pag...@gmail.com
on 7 Dec 2010 at 9:31
Original issue reported on code.google.com by
pag...@gmail.com
on 4 Dec 2010 at 1:11