Re: [asterisk-users] Calling Line Identity - any ideas

2010-08-22 Thread Paddy Grice
Hi All
 
Thanks for the pointers - I now have a working solution using local channels
and for the few occasions this needs to happen, about 300 calls in the
20,000 we handle each day I am very happy.
 
Again thanks for you help
 
Paddy


  _  

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Nasir Iqbal
Sent: 22 August 2010 05:23
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Calling Line Identity - any ideas


In simple words , Paddy should go  with my trick,  that is  what i got from
this reply  


Regards



On Sat, Aug 21, 2010 at 5:14 AM, Sherwood McGowan
sherwood.mcgo...@gmail.com wrote:


Nasir Iqbal na...@ictinnovations.com wrote:

 With all honor and respect you deserve,  Do  I need your permission to
  express my point of view  on community forum ?
 also it would be quiet helpful for us if you understand well
 the requirement of post

*snip*

Nasir,
You don't need my permission to post on a public forum...However,
neither do I, and I took issue with what you said, and found that your
comment about those who are dealing with high load traffic
offensive, since it made the assumption that I was just some new guy
who deals with hobby/small Asterisk systems and doesn't know what he's
talking aboutTherefore, I made it abundantly clear that I wasn't,
and that I definitely took issue with that statement.

However, I will say that yes, I did mis-take something the OP said...

Paddy:
Now, here's idea I came up with (haven't tested yet, too busy writing
a system for an international interpretation company's telecom needs)

First of all, you should have a separate context for outbound calls
made by internal extensions... so, in THAT context have code to set
the CID to what you wish (you can do logic control and if you're
feeling spiffy you can even lookup what CLID to use based on the
extension making the call).

Second, calls that are being passed from the outside world onto should
pass through a different context, performing pretty much the same
function...

Third, both of THOSE contexts should then pass to a third context that
performs the dialout using the multiple targets...


Let me know if that works...I know I can make this do what you want,
but I'm not trying to do all the work, just point you in a direction,
since I get paid to actually do the work ;-)


Cheers all, and remember, some of us have been doing this a while, and
get grumpy... ;-)

   there's still no conceivable reason
  What can be? except performance! (as asterisk has to create one
  additional leg and bridge it) Which is very conceivable to those who
  are dealing with high load traffic.
  And what will be the option, if other outgoing call requires
  different
  custom CLI while using the same trunk?




  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
 
 
  First, the reason is, why use a BAD IDEA when there's perfectly good
  solutions in front of the user There was no mention on this ONE
  call
  going outbound over the trunk needing a different CID...the request
  was as
  follows:
 
  Client needs to call an INTERNAL extension, where the INTERNAL
  CallerID will
  be used, and at the SAME TIME, a call to an EXTERNAL number (which
  would
  necessitate USING THEIR PROVIDER TRUNK), using the EXTERNAL
  CallerID
 
  Now, p-lease tell me how just configuring the damned trunk's
  outbound CID is
  NOT more sensible, efficient, and just friggin' COMMON SENSE TO START
  WITH...over using a Local channel call, which would require slightly
  more
  typing, and using something that I've almost NEVER found a good
  reason to
  use, and if you'd care to search the damn archives, you'll see that
  I was
  pushing upwards of 5k CONCURRENT CALLS back in 2005, WITH 1.4 Trunk
  and the
  RealTime addiiton (which was experimental)...
 
  For the love of whatever you find holy and good and true...don't
  come at me
  like that...I'm really not in the mood anymore...I put 3-4 solid
  years of
  helpjng newbies figure out why shit didn't work, reporting REAL bugs
  and
  issues to thew developers and even assisting with some of the
  fixesI
  feel entitled (yes, I know that's an asshole thing to say) to a little
  common respect
 
 
  Now...anyone for a pint? I'm off to vent some frustration with
  people who
  jump on the WRONG bandwagon and try to take over
 
  Sherwood Mother-F'in' McGowanb...
  Telecommunications and Tattooing
  You konw anyone else who combines those two professions? I'd like to
  buy
  that guy a drink!
 
 
 
  --
  _
  -- Bandwidth and Colocation Provided by http://www.api-digital.com --
  New to Asterisk? Join us for a live

Re: [asterisk-users] Calling Line Identity - any ideas

2010-08-21 Thread Nasir Iqbal
In simple words , Paddy should go  with my trick,  that is  what i got from
this reply

Regards


On Sat, Aug 21, 2010 at 5:14 AM, Sherwood McGowan 
sherwood.mcgo...@gmail.com wrote:

 Nasir Iqbal na...@ictinnovations.com wrote:
  With all honor and respect you deserve,  Do  I need your permission to
   express my point of view  on community forum ?
  also it would be quiet helpful for us if you understand well
  the requirement of post
 *snip*

 Nasir,
 You don't need my permission to post on a public forum...However,
 neither do I, and I took issue with what you said, and found that your
 comment about those who are dealing with high load traffic
 offensive, since it made the assumption that I was just some new guy
 who deals with hobby/small Asterisk systems and doesn't know what he's
 talking aboutTherefore, I made it abundantly clear that I wasn't,
 and that I definitely took issue with that statement.

 However, I will say that yes, I did mis-take something the OP said...

 Paddy:
 Now, here's idea I came up with (haven't tested yet, too busy writing
 a system for an international interpretation company's telecom needs)

 First of all, you should have a separate context for outbound calls
 made by internal extensions... so, in THAT context have code to set
 the CID to what you wish (you can do logic control and if you're
 feeling spiffy you can even lookup what CLID to use based on the
 extension making the call).

 Second, calls that are being passed from the outside world onto should
 pass through a different context, performing pretty much the same
 function...

 Third, both of THOSE contexts should then pass to a third context that
 performs the dialout using the multiple targets...


 Let me know if that works...I know I can make this do what you want,
 but I'm not trying to do all the work, just point you in a direction,
 since I get paid to actually do the work ;-)


 Cheers all, and remember, some of us have been doing this a while, and
 get grumpy... ;-)
