Hello Everybody, I have a genuine problem in Asterisk setup. I have three inbound trunks in my asterisk box, everything is working fine but the only problem is when any user make an out- going call through his/her extension it goes with same number labeled on this. Can we set each of these lines to have fixed outgoing numbers like if extn: 201 make an outgoing call the recipient should get different no and if extn: 202 make an outgoing call the recipient should get different one. Please can someone help me in this. Thanks Shantanu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090806/ed864aa0/attachment.htm
Are these "trunks" or "PRI/ISDN circuits", or "phone lines"? If either of the first two, the callerID sent with the call should be their ID, which should be the appropriate number of digits your area telco expects. Depending on your agreement with them, they may be supplying the number, rather than accept what you send. If your connection is "phone lines" they are supplying the Line Number, and you have no control over that except by strategic use of the lines, etc. Or if there is further info or questions, explain the exact details. Cary Fitch _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of kumarshantanu Sent: Thursday, August 06, 2009 10:33 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] Setting up Outgoing Trunk Hello Everybody, I have a genuine problem in Asterisk setup. I have three inbound trunks in my asterisk box, everything is working fine but the only problem is when any user make an out- going call through his/her extension it goes with same number labeled on this. Can we set each of these lines to have fixed outgoing numbers like if extn: 201 make an outgoing call the recipient should get different no and if extn: 202 make an outgoing call the recipient should get different one. Please can someone help me in this. Thanks Shantanu <http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/sign atureline.htm at Middle?> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090806/26272946/attachment-0001.htm
On 6 Aug 2009, at 16:32, kumarshantanu wrote:> Hello Everybody,Hi.> I have a genuine problem in Asterisk setup.Ok.> I have three inbound trunks in my asterisk box, everything isWhat kind of trunks.> working fine but the only problem is when any user make an out- > going call through his/her extension it goes with same number labeled > on this.Ok.> Can we set each of these lines to have fixed outgoing numbers > like if extn: 201 make an outgoing call the recipient should get > different no and if extn: 202 make an outgoing call the recipient > should > get different one.Ok.> Please can someone help me in this.If you show us some config, tell us trunk types and generally 'giving us something to go on.> Thanks > ShantanuSteve>Heh
At 3:32 PM on 06 Aug 2009, kumarshantanu wrote:> I have a genuine problem in Asterisk setup. > I have three inbound trunks in my asterisk box, everything is > working fine but the only problem is when any user make an out- > going call through his/her extension it goes with same number labeled > on this. > > Can we set each of these lines to have fixed outgoing numbers > > like if extn: 201 make an outgoing call the recipient should get > different no and if extn: 202 make an outgoing call the recipient > should > get different one.I'm not sure I understand your question... Are you saying that you want the outbound caller ID to be your public phone number? Or do you want the outbound caller ID to change based on what internal extension initiated the call? If you want your public phone number (the one your telco sends by default) for all outgoing calls, you need to add hidecallerid=yes to your zapata.conf or chan_dahdi.conf for the channels in those trunks. Then Asterisk won't send the caller ID it receives from the internal extensions, and your telco should then insert your phone number as the caller ID on all outbound calls. If you want it set to something other than what your telco puts as the default, you'd have to have hidecallerid=no (or not there) for those channels and set CALLERID(all) in your dialplan for outgoing calls. But this requires that your telco allows you to override the default caller ID. Some do, and some don't--you would have to talk to them. -- C. Chad Wallace, B.Sc. The Lodging Company http://www.skihills.com/ OpenPGP Public Key ID: 0x262208A0 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20090806/406dd21c/attachment.pgp
On Thu, 06 Aug 2009 21:28:01 +0530 wrote>On 6 Aug 2009, at 16:32, kumarshantanu wrote:> Hello Everybody,Hi.> I have a genuine problem in Asterisk setup.Ok.> I have three inbound trunks in my asterisk box, everything isWhat kind of trunks. These are sip trunks> working fine but the only problem is when any user make an out-> going call through his/her extension it goes with same number labeled> on this.Ok.> Can we set each of these lines to have fixed outgoing numbers> like if extn: 201 make an outgoing call the recipient should get> different no and if extn: 202 make an outgoing call the recipient> should> get different one.Ok.> Please can someone help me in this.If you show us some config, tell us trunk types and generally 'giving us something to go on. What config you want from me. I am not very much friendly to asterisk, for now I manage it from freePBX. Let me please know if I can provide you some more information> Thanks> ShantanuSteve>Heh _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090810/761f855b/attachment-0001.htm
Thank you Steve for your help, but I could find in youy conf where you have defined outgoing trunk for each sip extension. Please comment. On Tue, 11 Aug 2009 13:27:27 +0530 wrote>Hey here are the sample configuration. Create a trunk in sip.conf file, add a registry string.Registry String.register=> user1:password at anysipprovider.com:5060[user1]type=peerhost=anysipprovider.comport=5060context=defaultcountry=usdtmfmode=rfc2833restrictcid=nocanreinvite=yesinsecure=nodisallow=allallow=ulawallow=alawallow=g729allow=gsmpromiscredir=yest38_udptl=yesqualify=25000nat=yesWhen u done that, reload sip."sip reload "To verify it's correct: do these in the asterisk CLI"sip show peer user""sip show registry"Muhammad Faheem Software EngineerAXVoice Inc,--- On Mon, 8/10/09, kumarshantanu wrote:From: kumarshantanu Subject: Re: [asterisk-users] Setting up Outgoing TrunkTo: steve at geekinter.netCc: asterisk-users at lists.digium.comDate: Monday, August 10, 2009, 8:47 PMOn Thu, 06 Aug 2009 21:28:01 +0530 wrote>On 6 Aug 2009, at 16:32, kumarshantanu wrote:> Hello Everybody,Hi.> I have a genuine problem in Asterisk setup.Ok.> I have three inbound trunks in my asterisk box, everything isWhat kind of trunks. These are sip trunks> working fine but the only problem is when any user make an out-> going call through his/her extension it goes with same number labeled> on this.Ok.> Can we set each of these lines to have fixed outgoing numbers> like if extn: 201 make an outgoing call the recipient should get> different no and if extn: 202 make an outgoing call the recipient> should> get different one.Ok.> Please can someone help me in this.If you show us some config, tell us trunk types and generally 'giving us something to go on. What config you want from me. I am not very much friendly to asterisk, for now I manage it from freePBX. Let me please know if I can provide you some more information> Thanks> ShantanuSteve>Heh _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -----Inline Attachment Follows-----_______________________________________________-- Bandwidth and Colocation Provided by http://www.api-digital.com --AstriCon 2009 - October 13 - 15 Phoenix, ArizonaRegister Now: http://www.astricon.netasterisk-users mailing listTo UNSUBSCRIBE or update options visit:http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090812/396f0517/attachment.htm