send calling plan info for RDNIS and originally called number in new call events
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@246 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
parent
3269a4b034
commit
4bbe741b99
3
libpri.h
3
libpri.h
@ -295,6 +295,7 @@ typedef struct pri_event_facname {
|
||||
} pri_event_facname;
|
||||
|
||||
#define PRI_CALLINGPLANANI
|
||||
#define PRI_CALLINGPLANRDNIS
|
||||
typedef struct pri_event_ring {
|
||||
int e;
|
||||
int channel; /* Channel requested */
|
||||
@ -310,6 +311,7 @@ typedef struct pri_event_ring {
|
||||
char redirectingnum[256]; /* Redirecting number */
|
||||
char redirectingname[256]; /* Redirecting name */
|
||||
int redirectingreason; /* Reason for redirect */
|
||||
int callingplanrdnis; /* Dialing plan of Redirecting Number */
|
||||
char useruserinfo[256]; /* User->User info */
|
||||
int flexible; /* Are we flexible with our channel selection? */
|
||||
int cref; /* Call Reference Number */
|
||||
@ -322,6 +324,7 @@ typedef struct pri_event_ring {
|
||||
int progressmask;
|
||||
char origcalledname[256];
|
||||
char origcallednum[256];
|
||||
int callingplanorigcalled; /* Dialing plan of Originally Called Number */
|
||||
int origredirectingreason;
|
||||
} pri_event_ring;
|
||||
|
||||
|
2
q931.c
2
q931.c
@ -3210,6 +3210,8 @@ int q931_receive(struct pri *pri, q931_h *h, int len)
|
||||
pri->ev.ring.callingpres = c->callerpres;
|
||||
pri->ev.ring.callingplan = c->callerplan;
|
||||
pri->ev.ring.callingplanani = c->callerplanani;
|
||||
pri->ev.ring.callingplanrdnis = c->redirectingplan;
|
||||
pri->ev.ring.callingplanorigcalled = c->origcalledplan;
|
||||
pri->ev.ring.ani2 = c->ani2;
|
||||
libpri_copy_string(pri->ev.ring.callingani, c->callerani, sizeof(pri->ev.ring.callingani));
|
||||
libpri_copy_string(pri->ev.ring.callingnum, c->callernum, sizeof(pri->ev.ring.callingnum));
|
||||
|
Loading…
Reference in New Issue
Block a user