there's still no conceivable reason
   What can be? except performance! (as asterisk has to create one
   additional leg and bridge it) Which is very conceivable to those who
   are dealing with high load traffic.
   And what will be the option, if other outgoing call requires
   different
   custom CLI while using the same trunk?



   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
  
  
   First, the reason is, why use a BAD IDEA when there's perfectly good
   solutions in front of the user There was no mention on this ONE
   call
   going outbound over the trunk needing a different CID...the request
   was as
   follows:
  
   Client needs to call an INTERNAL extension, where the INTERNAL
   CallerID will
   be used, and at the SAME TIME, a call to an EXTERNAL number (which
   would
   necessitate USING THEIR PROVIDER TRUNK), using the EXTERNAL
   CallerID
  
   Now, p-lease tell me how just configuring the damned trunk's
   outbound CID is
   NOT more sensible, efficient, and just friggin' COMMON SENSE TO START
   WITH...over using a Local channel call, which would require slightly
   more
   typing, and using something that I've almost NEVER found a good
   reason to
   use, and if you'd care to search the damn archives, you'll see that
   I was
   pushing upwards of 5k CONCURRENT CALLS back in 2005, WITH 1.4 Trunk
   and the
   RealTime addiiton (which was experimental)...
  
   For the love of whatever you find holy and good and true...don't
   come at me
   like that...I'm really not in the mood anymore...I put 3-4 solid
   years of
   helpjng newbies figure out why shit didn't work, reporting REAL bugs
   and
   issues to thew developers and even assisting with some of the
   fixesI
   feel entitled (yes, I know that's an asshole thing to say) to a little
   common respect
  
  
   Now...anyone for a pint? I'm off to vent some frustration with
   people who
   jump on the WRONG bandwagon and try to take over
  
   Sherwood Mother-F'in' McGowanb...
   Telecommunications and Tattooing
   You konw anyone else who combines those two professions? I'd like to
   buy
   that guy a drink!
  
  
  
   --
   _
   -- 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 

Re: [asterisk-users] Calling Line Identity - any ideas

2010-08-20 Thread Sherwood McGowan
Paddy,

I believe I have a solution, let me sober a bit ;) and rum it through  
(typo not intended but funny) my test server to doublecheck

Sent from my iPhone

