[asterisk-users] ​ Subject: Re: Incoming INVITE with Portability Info

2016-03-20 Thread Saint Michael
​My company http://prescott-clearwater.com/ is the largest provider of LRN
dips for Asterisk, via ODBC. I will be happy to help you dip any number,
from a few to 50 million per day.
​
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Incoming INVITE with Portability Info and LRN

2016-03-20 Thread Steve Edwards

On Sun, 20 Mar 2016, Trey Hilyard wrote:


On Mar 18, 2016 8:27 PM, "Steve Edwards"  wrote:
>>
>> On Fri, 18 Mar 2016, Trey Hilyard wrote:
>>
>>> I thought this would be as easy as
>>> exten => _XX\;rn=+1913663,1,Goto(from_pstn,${EXTEN:0:10})
>
>
> How about something like:
>
> [parse-lrn]
>         exten = _x.,1,                  verbose(1,[${EXTEN}@${CONTEXT}])
>         same = n,                       set(DID=${CUT(EXTEN,\;,1)})
>         same = n,                       set(LRN=${CUT(EXTEN,\;,2):3:12})
>         same = n,                       execif($["${LRN:0:1}" = 
"+"]?set(LRN=${LRN:1}))
>         same = n,                       execif($["${LRN:0:1}" = 
"1"]?set(LRN=${LRN:1}))
>         same = n,                       goto(${LRN},${DID},1)
>         same = n,                       hangup()

That's a good one. One thing it doesn't do is actually validate that the 
LRN is mine, but that shouldn't be tough to add now the the LRN is in 
its own variable. Thanks for the help!


If the LRN is not yours, you will not have a matching context so the 
goto() will run the invalid handler (the 'i' extension). You could play an 
appropriate message there.


--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
https://www.linkedin.com/in/steve-edwards-4244281-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Incoming INVITE with Portability Info and LRN

2016-03-20 Thread Trey Hilyard
On Mar 18, 2016 8:27 PM, "Steve Edwards"  wrote:
>>
>> On Fri, 18 Mar 2016, Trey Hilyard wrote:
>>
>>> I thought this would be as easy as
>>> exten => _XX\;rn=+1913663,1,Goto(from_pstn,${EXTEN:0:10})
>
>
> How about something like:
>
> [parse-lrn]
> exten = _x.,1,  verbose(1,[${EXTEN}@${CONTEXT}])
> same = n,   set(DID=${CUT(EXTEN,\;,1)})
> same = n,   set(LRN=${CUT(EXTEN,\;,2):3:12})
> same = n,   execif($["${LRN:0:1}" =
"+"]?set(LRN=${LRN:1}))
> same = n,   execif($["${LRN:0:1}" =
"1"]?set(LRN=${LRN:1}))
> same = n,   goto(${LRN},${DID},1)
> same = n,   hangup()

That's a good one. One thing it doesn't do is actually validate that the
LRN is mine, but that shouldn't be tough to add now the the LRN is in its
own variable. Thanks for the help!

>
> --
> Thanks in advance,
> -
> Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
> https://www.linkedin.com/in/steve-edwards-4244281
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>   http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] Dial()-Function

2016-03-20 Thread Dominique Haeber

Hi all! :)

I search a function or option for application Dail().


My situations:

I have two or more Dial()s with multiple devices (Handgroups).

Level1: Dial(SIP/device1,20)
Level2: Dial(SIP/device1/device2,20)
Level3: Dial(SIP/device1/device2/device3,20)

When in level one, no one accept the call until the timeout, they have a missed 
call on device.
When in level two, no one accept the call until the timeout, they have a missed 
call on device again.
If SIP/device3 accept the call, SIP/device1 has two missed calls and 
SIP/device2 has one missed call.

If on the same level anyone accept the call, the other in the same level get 
"Call complered elsewhere". (That's okay)

If i use option "c" for Dial() in any case asterisk send "Call completed 
elsewhere". 
Also if the Caller hangup during ringing/cancel the call.


What i need:

On timeout: "Call completed elsewhere"  (this is with option "c")
If any other in the same level accept the call: "Call completed elsewhere" 
(Thats normal) 

And special, if the caller cancel the call during ringing: "Missed Call" (This 
is without option "c")
But i need this behavior with option c, cause on timeout i need a "Call 
completed elsewhere".

How can I achieve this?

Sincerely,
Dominique

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users