atefsaeed2010 / datacard

Automatically exported from code.google.com/p/datacard
Other
0 stars 1 forks source link

incoming DID #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If Number is set in SIM card, then set DID (for incoming calls) to Number. 

This way, a better dialplan for incoming calls can be made...

Perhaps, if Number is not set, then DID can be IMSI or IMEI or whatever...

Original issue reported on code.google.com by pag...@gmail.com on 4 Dec 2010 at 1:11

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks, take a look later

Original comment by bg_...@mail.ru on 5 Dec 2010 at 5:40

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
upload in  r84

Original comment by bg_...@mail.ru on 7 Dec 2010 at 2:51

GoogleCodeExporter commented 9 years ago

Original comment by bg_...@mail.ru on 7 Dec 2010 at 2:52

GoogleCodeExporter commented 9 years ago
ok, working as expected...  as always very good ;)

Original comment by pag...@gmail.com on 7 Dec 2010 at 9:31