On Aug 20, 2010, at 12:20 AM, Paddy Grice pa...@wizaner.com wrote:

 Hi Sherwood

 I actually do want dynamic CLID as I tried to make clearer

 I don't know if this makes it any clearer -

 An internal call from Ext123 should send 123 as the CLID to SIP/ 
 Ext400
 but should
 send 442071110123 to SIP/TheWorld but an external call from
 44123455667788 should
 send the received CLID 44123455667788 to both.

 So over the provider connection the CLID will be different for  
 different
 calls. Setting the main office number in sip.conf is fine as a  
 default but
 as the code/dialplan needs to set cli for some calls I actually set  
 CLID for
 all calls. This setting and onward transmission by provider works  
 fine.

 So what I am trying to do is call 2 different sip endpoints AT THE  
 SAME TIME
 presenting different AND VARIABLE CLIs. If Nasir's trick is not  
 recommended
 what is the best way to achieve this.

 As a newbie to Asterisk advise and best practice gained from user  
 experience
 is always welcome.

 Paddy




 -Original Message-
 From: asterisk-users-boun...@lists.digium.com
 [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Sherwood
 McGowan
 Sent: 20 August 2010 04:58
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 Subject: Re: [asterisk-users] Calling Line Identity - any ideas

 On Thu, Aug 19, 2010 at 7:46 PM, Nasir Iqbal  
 na...@ictinnovations.com
 wrote:
 Hi,
  there's still no conceivable reason
 What can be? except performance! (as asterisk has to create one
 additional leg and bridge it) Which is very conceivable to those who
 are dealing with high load traffic.
 And what will be the option, if other outgoing call requires  
 different
 custom CLI while using the same trunk?
 Regards
 --
 Nasir Iqbal

 ICT Innovations
 http://www.ictinnovations.com/


 --
 _
 -- 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


 First, the reason is, why use a BAD IDEA when there's perfectly good
 solutions in front of the user There was no mention on this ONE  
 call
 going outbound over the trunk needing a different CID...the request  
 was as
 follows:

 Client needs to call an INTERNAL extension, where the INTERNAL  
 CallerID will
 be used, and at the SAME TIME, a call to an EXTERNAL number (which  
 would
 necessitate USING THEIR PROVIDER TRUNK), using the EXTERNAL  
 CallerID

 Now, p-lease tell me how just configuring the damned trunk's  
 outbound CID is
 NOT more sensible, efficient, and just friggin' COMMON SENSE TO START
 WITH...over using a Local channel call, which would require slightly  
 more
 typing, and using something that I've almost NEVER found a good  
 reason to
 use, and if you'd care to search the damn archives, you'll see that  
 I was
 pushing upwards of 5k CONCURRENT CALLS back in 2005, WITH 1.4 Trunk  
 and the
 RealTime addiiton (which was experimental)...

 For the love of whatever you find holy and good and true...don't  
 come at me
 like that...I'm really not in the mood anymore...I put 3-4 solid  
 years of
 helpjng newbies figure out why shit didn't work, reporting REAL bugs  
 and
 issues to thew developers and even assisting with some of the  
 fixesI
 feel entitled (yes, I know that's an asshole thing to say) to a little
 common respect


 Now...anyone for a pint? I'm off to vent some frustration with  
 people who
 jump on the WRONG bandwagon and try to take over

 Sherwood Mother-F'in' McGowanb...
 Telecommunications and Tattooing
 You konw anyone else who combines those two professions? I'd like to  
 buy
 that guy a drink!



 -- 
 _
 -- 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


Re: [asterisk-users] Calling Line Identity - any ideas

2010-08-20 Thread Nasir Iqbal
With all honor and respect you deserve,  Do  I need your permission to
 express my point of view  on community forum ?

also it would be quiet helpful for us if you understand well
the requirement of post

Regards

On Fri, Aug 20, 2010 at 1:34 PM, Sherwood McGowan 
sherwood.mcgo...@gmail.com wrote:

 Paddy,

 I believe I have a solution, let me sober a bit ;) and rum it through
 (typo not intended but funny) my test server to doublecheck

 Sent from my iPhone

 On Aug 20, 2010, at 12:20 AM, Paddy Grice pa...@wizaner.com wrote:

  Hi Sherwood
 
  I actually do want dynamic CLID as I tried to make clearer
 
  I don't know if this makes it any clearer -
 
  An internal call from Ext123 should send 123 as the CLID to SIP/
  Ext400
  but should
  send 442071110123 to SIP/TheWorld but an external call from
  44123455667788 should
  send the received CLID 44123455667788 to both.
 
  So over the provider connection the CLID will be different for
  different
  calls. Setting the main office number in sip.conf is fine as a
  default but
  as the code/dialplan needs to set cli for some calls I actually set
  CLID for
  all calls. This setting and onward transmission by provider works
  fine.
 
  So what I am trying to do is call 2 different sip endpoints AT THE
  SAME TIME
  presenting different AND VARIABLE CLIs. If Nasir's trick is not
  recommended
  what is the best way to achieve this.
 
  As a newbie to Asterisk advise and best practice gained from user
  experience
  is always welcome.
 
  Paddy
 
 
 
 
  -Original Message-
  From: asterisk-users-boun...@lists.digium.com
  [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Sherwood
  McGowan
  Sent: 20 August 2010 04:58
  To: Asterisk Users Mailing List - Non-Commercial Discussion
  Subject: Re: [asterisk-users] Calling Line Identity - any ideas
 
  On Thu, Aug 19, 2010 at 7:46 PM, Nasir Iqbal
  na...@ictinnovations.com
  wrote:
  Hi,
   there's still no conceivable reason
  What can be? except performance! (as asterisk has to create one
  additional leg and bridge it) Which is very conceivable to those who
  are dealing with high load traffic.
  And what will be the option, if other outgoing call requires
  different
  custom CLI while using the same trunk?
  Regards
  --
  Nasir Iqbal
 
  ICT Innovations
  http://www.ictinnovations.com/
 
 
  --
  _
  -- 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
 
 
  First, the reason is, why use a BAD IDEA when there's perfectly good
  solutions in front of the user There was no mention on this ONE
  call
  going outbound over the trunk needing a different CID...the request
  was as
  follows:
 
  Client needs to call an INTERNAL extension, where the INTERNAL
  CallerID will
  be used, and at the SAME TIME, a call to an EXTERNAL number (which
  would
  necessitate USING THEIR PROVIDER TRUNK), using the EXTERNAL
  CallerID
 
  Now, p-lease tell me how just configuring the damned trunk's
  outbound CID is
  NOT more sensible, efficient, and just friggin' COMMON SENSE TO START
  WITH...over using a Local channel call, which would require slightly
  more
  typing, and using something that I've almost NEVER found a good
  reason to
  use, and if you'd care to search the damn archives, you'll see that
  I was
  pushing upwards of 5k CONCURRENT CALLS back in 2005, WITH 1.4 Trunk
  and the
  RealTime addiiton (which was experimental)...
 
  For the love of whatever you find holy and good and true...don't
  come at me
  like that...I'm really not in the mood anymore...I put 3-4 solid
  years of
  helpjng newbies figure out why shit didn't work, reporting REAL bugs
  and
  issues to thew developers and even assisting with some of the
  fixesI
  feel entitled (yes, I know that's an asshole thing to say) to a little
  common respect
 
 
  Now...anyone for a pint? I'm off to vent some frustration with
  people who
  jump on the WRONG bandwagon and try to take over
 
  Sherwood Mother-F'in' McGowanb...
  Telecommunications and Tattooing
  You konw anyone else who combines those two professions? I'd like to
  buy
  that guy a drink!
 
 
 
  --
  _
  -- 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

Re: [asterisk-users] Calling Line Identity - any ideas

2010-08-20 Thread Sherwood McGowan
Nasir Iqbal na...@ictinnovations.com wrote:
 With all honor and respect you deserve,  Do  I need your permission to
  express my point of view  on community forum ?
 also it would be quiet helpful for us if you understand well
 the requirement of post
*snip*

Nasir,
You don't need my permission to post on a public forum...However,
neither do I, and I took issue with what you said, and found that your
comment about those who are dealing with high load traffic
offensive, since it made the assumption that I was just some new guy
who deals with hobby/small Asterisk systems and doesn't know what he's
talking aboutTherefore, I made it abundantly clear that I wasn't,
and that I definitely took issue with that statement.

However, I will say that yes, I did mis-take something the OP said...

Paddy:
Now, here's idea I came up with (haven't tested yet, too busy writing
a system for an international interpretation company's telecom needs)

First of all, you should have a separate context for outbound calls
made by internal extensions... so, in THAT context have code to set
the CID to what you wish (you can do logic control and if you're
feeling spiffy you can even lookup what CLID to use based on the
extension making the call).

Second, calls that are being passed from the outside world onto should
pass through a different context, performing pretty much the same
function...

Third, both of THOSE contexts should then pass to a third context that
performs the dialout using the multiple targets...


Let me know if that works...I know I can make this do what you want,
but I'm not trying to do all the work, just point you in a direction,
since I get paid to actually do the work ;-)


Cheers all, and remember, some of us have been doing this a while, and
get grumpy... ;-)
   there's still no conceivable reason
  What can be? except performance! (as asterisk has to create one
  additional leg and bridge it) Which is very conceivable to those who
  are dealing with high load traffic.
  And what will be the option, if other outgoing call requires
  different
  custom CLI while using the same trunk?



  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
 
 
  First, the reason is, why use a BAD IDEA when there's perfectly good
  solutions in front of the user There was no mention on this ONE
  call
  going outbound over the trunk needing a different CID...the request
  was as
  follows:
 
  Client needs to call an INTERNAL extension, where the INTERNAL
  CallerID will
  be used, and at the SAME TIME, a call to an EXTERNAL number (which
  would
  necessitate USING THEIR PROVIDER TRUNK), using the EXTERNAL
  CallerID
 
  Now, p-lease tell me how just configuring the damned trunk's
  outbound CID is
  NOT more sensible, efficient, and just friggin' COMMON SENSE TO START
  WITH...over using a Local channel call, which would require slightly
  more
  typing, and using something that I've almost NEVER found a good
  reason to
  use, and if you'd care to search the damn archives, you'll see that
  I was
  pushing upwards of 5k CONCURRENT CALLS back in 2005, WITH 1.4 Trunk
  and the
  RealTime addiiton (which was experimental)...
 
  For the love of whatever you find holy and good and true...don't
  come at me
  like that...I'm really not in the mood anymore...I put 3-4 solid
  years of
  helpjng newbies figure out why shit didn't work, reporting REAL bugs
  and
  issues to thew developers and even assisting with some of the
  fixesI
  feel entitled (yes, I know that's an asshole thing to say) to a little
  common respect
 
 
  Now...anyone for a pint? I'm off to vent some frustration with
  people who
  jump on the WRONG bandwagon and try to take over
 
  Sherwood Mother-F'in' McGowanb...
  Telecommunications and Tattooing
  You konw anyone else who combines those two professions? I'd like to
  buy
  that guy a drink!
 
 
 
  --
  _
  -- 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



 --
 Nasir Iqbal

 ICT Innovations
 http://www.ictinnovations.com/


 --
 

[asterisk-users] Calling Line Identity - any ideas

2010-08-19 Thread Paddy Grice
Hi list

I have a requirement that I just don't know how to address - I don't think
its strange but can't find any pointers anywhere.

I have a user that wishes to have a multi phone divert. By that I mean 

calls made to his extension say Ext200 can be redirected to a different
extension say Ext400 and also to his home landline.

Doing the dial is fine using Dial(SIP/Ext400SIP/TheWorld/441234567890)

The problem is CLID - 

At the moment internal calls (Ext to Ext) show a CLID EXTxxx and External
Calls show the received CLID.

When the phone is redirected to both Internal and external numbers he wants
the correct CLI displayed on both phones.

So with the redirect operational 

1) a call from the outside world to his DID number will show the received
CLI(ANI) on both devices - this works
BUT 
2) a call from an office extension needs to show EXTxxx on the extension
(Ext400) but show the office telephone number on the landline 

