Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Understanding Incoming sip DID handling


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
JCasale at activenetwe...
Guest





PostPosted: Mon May 19, 2008 1:12 pm    Post subject: [asterisk-users] Understanding Incoming sip DID handling Reply with quote

Hi,
What is the method (preferred) way Asterisk handles the incoming
sip lines? I am currently trying to setup two lines, one has
unlimited in/out channels and the other phone number has only two.

The provider has given a macro that manages dialing out on the two
possible servers.

Would I match on phone number to decide where to send it? Both lines
can originate from two different servers so matching by IP wouldn't
help as both share either/or server.

Thanks!
jlc
Back to top
sherwood.mcgowan at gm...
Guest





PostPosted: Mon May 19, 2008 1:26 pm    Post subject: [asterisk-users] Understanding Incoming sip DID handling Reply with quote

Joseph L. Casale wrote:
Quote:
Hi,
What is the method (preferred) way Asterisk handles the incoming
sip lines? I am currently trying to setup two lines, one has
unlimited in/out channels and the other phone number has only two.

The provider has given a macro that manages dialing out on the two
possible servers.

Would I match on phone number to decide where to send it? Both lines
can originate from two different servers so matching by IP wouldn't
help as both share either/or server.

Thanks!
jlc

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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

Yes, in your dialplan you should have one extension set up for the first
number and where to send it, and a second for the other.
Back to top
JCasale at activenetwe...
Guest





PostPosted: Mon May 19, 2008 1:47 pm    Post subject: [asterisk-users] Understanding Incoming sip DID handling Reply with quote

Quote:
Yes, in your dialplan you should have one extension set up for the first
number and where to send it, and a second for the other.

So, if the sip.conf config sends the did into the [incoming] context
and its phone number is 555-1212, would this be the right way:

exten => 5551212,1,`Do Something` ?

How do I elegantly write something to catch the area code, if the number dialed was
1-xxx-555-1212? Or does the incoming number from my sip provider always show up to me
as an 11 digit number:

exten => 19495551212,1,`Do Something` for example?

If that sip account turfed the call into a custom context, [incoming_1] and nothing else
entered it (the other line went its own, [incoming_2], I suppose I could just write:

exten => s,1,`Do Something` which eliminates this question?

Thanks for all the guidance!
jlc
Back to top
asterisk.org at sedwar...
Guest





PostPosted: Mon May 19, 2008 2:00 pm    Post subject: [asterisk-users] Understanding Incoming sip DID handling Reply with quote

On Mon, 19 May 2008, Joseph L. Casale wrote:

Quote:
How do I elegantly write something to catch the area code, if the number dialed was
1-xxx-555-1212? Or does the incoming number from my sip provider always show up to me
as an 11 digit number:

exten => 19495551212,1,`Do Something` for example?

I always get 10 digits from my providers. You can define an exact or (as
below) a matching pattern.

Quote:
If that sip account turfed the call into a custom context, [incoming_1] and nothing else
entered it (the other line went its own, [incoming_2], I suppose I could just write:

exten => s,1,`Do Something` which eliminates this question?

exten = _x.,1, playback(demo-congrats)
exten = _x.,n, hangup

Thanks in advance,
------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
Back to top
jsignorello at ispbx.com
Guest





PostPosted: Mon May 19, 2008 2:01 pm    Post subject: [asterisk-users] Understanding Incoming sip DID handling Reply with quote

You have DID1 on sip trunk 1 (unlimited channels)

You have DID2 on sip trunk 2 (restricted channels)

You want all you outgoing traffic to go out sip trunk 1

==

Sherwood McGowan wrote:
Quote:
Joseph L. Casale wrote:

Quote:
Hi,
What is the method (preferred) way Asterisk handles the incoming
sip lines? I am currently trying to setup two lines, one has
unlimited in/out channels and the other phone number has only two.

The provider has given a macro that manages dialing out on the two
possible servers.

Would I match on phone number to decide where to send it? Both lines
can originate from two different servers so matching by IP wouldn't
help as both share either/or server.

Thanks!
jlc

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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


Yes, in your dialplan you should have one extension set up for the first
number and where to send it, and a second for the other.

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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


--

John Signorello
Managing Partner
ISPBX LLC

Bus: 866 GO ISPBX ext 2000
Dir: 973-841-2061
Cell: 973-534-0888

http://ispbx.com
http://cogoblue.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080519/259ca7d5/attachment.htm
Back to top
sherwood.mcgowan at gm...
Guest





PostPosted: Mon May 19, 2008 3:14 pm    Post subject: [asterisk-users] Understanding Incoming sip DID handling Reply with quote

Joseph L. Casale wrote:
Quote:
Quote:
Yes, in your dialplan you should have one extension set up for the first
number and where to send it, and a second for the other.


So, if the sip.conf config sends the did into the [incoming] context
and its phone number is 555-1212, would this be the right way:

exten => 5551212,1,`Do Something` ?

How do I elegantly write something to catch the area code, if the number dialed was
1-xxx-555-1212? Or does the incoming number from my sip provider always show up to me
as an 11 digit number:

exten => 19495551212,1,`Do Something` for example?


It depends on how you receive the called number, it should be as either
a 10 or 11 digit number from your SIP provider. Match accordingly. Most
probably it's a 10 digit number.

Quote:
If that sip account turfed the call into a custom context, [incoming_1] and nothing else
entered it (the other line went its own, [incoming_2], I suppose I could just write:

exten => s,1,`Do Something` which eliminates this question?

Thanks for all the guidance!
jlc


That's probably the easiest thing to do, catch the number and direct
each one to their own context. You could direct them with
Goto(context1,${EXTEN},1) and then do
[context1]
exten => _X.,1,DoSomething

or you could use your idea, Goto(context1,s,1) with the definition as such:
[context1]
exten => s,1,DoSomething

However, I like to keep the extension connected with the number that was
requested for as long as possible.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services