search for: sipchaninfo

Displaying 20 results from an estimated 25 matches for "sipchaninfo".

2015 Jun 12
1
Voice mail and caller ID
On Fri, 12 Jun 2015 11:49:05 -0700 John Kiniston <johnkiniston at gmail.com> wrote: > Try this for CHAN_SIP: > > same => n,Set(Peer=${SIPCHANINFO(peername)}) ; Get the peer > same => n,Set(MailBox=${SIPPEER(${Peer},mailbox)}); Get the > mailbox same => n,VoicemailMain(${MailBox}@LocalSets,s) ; If we > have a mailbox defined log into it Perfect. Thanks. However, I didn't bother setting a variable. I just use i...
2008 Mar 25
1
How to obtain SIPCHANINFO variables within custom application?
...) my custom Asterisk application? I can't use chan_sip.c internal structures (such as sip_pvt) in my custom application, because there's no chan_sip.h and I can't include it into my application (maybe there's other way?). I can do like this: exten => _X,1,Set(PEERIP=${SIPCHANINFO(peerip)}) exten => _X,2,custom_app and read PEERIP with pbx_builtin_getvar_helper, but that's not an option for me. Any help? Thank you. Regards, Mindaugas Kezys http://www.kolmisoft.com -------------- next part -------------- An HTML attachment was scrubbed... URL...
2006 Feb 09
2
IP Authorization
You can use the following: switch3*CLI> show function SIPCHANINFO switch3*CLI> -= Info about function 'SIPCHANINFO' =- [Syntax] SIPCHANINFO(item) [Synopsis] Gets the specified SIP parameter from the current channel [Description] Valid items are: - peerip The IP address of the peer. - recvip The source IP address of th...
2015 Jun 12
2
Voice mail and caller ID
I have this in my sip.conf: exten => *98,1,Verbose(0,CALLERID number is "${CALLERID(num)}") same => n,VoicemailMain(${CALLERID(num)}@LocalSets,s) same => n,Hangup However, my extensions are set up so that they always show the external number, not the extension: [foobar2](client-phone) secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx callerid=Candace <5555551212>
2006 Feb 13
1
How to Get SIP Header : To Field ?
...umber ( to route the call ) In To : Person who has been called ! In From : Person who was calling ! Of course, I need to send the call into the "Called User" Mailbox (Thus To SIP header) ! So Basically, filed in INVITE is "EXTEN", From field can be obtained from the function ${SIPCHANINFO(from)} But how to get the "To" field ? I have tried to add some code line into the chan_sip.c ... It works partially ... meaning that, I can add this "to" in SIPCHANINFO funciton, but the result is null. Here is what I have added in chan_sip.c : in structure sip_pvt ( "to...
2009 Feb 21
1
VoIP Information in CDRs
...a way to add the following info in CDRs (with asterisk 1.4.23.1): 1. Codec used 2. RTP QoS statistics 3. RTP IP of remote host 4. For answered calls, the peer that requested to end the conversation I have managed to get 1 and 2 for the caller, like that: exten => h,1,Set(CDR(userfield)=RIP=${SIPCHANINFO(recvip)} Codec=${CHANNEL(audioreadformat)}/${CHANNEL(audiowriteformat)}/${CHANNEL(audionativeformat)}/${SIPCHANINFO(t38passthrough)} QOS=${RTPAUDIOQOS}) The problems I have so far: *1. CODEC *Codec is reported only for A-Leg. When transcoding asterisk logs the above line as: slin for read / sli...
2006 Apr 05
15
How to restrict simultaneous phone registrations
Hello all, I am looking for a way to restrict users from logging in two separate phones with the same authorization name/password at the same time. Meaning, I only want users to be able to place a call from one phone in one location, but have the ability to move from computer to computer. Has anyone found any sort of solution for this type scenario? Thanks, Bryan Mahin Please visit us @
2007 Oct 19
2
Howto get origin IP address from SIP call reliably
Hi, incoming SIP calls have a channel name in the form of: SIP/<ip-adresss-of-peer>-<handle> This is a way to get fetch the IP address of the remote side of a SIP call - in most cases. However, sometimes, instead of the IP address, there is a host name in the channel name. I assume, this value in the channel name is not the real IP address, but just a field filled in by the remote
2009 Jun 03
1
IAX2 Channel Information
I'm trying to isolate the IP address of inbound calls to my switch over IAX2. Is the proper way to get that information as follows: ${IAXPEER(IP)} If the caller was inbound via SIP, this works: ${SIPCHANINFO(PEERIP)} So I'm looking to return the IP address of the caller via IAX2. Thanks Lee -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090603/87cd735f/attachment.htm
2010 Aug 10
1
DEBUG: Cannot find variable 'XXX' ??
...#39;SIP_HEADER' [Aug 9 07:01:23] DEBUG[17330]: xmldoc.c:1727 xmldoc_build_field: Cannot find variable 'SIPPEER' in tree 'description' == Registered custom function 'SIPPEER' [Aug 9 07:01:23] DEBUG[17330]: xmldoc.c:1727 xmldoc_build_field: Cannot find variable 'SIPCHANINFO' in tree 'description' Maybe they've always been there, and I've been asleep. But what do they mean? Should I do something about them? sean
2010 May 26
2
Getting 'username' of sip peer
Hello, I have a few entries for sip peers in sip.conf with different name and username, like [TestSIPUser] type=peer host=dynamic username=testuser secret=1234 context=test_context [TestNewUser] type=peer host=dynamic username=newsipuser secret=3456 context=test_context When a call is made from any of these peers I want to get the username of the peer. for eg:- If a call is being made from
2007 Oct 26
1
Can't get sangoma A102D setup on asterisk
...e a new Sangoma A102 and I'm trying to get it running in asterisk. A look through the dmesg log shows the card is detected and the various channels created. However, when I start asterisk I get the error below. Any ideas? My zapata.conf is below. Thanks, MD == Registered custom function SIPCHANINFO == Registered custom function CHECKSIPDOMAIN == Manager registered action SIPpeers == Manager registered action SIPshowpeer [chan_zap.so] => (Zapata Telephony w/PRI) == Parsing '/etc/asterisk/zapata.conf': Found Oct 26 15:59:47 WARNING[14883]: chan_zap.c:1072 zt_open: Unable to...
2015 Jun 12
0
Voice mail and caller ID
Try this for CHAN_SIP: same => n,Set(Peer=${SIPCHANINFO(peername)}) ; Get the peer same => n,Set(MailBox=${SIPPEER(${Peer},mailbox)}); Get the mailbox same => n,VoicemailMain(${MailBox}@LocalSets,s) ; If we have a mailbox defined log into it If you are using PJSIP it's more complex same => n,Set(EndPoint=${CHANNEL(endpoint)})...
2006 Oct 17
0
TIMEOUT() function missing
Hello everybody, I want to use the TIMEOUT() function, but in the CLI the "show functions" command only shows 7 custom functions: QUEUEAGENTCOUNT SORT CUT CHECKSIPDOMAIN SIPCHANINFO SIPPEER SIPHEADER In addition, sometimes I get the debug message "function LANGUAGE not registered". How can I install those functions? I'm using Asterisk 1.2.10. Thanks in advance, -- Andrea Spadaccini Multimedia Technologies Institute s.r.l.
2007 Nov 26
2
Get IP address of an incoming or outgoing SIP call
Hi * Users, What is the way from the dial-plan to get the IP address of an incoming or outgoing SIP call? I can see the IP address of the SIP call using 'sip show peers' from the CLI. Thanks Regards -- Arpit Mehta Graduate Student Department of Computer Science Columbia University Tel: 1-646-387-5998
2011 Sep 02
0
No subject
core show function SIP<TAB> I use: set(PEERIP=${SIPCHANINFO(peerip)}) in one of my dialplans. For AGI, whatever function in your library that executes 'GET FULL VARIABLE' should do the trick. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1...
2010 Feb 16
1
CODECS: Best practice question: Avoid transcode when calling out?
What is the current best practice to avoid transcoding on an outgoing call to a party whose codec preference is not known in advance? In other words, incoming calls are easy since codecs are negotiated from least-known (the remote party) to most-known (my endpoint) and my codecs can simply be preferred accordingly to match the remote. Outbound calls seem harder. Our endpoints always negotiate
2007 Apr 07
2
Different devices for asterisk!!!
Hi all, Im trying dial a user according to the device s/he uses. i mean if the user is using asterisk as a peer, then i have to pass the extension in the dial application like this: Dial(SIP/${EXTEN}@user) ;so that s/he can perform routing according to the DNID. and if the user is using sipura, linksys or grandstream i dial the user like this, Dial(SIP/user) so is there a way to know what kind
2010 Feb 16
6
Asterisk listens on all NICs
Hello List. I am puzzled and how asterisk listens to calls or connections from clients. When I do a netstat -nat I don't see asterisk listening on port 5060. Now, I'm testing a server with three network interfaces: two to the internet doing load balancing and the other to our LAN. I would like asterisk to only accept connections coming from our LAN but, can't find where to configure
2006 Nov 16
2
installing asterisk for Ubuntu Synaptic
...ssion Initiation Protocol (SIP)) == Registered application 'SIPDtmfMode' == Registered application 'SIPAddHeader' == Registered application 'SIPGetHeader' == Registered custom function SIP_HEADER == Registered custom function SIPPEER == Registered custom function SIPCHANINFO == Registered custom function CHECKSIPDOMAIN == Manager registered action SIPpeers == Manager registered action SIPshowpeer [chan_agent.so] => (Agent Proxy Channel) == Registered channel type 'Agent' (Call Agent Proxy Channel) == Registered application 'AgentLogin' =...