so in pseudo code I want to do something like

Dial ( SIP/Ext400 using CLID EXT123  SIP/TheWorld/441234567890 using CLID
44112233445566 )

Any ideas ?

Paddy

-- 
_
-- 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] Calling Line Identity - any ideas

2010-08-19 Thread Paddy Grice
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Paddy Grice
Sent: 19 August 2010 08:21
To: asterisk-users@lists.digium.com
Subject: [asterisk-users] Calling Line Identity - any ideas



Hi list 

I have a requirement that I just don't know how to address - I don't think
its strange but can't find any pointers anywhere.

I have a user that wishes to have a multi phone divert. By that I mean 

calls made to his extension say Ext200 can be redirected to a different
extension say Ext400 and also to his home landline.

Doing the dial is fine using Dial(SIP/Ext400SIP/TheWorld/441234567890) 

The problem is CLID - 

At the moment internal calls (Ext to Ext) show a CLID EXTxxx and External
Calls show the received CLID. 

When the phone is redirected to both Internal and external numbers he wants
the correct CLI displayed on both phones. 

So with the redirect operational 

1) a call from the outside world to his DID number will show the received
CLI(ANI) on both devices - this works 
BUT 
2) a call from an office extension needs to show EXTxxx on the extension
(Ext400) but show the office telephone number on the landline 

so in pseudo code I want to do something like 

Dial ( SIP/Ext400 using CLID EXT123  SIP/TheWorld/441234567890 using CLID
44112233445566 ) 

Any ideas ? 

Paddy  

 

Forgot to say - I am using Version  1.4.33.1 

Paddy

-- 
_
-- 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] Calling Line Identity - any ideas

2010-08-19 Thread Sherwood McGowan
I'd have to say off the top of my head that this should already work
as long as the trunk you're sending calls to the outside world over
has the CallerID setting set AND probably sendrpid=yes...in the sip
configuration for both of those items...past that, I could dig a
bit

Cheers,
Sherwood McGowan

On Thu, Aug 19, 2010 at 2:25 AM, Paddy Grice pa...@wizaner.com wrote:
 From: asterisk-users-boun...@lists.digium.com
 [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Paddy Grice
 Sent: 19 August 2010 08:21
 To: asterisk-users@lists.digium.com
 Subject: [asterisk-users] Calling Line Identity - any ideas

 Hi list

 I have a requirement that I just don't know how to address - I don't think
 its strange but can't find any pointers anywhere.

 I have a user that wishes to have a multi phone divert. By that I mean

 calls made to his extension say Ext200 can be redirected to a different
 extension say Ext400 and also to his home landline.

 Doing the dial is fine using Dial(SIP/Ext400SIP/TheWorld/441234567890)

 The problem is CLID -

 At the moment internal calls (Ext to Ext) show a CLID EXTxxx and External
 Calls show the received CLID.

 When the phone is redirected to both Internal and external numbers he wants
 the correct CLI displayed on both phones.

 So with the redirect operational

 1) a call from the outside world to his DID number will show the received
 CLI(ANI) on both devices - this works
 BUT
 2) a call from an office extension needs to show EXTxxx on the extension
 (Ext400) but show the office telephone number on the landline

 so in pseudo code I want to do something like

 Dial ( SIP/Ext400 using CLID EXT123  SIP/TheWorld/441234567890 using CLID
 44112233445566 )

 Any ideas ?

 Paddy



 Forgot to say - I am using Version  1.4.33.1

 Paddy

 --
 _
 -- 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

Re: [asterisk-users] Calling Line Identity - any ideas

2010-08-19 Thread Paddy Grice
Hi Sherwood

Maybe my miss-understanding sip.conf I will try and see what happens - but I
don't understand how sip would know which CLID to send to each sip
endpoint - internal or external.

BTW this is all to get return of missed calls working.

I don't know if this makes it any clearer - 

An internal call from Ext123 should send 123 as the CLID to SIP/Ext400 but
should send 442071110123 to SIP/TheWorld but an external call from
44123455667788 should send the received CLID 44123455667788 to both. 

Will check up on sip.conf

Paddy

-Original Message-
From: Sherwood McGowan [mailto:sherwood.mcgo...@gmail.com] 
Sent: 19 August 2010 08:35
To: pa...@wizaner.com; Asterisk Users Mailing List - Non-Commercial
Discussion
Subject: Re: [asterisk-users] Calling Line Identity - any ideas

I'd have to say off the top of my head that this should already work as long
as the trunk you're sending calls to the outside world over has the CallerID
setting set AND probably sendrpid=yes...in the sip configuration for both of
those items...past that, I could dig a bit

Cheers,
Sherwood McGowan

On Thu, Aug 19, 2010 at 2:25 AM, Paddy Grice pa...@wizaner.com wrote:
 From: asterisk-users-boun...@lists.digium.com
 [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Paddy 
 Grice
 Sent: 19 August 2010 08:21
 To: asterisk-users@lists.digium.com
 Subject: [asterisk-users] Calling Line Identity - any ideas

 Hi list

 I have a requirement that I just don't know how to address - I don't 
 think its strange but can't find any pointers anywhere.

 I have a user that wishes to have a multi phone divert. By that I 
 mean

 calls made to his extension say Ext200 can be redirected to a 
 different extension say Ext400 and also to his home landline.

 Doing the dial is fine using 
 Dial(SIP/Ext400SIP/TheWorld/441234567890)

 The problem is CLID -

 At the moment internal calls (Ext to Ext) show a CLID EXTxxx and 
 External Calls show the received CLID.

 When the phone is redirected to both Internal and external numbers he 
 wants the correct CLI displayed on both phones.

 So with the redirect operational

 1) a call from the outside world to his DID number will show the 
 received
 CLI(ANI) on both devices - this works
 BUT
 2) a call from an office extension needs to show EXTxxx on the 
 extension
 (Ext400) but show the office telephone number on the landline

 so in pseudo code I want to do something like

 Dial ( SIP/Ext400 using CLID EXT123  SIP/TheWorld/441234567890 
 using CLID 44112233445566 )

 Any ideas ?

 Paddy



 Forgot to say - I am using Version  1.4.33.1

 Paddy

 --
 _
 -- 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


Re: [asterisk-users] Calling Line Identity - any ideas

2010-08-19 Thread Sherwood McGowan
I'll see if I can make it a little clearer for you...

When ext 123 makes a call to another SIP device through the server but
not requiring a middleman (i.e. a third party provider that allows you
to dial to parties outside the immediate control of your PBX) to
accomplish the call, what happens is Asterisk sets the CallerID on leg
B of the call (the leg that's going to the other internal extension)
to Ext 123's configured CLID.

However, when you call through a provider (the middleman), the call
has to use a peer/friend definition OTHER than the original one (Ext
123's)...it has to perform the call via the friend account you made
for ABCTelco, which could have included the CallerID information you
wanted displayed over all calls being sent outbound through that
provider...

Here's a really simple way to view this...

In the dialplan, the call to another internal extension is dialed thus:

Dial(SIP/456)

However, when you're dialing through a peer (middleman, provider,
whatever) it looks like this:

Dial(SIP/3148083...@provider)

See, the @ indicates that you want asterisk to use another account as
a trunk to reach the number you're dialing. In your dialplan, when you
dial the outside world, what's after the @? Whatever it is, go to that
entry in your sip.conf, and you'll be 90% of the way home

On Thu, Aug 19, 2010 at 2:54 AM, Paddy Grice pa...@wizaner.com wrote:
 Hi Sherwood

 Maybe my miss-understanding sip.conf I will try and see what happens - but I
 don't understand how sip would know which CLID to send to each sip
 endpoint - internal or external.

 BTW this is all to get return of missed calls working.

 I don't know if this makes it any clearer -

 An internal call from Ext123 should send 123 as the CLID to SIP/Ext400 but
 should send 442071110123 to SIP/TheWorld but an external call from
 44123455667788 should send the received CLID 44123455667788 to both.

 Will check up on sip.conf

 Paddy

 -Original Message-
 From: Sherwood McGowan [mailto:sherwood.mcgo...@gmail.com]
 Sent: 19 August 2010 08:35
 To: pa...@wizaner.com; Asterisk Users Mailing List - Non-Commercial
 Discussion
 Subject: Re: [asterisk-users] Calling Line Identity - any ideas

 I'd have to say off the top of my head that this should already work as long
 as the trunk you're sending calls to the outside world over has the CallerID
 setting set AND probably sendrpid=yes...in the sip configuration for both of
 those items...past that, I could dig a bit

 Cheers,
 Sherwood McGowan

 On Thu, Aug 19, 2010 at 2:25 AM, Paddy Grice pa...@wizaner.com wrote:
 From: asterisk-users-boun...@lists.digium.com
 [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Paddy
 Grice
 Sent: 19 August 2010 08:21
 To: asterisk-users@lists.digium.com
 Subject: [asterisk-users] Calling Line Identity - any ideas

 Hi list

 I have a requirement that I just don't know how to address - I don't
 think its strange but can't find any pointers anywhere.

 I have a user that wishes to have a multi phone divert. By that I
 mean

 calls made to his extension say Ext200 can be redirected to a
 different extension say Ext400 and also to his home landline.

 Doing the dial is fine using
 Dial(SIP/Ext400SIP/TheWorld/441234567890)

 The problem is CLID -

 At the moment internal calls (Ext to Ext) show a CLID EXTxxx and
 External Calls show the received CLID.

 When the phone is redirected to both Internal and external numbers he
 wants the correct CLI displayed on both phones.

 So with the redirect operational

 1) a call from the outside world to his DID number will show the
 received
 CLI(ANI) on both devices - this works
 BUT
 2) a call from an office extension needs to show EXTxxx on the
 extension
 (Ext400) but show the office telephone number on the landline

 so in pseudo code I want to do something like

 Dial ( SIP/Ext400 using CLID EXT123  SIP/TheWorld/441234567890
 using CLID 44112233445566 )

 Any ideas ?

 Paddy



 Forgot to say - I am using Version  1.4.33.1

 Paddy

 --
 _
 -- 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

Re: [asterisk-users] Calling Line Identity - any ideas

2010-08-19 Thread Nasir Iqbal
Hi,

here is a trick for you!

exten = s,1,Dial(SIP/Ext400Local/${EXTEN}/home-context)

[home-context]
exten = s,1,Set(CALLERID(num)=44112233445566)
exten = s,1,Dial(SIP/TheWorld/441234567890)


Regards

On Thu, Aug 19, 2010 at 12:21 PM, Paddy Grice pa...@wizaner.com wrote:

  Hi list

 I have a requirement that I just don't know how to address - I don't think
 its strange but can't find any pointers anywhere.

 I have a user that wishes to have a multi phone divert. By that I mean

 calls made to his extension say Ext200 can be redirected to a different
 extension say Ext400 and also to his home landline.

 Doing the dial is fine using Dial(SIP/Ext400SIP/TheWorld/441234567890)

 The problem is CLID -

 At the moment internal calls (Ext to Ext) show a CLID EXTxxx and External
 Calls show the received CLID.

 When the phone is redirected to both Internal and external numbers he wants
 the correct CLI displayed on both phones.

 So with the redirect operational

 1) a call from the outside world to his DID number will show the received
 CLI(ANI) on both devices - this works
 BUT
 2) a call from an office extension needs to show EXTxxx on the extension
 (Ext400) but show the office telephone number on the landline

 so in pseudo code I want to do something like

 Dial ( SIP/Ext400 using CLID EXT123  SIP/TheWorld/441234567890 using
 CLID 44112233445566 )

 Any ideas ?

 Paddy

 --
 _
 -- 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




-- 
Nasir Iqbal

ICT Innovations
http://www.ictinnovations.com/
-- 
_
-- 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] Calling Line Identity - any ideas

2010-08-19 Thread Nasir Iqbal
little syntax mistake, try this

exten = s,1,Dial(SIP/Ext400Local/${ext...@home-context)

[home-context]
exten = s,1,Set(CALLERID(num)=44112233445566)
exten = s,n,Dial(SIP/TheWorld/441234567890)
-- 
_
-- 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] Calling Line Identity - any ideas

2010-08-19 Thread Sherwood McGowan
On Thu, Aug 19, 2010 at 4:11 AM, Nasir Iqbal na...@ictinnovations.com wrote:
 little syntax mistake, try this
 exten = s,1,Dial(SIP/Ext400Local/${ext...@home-context)
 [home-context]
 exten = s,1,Set(CALLERID(num)=44112233445566)
 exten = s,n,Dial(SIP/TheWorld/441234567890)
 --
 _
 -- 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


Noo Please let's not go down that nasty trail of using
local channels...ugh...besides, there's still no conceivable reason
why one would need to do anything out of the ordinary, the party being
called outside the office will have to be sent through the provider,
in which case the external CLID should be defined already

-- 
_
-- 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] Calling Line Identity - any ideas

2010-08-19 Thread Nasir Iqbal
Hi,

 there's still no conceivable reason
What can be? except performance! (as asterisk has to create one additional
leg and bridge it) Which is very conceivable to those who are dealing with
high load traffic.

And what will be the option, if other outgoing call
requires different custom CLI while using the same trunk?

Regards

-- 
Nasir Iqbal

ICT Innovations
http://www.ictinnovations.com/
-- 
_
-- 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] Calling Line Identity - any ideas

2010-08-19 Thread Sherwood McGowan
On Thu, Aug 19, 2010 at 7:46 PM, Nasir Iqbal na...@ictinnovations.com wrote:
 Hi,
 there's still no conceivable reason
 What can be? except performance! (as asterisk has to create one additional
 leg and bridge it) Which is very conceivable to those who are dealing with
 high load traffic.
 And what will be the option, if other outgoing call
 requires different custom CLI while using the same trunk?
 Regards
 --
 Nasir Iqbal

 ICT Innovations
 http://www.ictinnovations.com/


 --
 _
 -- 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


First, the reason is, why use a BAD IDEA when there's perfectly good
solutions in front of the user There was no mention on this ONE
call going outbound over the trunk needing a different CID...the
request was as follows:

Client needs to call an INTERNAL extension, where the INTERNAL
CallerID will be used, and at the SAME TIME, a call to an EXTERNAL
number (which would necessitate USING THEIR PROVIDER TRUNK), using the
EXTERNAL CallerID

Now, p-lease tell me how just configuring the damned trunk's outbound
CID is NOT more sensible, efficient, and just friggin' COMMON SENSE TO
START WITH...over using a Local channel call, which would require
slightly more typing, and using something that I've almost NEVER found
a good reason to use, and if you'd care to search the damn archives,
you'll see that I was pushing upwards of 5k CONCURRENT CALLS back in
2005, WITH 1.4 Trunk and the RealTime addiiton (which was
experimental)...

For the love of whatever you find holy and good and true...don't come
at me like that...I'm really not in the mood anymore...I put 3-4 solid
years of helpjng newbies figure out why shit didn't work, reporting
REAL bugs and issues to thew developers and even assisting with some
of the fixesI feel entitled (yes, I know that's an asshole thing
to say) to a little common respect


Now...anyone for a pint? I'm off to vent some frustration with people
who jump on the WRONG bandwagon and try to take over

Sherwood Mother-F'in' McGowanb...
Telecommunications and Tattooing
You konw anyone else who combines those two professions? I'd like to
buy that guy a drink!

-- 
_
-- 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] Calling Line Identity - any ideas

2010-08-19 Thread Paddy Grice
Hi Sherwood 

I actually do want dynamic CLID as I tried to make clearer 

 I don't know if this makes it any clearer - 

 An internal call from Ext123 should send 123 as the CLID to SIP/Ext400
but should 
 send 442071110123 to SIP/TheWorld but an external call from
44123455667788 should 
 send the received CLID 44123455667788 to both. 

So over the provider connection the CLID will be different for different
calls. Setting the main office number in sip.conf is fine as a default but
as the code/dialplan needs to set cli for some calls I actually set CLID for
all calls. This setting and onward transmission by provider works fine. 

So what I am trying to do is call 2 different sip endpoints AT THE SAME TIME
presenting different AND VARIABLE CLIs. If Nasir's trick is not recommended
what is the best way to achieve this.

As a newbie to Asterisk advise and best practice gained from user experience
is always welcome.

Paddy



 
-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Sherwood
McGowan
Sent: 20 August 2010 04:58
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Calling Line Identity - any ideas

On Thu, Aug 19, 2010 at 7:46 PM, Nasir Iqbal na...@ictinnovations.com
wrote:
 Hi,
 there's still no conceivable reason
 What can be? except performance! (as asterisk has to create one 
 additional leg and bridge it) Which is very conceivable to those who 
 are dealing with high load traffic.
 And what will be the option, if other outgoing call requires different 
 custom CLI while using the same trunk?
 Regards
 --
 Nasir Iqbal

 ICT Innovations
 http://www.ictinnovations.com/


 --
 _
 -- 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


First, the reason is, why use a BAD IDEA when there's perfectly good
solutions in front of the user There was no mention on this ONE call
going outbound over the trunk needing a different CID...the request was as
follows:

Client needs to call an INTERNAL extension, where the INTERNAL CallerID will
be used, and at the SAME TIME, a call to an EXTERNAL number (which would
necessitate USING THEIR PROVIDER TRUNK), using the EXTERNAL CallerID

Now, p-lease tell me how just configuring the damned trunk's outbound CID is
NOT more sensible, efficient, and just friggin' COMMON SENSE TO START
WITH...over using a Local channel call, which would require slightly more
typing, and using something that I've almost NEVER found a good reason to
use, and if you'd care to search the damn archives, you'll see that I was
pushing upwards of 5k CONCURRENT CALLS back in 2005, WITH 1.4 Trunk and the
RealTime addiiton (which was experimental)...

For the love of whatever you find holy and good and true...don't come at me
like that...I'm really not in the mood anymore...I put 3-4 solid years of
helpjng newbies figure out why shit didn't work, reporting REAL bugs and
issues to thew developers and even assisting with some of the fixesI
feel entitled (yes, I know that's an asshole thing to say) to a little
common respect


Now...anyone for a pint? I'm off to vent some frustration with people who
jump on the WRONG bandwagon and try to take over

Sherwood Mother-F'in' McGowanb...
Telecommunications and Tattooing
You konw anyone else who combines those two professions? I'd like to buy
that guy a drink!



-- 
_
-- 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